Skip to content

Commit

Permalink
Duh should be public not private.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Jun 6, 2015
1 parent cd4ec4c commit dd0b53b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mantle/client/ModelVariant.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ public ModelVariant(String modId, Minecraft mc)
this.mc = mc;
}

private void registerBlockModel(Block block)
public void registerBlockModel(Block block)
{
ResourceLocation resourceLocation = (ResourceLocation) Block.blockRegistry.getNameForObject(block);

registerBlockModel(block, 0, resourceLocation.getResourcePath());
}

private void registerItemModel(Item item)
public void registerItemModel(Item item)
{
ResourceLocation resourceLocation = (ResourceLocation) Item.itemRegistry.getNameForObject(item);

registerItemModel(item, 0, resourceLocation.getResourcePath());
}

private void registerBlockModel(Block block, int meta, String modelName)
public void registerBlockModel(Block block, int meta, String modelName)
{
registerItemModel(Item.getItemFromBlock(block), meta, modelName);
}

private void registerItemModel(Item item, int meta, String resourcePath)
public void registerItemModel(Item item, int meta, String resourcePath)
{
ModelResourceLocation modelResourceLocation = new ModelResourceLocation((this.MOD_ID + ":") + resourcePath, "inventory");

this.mc.getRenderItem().getItemModelMesher().register(item, meta, modelResourceLocation);
}

private void registerBlockModelVariant(Block block, int meta, String resourcePath)
public void registerBlockModelVariant(Block block, int meta, String resourcePath)
{
Item item = Item.getItemFromBlock(block);

Expand Down

0 comments on commit dd0b53b

Please sign in to comment.