Class PlantInfo

java.lang.Object
net.risingworld.api.world.generator.PlantInfo

public final class PlantInfo extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    boolean
    If true, the plant is cut (only relevant for trees)
    static final int
    Size (in bytes) of this element on native side
    int
    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 plant
    float
    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)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • typeID

      public short typeID
      The type id of the plant
    • x

      public float x
      The x position of the plant (within the world part)
    • y

      public float y
      The y position of the plant (vertically)
    • z

      public float z
      The z position of the plant (within the world part)
    • rx

      public int rx
      The x rotation of the plant (degrees)
    • ry

      public int ry
      The y rotation of the plant (degrees)
    • rz

      public int rz
      The z rotation of the plant (degrees)
    • scaleFactor

      public float scaleFactor
      Scale factor for this plant. By default 1
    • isCut

      public boolean isCut
      If true, the plant is cut (only relevant for trees)
    • NATIVE_SIZE

      public static final int NATIVE_SIZE
      Size (in bytes) of this element on native side
      See Also:
  • Constructor Details

    • PlantInfo

      public PlantInfo()