use of net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable in project MinecraftForge by MinecraftForge.
the class TerrainGen method generateOre.
public static boolean generateOre(World world, Random rand, WorldGenerator generator, BlockPos pos, GenerateMinable.EventType type) {
GenerateMinable event = new GenerateMinable(world, rand, generator, pos, type);
MinecraftForge.ORE_GEN_BUS.post(event);
return event.getResult() != Result.DENY;
}
Aggregations