Package net.minecraftforge.event.world
Class SaplingGrowTreeEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.WorldEvent
-
- net.minecraftforge.event.world.SaplingGrowTreeEvent
-
public class SaplingGrowTreeEvent extends WorldEvent
SaplingGrowTreeEvent is fired when a sapling grows into a tree.
This event is fired during sapling growth inBlockSapling#generateTree(World, BlockPos, IBlockState, Random)
.
pos
contains the coordinates of the growing sapling.
rand
contains an instance of Random for use.
This event is notCancelable
.
This event has a result.Event.HasResult
This result determines if the sapling is allowed to grow.
This event is fired on theMinecraftForge#TERRAIN_GEN_BUS
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.Unload
-
-
Constructor Summary
Constructors Constructor Description SaplingGrowTreeEvent(IWorld world, java.util.Random rand, BlockPos pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
getPos()
java.util.Random
getRand()
-
Methods inherited from class net.minecraftforge.event.world.WorldEvent
getWorld
-
-