public class SaplingGrowTreeEvent extends WorldEvent
BlockSapling.generateTree(World, BlockPos, IBlockState, Random)
.pos
contains the coordinates of the growing sapling. rand
contains an instance of Random for use. Cancelable
.Event.HasResult
MinecraftForge.TERRAIN_GEN_BUS
.WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.Unload
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private java.util.Random |
rand |
Constructor and Description |
---|
SaplingGrowTreeEvent(World world,
java.util.Random rand,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
java.util.Random |
getRand() |
getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup