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
SaplingGrowTreeEvent is fired when a sapling grows into a tree.
This event is fired during sapling growth in
This event is not
This event has a result.
This result determines if the sapling is allowed to grow.
This event is fired on the
This event is fired during sapling growth in
SaplingBlock.advanceTree(ServerLevel, BlockPos, BlockState, Random)
.pos
contains the coordinates of the growing sapling. rand
contains an instance of Random for use. This event is not
Cancelable
.This event has a result.
Event.HasResult
This result determines if the sapling is allowed to grow.
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.Save, WorldEvent.Unload
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.world.WorldEvent
getWorld
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
pos
-
rand
-
-
Constructor Details
-
SaplingGrowTreeEvent
-
-
Method Details
-
getPos
-
getRand
-