use of net.minecraftforge.event.world.SaplingGrowTreeEvent in project MinecraftForge by MinecraftForge.
the class ForgeEventFactory method saplingGrowTree.
public static boolean saplingGrowTree(LevelAccessor world, Random rand, BlockPos pos) {
SaplingGrowTreeEvent event = new SaplingGrowTreeEvent(world, rand, pos);
MinecraftForge.EVENT_BUS.post(event);
return event.getResult() != Result.DENY;
}
Aggregations