Search in sources :

Example 1 with FacingStateMapper

use of com.cjm721.overloaded.util.FacingStateMapper in project Overloaded by CJ-MC-Mods.

the class BlockEnergyExtractor method registerModel.

@Override
@SideOnly(Side.CLIENT)
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(getRegistryName(), null);
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
    FacingStateMapper stateMapper = new FacingStateMapper(getRegistryName());
    ModelLoader.setCustomStateMapper(this, stateMapper);
}
Also used : FacingStateMapper(com.cjm721.overloaded.util.FacingStateMapper) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 2 with FacingStateMapper

use of com.cjm721.overloaded.util.FacingStateMapper in project Overloaded by CJ-MC-Mods.

the class BlockGrill method registerModel.

@Override
@SideOnly(Side.CLIENT)
public void registerModel() {
    ResourceLocation resourceLocation = new ResourceLocation(MODID, "grill");
    ModelResourceLocation location = new ModelResourceLocation(resourceLocation, null);
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
    FacingStateMapper stateMapper = new FacingStateMapper(resourceLocation);
    ModelLoader.setCustomStateMapper(this, stateMapper);
}
Also used : FacingStateMapper(com.cjm721.overloaded.util.FacingStateMapper) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

FacingStateMapper (com.cjm721.overloaded.util.FacingStateMapper)2 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)2 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)2 ResourceLocation (net.minecraft.util.ResourceLocation)1