Java 类net.minecraft.block.BlockStone.EnumType 实例源码

项目:Randores2    文件:Randores.java   
@Override
public void registerOreTypes(OreTypeRegistry registry) {
    registry.register(
            new OreType(w -> w.provider.getDimension() == 0, OreTypeRegistry.OVERWORLD, b -> b.getBlock() == Blocks.STONE && b.getValue(BlockStone.VARIANT) == EnumType.STONE),
            new OreType(w -> w.provider.getDimension() == 1, OreTypeRegistry.END, b -> b.getBlock() == Blocks.END_STONE),
            new OreType(w -> w.provider.getDimension() == -1, OreTypeRegistry.NETHER, b -> b.getBlock() == Blocks.NETHERRACK)
    );
    registry.register(new DefaultOreTypeGenerator());
}