Search in sources :

Example 1 with ModelDefaultETLeaves

use of binnie.extratrees.models.ModelDefaultETLeaves in project Binnie by ForestryMC.

the class ProxyClient method registerModels.

@Override
public void registerModels() {
    for (BlockETDecorativeLeaves leaves : ModuleWood.leavesDecorative) {
        String resourceName = leaves.getRegistryName().toString();
        ModelResourceLocation blockModelLocation = new ModelResourceLocation(resourceName);
        ModelResourceLocation itemModeLocation = new ModelResourceLocation(resourceName, "inventory");
        BlockModelEntry blockModelIndex = new BlockModelEntry(blockModelLocation, itemModeLocation, new ModelETDecorativeLeaves(), leaves);
        registerBlockModel(blockModelIndex);
    }
    for (BlockETDefaultLeaves leaves : ModuleWood.leavesDefault) {
        String resourceName = leaves.getRegistryName().toString();
        ModelResourceLocation blockModelLocation = new ModelResourceLocation(resourceName);
        ModelResourceLocation itemModeLocation = new ModelResourceLocation(resourceName, "inventory");
        BlockModelEntry blockModelIndex = new BlockModelEntry(blockModelLocation, itemModeLocation, new ModelDefaultETLeaves(), leaves);
        registerBlockModel(blockModelIndex);
    }
    for (BlockETSlab slab : ModuleWood.slabsDouble) {
        ModuleArboriculture.proxy.registerWoodModel(slab, true);
    }
    for (BlockETSlab slab : ModuleWood.slabsDoubleFireproof) {
        ModuleArboriculture.proxy.registerWoodModel(slab, true);
    }
    modelManager.registerModels();
}
Also used : ModelDefaultETLeaves(binnie.extratrees.models.ModelDefaultETLeaves) BlockModelEntry(forestry.core.models.BlockModelEntry) BlockETSlab(binnie.extratrees.blocks.wood.BlockETSlab) BlockETDecorativeLeaves(binnie.extratrees.blocks.BlockETDecorativeLeaves) ModelETDecorativeLeaves(binnie.extratrees.models.ModelETDecorativeLeaves) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) BlockETDefaultLeaves(binnie.extratrees.blocks.BlockETDefaultLeaves)

Aggregations

BlockETDecorativeLeaves (binnie.extratrees.blocks.BlockETDecorativeLeaves)1 BlockETDefaultLeaves (binnie.extratrees.blocks.BlockETDefaultLeaves)1 BlockETSlab (binnie.extratrees.blocks.wood.BlockETSlab)1 ModelDefaultETLeaves (binnie.extratrees.models.ModelDefaultETLeaves)1 ModelETDecorativeLeaves (binnie.extratrees.models.ModelETDecorativeLeaves)1 BlockModelEntry (forestry.core.models.BlockModelEntry)1 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)1