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 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.
  • Field Details

  • Constructor Details

  • Method Details