Removed old rendering system

Removed old rendering system. Some parts may be left over, but they
won't affect testing.
1.10-R todo tag marks things to do with rendering.
This commit is contained in:
elix-x
2016-06-29 12:22:18 +02:00
parent 92753a432a
commit 03aa59521c
146 changed files with 15 additions and 13767 deletions
@@ -58,51 +58,12 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
// rather simple client side caching.
private static final Map<ItemStack, ItemStack> SIMPLE_CACHE = new WeakHashMap<ItemStack, ItemStack>();
@SideOnly( Side.CLIENT )
private ModelResourceLocation res;
@SideOnly( Side.CLIENT )
private ModelResourceLocation encodedPatternModel; // TODO: make encoded pattern model!
public ItemEncodedPattern()
{
this.setFeature( EnumSet.of( AEFeature.Patterns ) );
this.setMaxStackSize( 1 );
}
@Override
public void registerIcons( final ClientHelper proxy, final String name )
{
this.encodedPatternModel = this.res = proxy.setIcon( this, name );
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register( this, new ItemMeshDefinition(){
boolean recursive = false;
@Override
public ModelResourceLocation getModelLocation( final ItemStack stack )
{
if( this.recursive == false )
{
this.recursive = true;
final ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem();
final ItemStack is = iep.getOutput( stack );
if( Minecraft.getMinecraft().thePlayer.isSneaking() )
{
return ItemEncodedPattern.this.encodedPatternModel;
}
this.recursive = false;
}
return ItemEncodedPattern.this.res;
}
} );
}
@Override
public ActionResult<ItemStack> onItemRightClick( final ItemStack stack, final World w, final EntityPlayer player, final EnumHand hand )
{