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
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private java.util.Random |
rand |
Constructor and Description |
---|
SaplingGrowTreeEvent(IWorld world,
java.util.Random rand,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
java.util.Random |
getRand() |
getWorld