Removed calls of addRenderVariant, because apparently it didn't change anything

This commit is contained in:
Ellpeck 2016-05-15 12:21:28 +02:00
parent 96c9e1895c
commit e693486544
8 changed files with 0 additions and 25 deletions

View file

@ -56,7 +56,6 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
protected void registerRendering(){
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, "itemPaxel");
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ModelResourceLocation(resLoc, "inventory"));
ActuallyAdditions.proxy.addRenderVariant(this, resLoc);
}
@Override

View file

@ -58,12 +58,9 @@ public class ItemCrystal extends ItemBase{
@Override
protected void registerRendering(){
ResourceLocation[] resLocs = new ResourceLocation[BlockCrystal.allCrystals.length];
for(int i = 0; i < BlockCrystal.allCrystals.length; i++){
String name = this.getRegistryName()+BlockCrystal.allCrystals[i].name;
resLocs[i] = new ResourceLocation(name);
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
}
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
}
}

View file

@ -335,13 +335,10 @@ public class ItemDrill extends ItemEnergy{
@Override
protected void registerRendering(){
ResourceLocation[] resLocs = new ResourceLocation[16];
for(int i = 0; i < 16; i++){
String name = this.getRegistryName()+TheColoredLampColors.values()[i].name;
resLocs[i] = new ResourceLocation(name);
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
}
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
}
@Override

View file

@ -102,12 +102,9 @@ public class ItemFoods extends ItemFoodBase{
@Override
protected void registerRendering(){
ResourceLocation[] resLocs = new ResourceLocation[allFoods.length];
for(int i = 0; i < allFoods.length; i++){
String name = this.getRegistryName()+allFoods[i].name;
resLocs[i] = new ResourceLocation(name);
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
}
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
}
}

View file

@ -59,12 +59,9 @@ public class ItemMisc extends ItemBase{
@Override
protected void registerRendering(){
ResourceLocation[] resLocs = new ResourceLocation[allMiscItems.length];
for(int i = 0; i < allMiscItems.length; i++){
String name = this.getRegistryName()+allMiscItems[i].name;
resLocs[i] = new ResourceLocation(name);
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
}
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
}
}

View file

@ -164,11 +164,6 @@ public class ClientProxy implements IProxy{
modelLocationsForRegistering.put(stack, location);
}
@Override
public void addRenderVariant(Item item, ResourceLocation... location){
modelVariantsForRegistering.put(item, location);
}
@Override
public void addColoredItem(Item item){
colorProdividingItemsForRegistering.add(item);

View file

@ -28,7 +28,5 @@ public interface IProxy{
void addRenderRegister(ItemStack stack, ModelResourceLocation location);
void addRenderVariant(Item item, ResourceLocation... location);
void addColoredItem(Item item);
}

View file

@ -42,11 +42,6 @@ public class ServerProxy implements IProxy{
}
@Override
public void addRenderVariant(Item item, ResourceLocation... location){
}
@Override
public void addColoredItem(Item item){