From 8d74a06216bee432af63c15ff32314945ff0265a Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 12 Jun 2017 23:46:30 -0500 Subject: [PATCH] MCMP Shenanigans, Wat is dis? --- .../render/SmartModelManager.java | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/main/java/mod/chiselsandbits/render/SmartModelManager.java b/src/main/java/mod/chiselsandbits/render/SmartModelManager.java index 038f90d7..e1aeea81 100644 --- a/src/main/java/mod/chiselsandbits/render/SmartModelManager.java +++ b/src/main/java/mod/chiselsandbits/render/SmartModelManager.java @@ -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 ); @@ -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 ) );