Klasse 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
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    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)
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • 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
      Siehe auch:
  • Konstruktordetails

    • PlantInfo

      public PlantInfo()