use of forestry.arboriculture.models.ModelDecorativeLeaves in project ForestryMC by ForestryMC.
the class ProxyArboricultureClient method initializeModels.
@Override
public void initializeModels() {
{
ModelResourceLocation blockModelLocation = new ModelResourceLocation("forestry:leaves");
ModelResourceLocation itemModelLocation = new ModelResourceLocation("forestry:leaves", "inventory");
BlockModelEntry blockModelIndex = new BlockModelEntry(blockModelLocation, itemModelLocation, new ModelLeaves(), ModuleArboriculture.getBlocks().leaves);
ModelManager.getInstance().registerCustomBlockModel(blockModelIndex);
}
for (BlockDecorativeLeaves leaves : ModuleArboriculture.getBlocks().leavesDecorative) {
String resourceName = "forestry:leaves.decorative." + leaves.getBlockNumber();
ModelResourceLocation blockModelLocation = new ModelResourceLocation(resourceName);
ModelResourceLocation itemModeLocation = new ModelResourceLocation(resourceName, "inventory");
BlockModelEntry blockModelIndex = new BlockModelEntry(blockModelLocation, itemModeLocation, new ModelDecorativeLeaves(), leaves);
ModelManager.getInstance().registerCustomBlockModel(blockModelIndex);
}
for (BlockDefaultLeaves leaves : ModuleArboriculture.getBlocks().leavesDefault) {
String resourceName = "forestry:leaves.default." + leaves.getBlockNumber();
ModelResourceLocation blockModelLocation = new ModelResourceLocation(resourceName);
ModelResourceLocation itemModeLocation = new ModelResourceLocation(resourceName, "inventory");
BlockModelEntry blockModelIndex = new BlockModelEntry(blockModelLocation, itemModeLocation, new ModelDefaultLeaves(), leaves);
ModelManager.getInstance().registerCustomBlockModel(blockModelIndex);
}
ModelLoaderRegistry.registerLoader(WoodModelLoader.INSTANCE);
for (BlockArbSlab slab : ModuleArboriculture.getBlocks().slabsDouble) {
registerWoodModel(slab, true);
}
for (BlockArbSlab slab : ModuleArboriculture.getBlocks().slabsDoubleFireproof) {
registerWoodModel(slab, true);
}
}
Aggregations