Skip to content

Commit

Permalink
MCMP Shenanigans, Wat is dis?
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Jun 13, 2017
1 parent 011c560 commit 8d74a06
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions src/main/java/mod/chiselsandbits/render/SmartModelManager.java
Expand Up @@ -29,20 +29,24 @@ public SmartModelManager()
ChiseledBlockSmartModel smartModel = new ChiseledBlockSmartModel();
ChiselsAndBits.getInstance().addClearable( smartModel );

add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_iron" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_clay" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_cloth" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_packedIce" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_ice" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_wood" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_rock" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_glass" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_ground" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_sand" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_grass" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_fluid" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_snow" ), smartModel );
add( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_leaves" ), smartModel );
String[] additions = { "normal", "full_block=false", "full_block=true" };
for ( String ad : additions )
{
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_iron" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_clay" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_cloth" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_packedIce" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_ice" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_wood" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_rock" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_glass" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_ground" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_sand" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_grass" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_fluid" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_snow" ), ad ), smartModel );
add( new ModelResourceLocation( new ResourceLocation( ChiselsAndBits.MODID, "chiseled_leaves" ), ad ), smartModel );
}

add( new ResourceLocation( ChiselsAndBits.MODID, "models/item/block_chiseled" ), smartModel );

Expand All @@ -63,6 +67,11 @@ private void add(
clearable.add( (ICacheClearable) modelGen );
}

if ( modelLocation instanceof ModelResourceLocation )
{
res.add( (ModelResourceLocation) modelLocation );
}

res.add( new ModelResourceLocation( modelLocation, null ) );
res.add( new ModelResourceLocation( second, null ) );

Expand Down

0 comments on commit 8d74a06

Please sign in to comment.