Search in sources :

Example 1 with ModelMultiFence

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

the class BlockMultiFence method registerStateMapper.

@SideOnly(Side.CLIENT)
@Override
public void registerStateMapper() {
    ResourceLocation registryName = getRegistryName();
    ModelLoader.setCustomStateMapper(this, new DefaultStateMapper(registryName));
    ModelManager.registerCustomBlockModel(new BlockModelEntry(new ModelResourceLocation(registryName, "normal"), new ModelResourceLocation(registryName, "inventory"), new ModelMultiFence(), this));
}
Also used : DefaultStateMapper(binnie.core.models.DefaultStateMapper) BlockModelEntry(forestry.core.models.BlockModelEntry) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) ModelMultiFence(binnie.extratrees.models.ModelMultiFence) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

DefaultStateMapper (binnie.core.models.DefaultStateMapper)1 ModelMultiFence (binnie.extratrees.models.ModelMultiFence)1 BlockModelEntry (forestry.core.models.BlockModelEntry)1 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1