Klasse PlantPlaceBatch

java.lang.Object
net.risingworld.api.world.batch.PlantPlaceBatch

public class PlantPlaceBatch extends Object
A batch to perform multiple vegetation place actions simultaneously. This is useful if you want to place several plants, because that is a lot more performant than placing them all individually (using the regular World.createPlant(int, net.risingworld.api.utils.Vector3f, net.risingworld.api.utils.Quaternion, net.risingworld.api.utils.Vector3f) methods).
Siehe auch:
  • Konstruktordetails

    • PlantPlaceBatch

      public PlantPlaceBatch()
    • PlantPlaceBatch

      public PlantPlaceBatch(int initialCapacity)
  • Methodendetails

    • add

      public void add(int typeID, Vector3f worldPosition, Quaternion rotation, Vector3f scale)
    • count

      public int count()
      Gets the current number of entries in this batch.
      Gibt zurück:
      the number of entries.
    • clear

      public void clear()
      Clears the batch.