Package net.risingworld.api.world.batch
Class PlantPlaceBatch
java.lang.Object
net.risingworld.api.world.batch.PlantPlaceBatch
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).- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PlantPlaceBatch
public PlantPlaceBatch() -
PlantPlaceBatch
public PlantPlaceBatch(int initialCapacity)
-
-
Method Details
-
add
-
count
public int count()Gets the current number of entries in this batch.- Returns:
- the number of entries.
-
clear
public void clear()Clears the batch.
-