Search in sources :

Example 1 with GenerateMinable

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;
}
Also used : GenerateMinable(net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable)

Aggregations

GenerateMinable (net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable)1