Class 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-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIf true, the plant is cut (only relevant for trees)static final intSize (in bytes) of this element on native sideintThe x rotation of the plant (degrees)intThe y rotation of the plant (degrees)intThe z rotation of the plant (degrees)floatScale factor for this plant.shortThe type id of the plantfloatThe x position of the plant (within the world part)floatThe y position of the plant (vertically)floatThe z position of the plant (within the world part) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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- See Also:
-
-
Constructor Details
-
PlantInfo
public PlantInfo()
-