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.UnloadEvent.HasResult, Event.Result| Constructor and Description |
|---|
SaplingGrowTreeEvent(World world,
java.util.Random rand,
BlockPos pos) |
| Modifier and Type | Method and Description |
|---|---|
BlockPos |
getPos() |
java.util.Random |
getRand() |
getWorldgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup