Search in sources :

Example 1 with DefaultStateMapper

use of binnie.core.models.DefaultStateMapper in project Binnie by ForestryMC.

the class BlockCeramicBrick method registerStateMapper.

@SideOnly(Side.CLIENT)
@Override
public void registerStateMapper() {
    ResourceLocation resourceLocation = new ResourceLocation(Constants.BOTANY_MOD_ID, "ceramicBrick");
    ModelLoader.setCustomStateMapper(this, new DefaultStateMapper(resourceLocation));
    ModelManager.registerCustomBlockModel(new BlockModelEntry(new ModelResourceLocation(resourceLocation, "normal"), new ModelResourceLocation(resourceLocation, "inventory"), new ModelMutlipass<>(BlockCeramicBrick.class), 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) ModelMutlipass(binnie.core.models.ModelMutlipass) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 2 with DefaultStateMapper

use of binnie.core.models.DefaultStateMapper 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)

Example 3 with DefaultStateMapper

use of binnie.core.models.DefaultStateMapper in project Binnie by ForestryMC.

the class BlockDesign 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 ModelMutlipass<>(BlockDesign.class), 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) ModelMutlipass(binnie.core.models.ModelMutlipass) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

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