Search in sources :

Example 1 with SaplingGrowTreeEvent

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;
}
Also used : SaplingGrowTreeEvent(net.minecraftforge.event.world.SaplingGrowTreeEvent)

Aggregations

SaplingGrowTreeEvent (net.minecraftforge.event.world.SaplingGrowTreeEvent)1