Klasse PlantInfo
java.lang.Object
net.risingworld.api.world.generator.PlantInfo
Holds data about a plant. This is usually only relevant during world generation. Plants which already
exist in the world are typically represented by
Plant
-
Feldübersicht
Modifizierer und TypFeldBeschreibungboolean
If true, the plant is cut (only relevant for trees)static final int
Size (in bytes) of this element on native sideint
The x rotation of the plant (degrees)int
The y rotation of the plant (degrees)int
The z rotation of the plant (degrees)float
Scale factor for this plant.short
The type id of the plantfloat
The x position of the plant (within the world part)float
The y position of the plant (vertically)float
The z position of the plant (within the world part) -
Konstruktorübersicht
-
Methodenübersicht
-
Felddetails
-
typeID
public short typeIDThe type id of the plant -
x
public float xThe x position of the plant (within the world part) -
y
public float yThe y position of the plant (vertically) -
z
public float zThe z position of the plant (within the world part) -
rx
public int rxThe x rotation of the plant (degrees) -
ry
public int ryThe y rotation of the plant (degrees) -
rz
public int rzThe z rotation of the plant (degrees) -
scaleFactor
public float scaleFactorScale factor for this plant. By default 1 -
isCut
public boolean isCutIf true, the plant is cut (only relevant for trees) -
NATIVE_SIZE
public static final int NATIVE_SIZESize (in bytes) of this element on native side- Siehe auch:
-
-
Konstruktordetails
-
PlantInfo
public PlantInfo()
-