use of net.minecraftforge.event.world.BlockEvent.CreateFluidSourceEvent in project MinecraftForge by MinecraftForge.
the class ForgeEventFactory method canCreateFluidSource.
public static boolean canCreateFluidSource(World world, BlockPos pos, IBlockState state, boolean def) {
CreateFluidSourceEvent evt = new CreateFluidSourceEvent(world, pos, state);
MinecraftForge.EVENT_BUS.post(evt);
Result result = evt.getResult();
return result == Result.DEFAULT ? def : result == Result.ALLOW;
}
Aggregations