mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Removed calls of addRenderVariant, because apparently it didn't change anything
This commit is contained in:
parent
96c9e1895c
commit
e693486544
8 changed files with 0 additions and 25 deletions
|
@ -56,7 +56,6 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, "itemPaxel");
|
ResourceLocation resLoc = new ResourceLocation(ModUtil.MOD_ID, "itemPaxel");
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ModelResourceLocation(resLoc, "inventory"));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ModelResourceLocation(resLoc, "inventory"));
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLoc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -58,12 +58,9 @@ public class ItemCrystal extends ItemBase{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[BlockCrystal.allCrystals.length];
|
|
||||||
for(int i = 0; i < BlockCrystal.allCrystals.length; i++){
|
for(int i = 0; i < BlockCrystal.allCrystals.length; i++){
|
||||||
String name = this.getRegistryName()+BlockCrystal.allCrystals[i].name;
|
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.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -335,13 +335,10 @@ public class ItemDrill extends ItemEnergy{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[16];
|
|
||||||
for(int i = 0; i < 16; i++){
|
for(int i = 0; i < 16; i++){
|
||||||
String name = this.getRegistryName()+TheColoredLampColors.values()[i].name;
|
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.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -102,12 +102,9 @@ public class ItemFoods extends ItemFoodBase{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allFoods.length];
|
|
||||||
for(int i = 0; i < allFoods.length; i++){
|
for(int i = 0; i < allFoods.length; i++){
|
||||||
String name = this.getRegistryName()+allFoods[i].name;
|
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.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -59,12 +59,9 @@ public class ItemMisc extends ItemBase{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allMiscItems.length];
|
|
||||||
for(int i = 0; i < allMiscItems.length; i++){
|
for(int i = 0; i < allMiscItems.length; i++){
|
||||||
String name = this.getRegistryName()+allMiscItems[i].name;
|
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.addRenderRegister(new ItemStack(this, 1, i), new ModelResourceLocation(name, "inventory"));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,11 +164,6 @@ public class ClientProxy implements IProxy{
|
||||||
modelLocationsForRegistering.put(stack, location);
|
modelLocationsForRegistering.put(stack, location);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addRenderVariant(Item item, ResourceLocation... location){
|
|
||||||
modelVariantsForRegistering.put(item, location);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addColoredItem(Item item){
|
public void addColoredItem(Item item){
|
||||||
colorProdividingItemsForRegistering.add(item);
|
colorProdividingItemsForRegistering.add(item);
|
||||||
|
|
|
@ -28,7 +28,5 @@ public interface IProxy{
|
||||||
|
|
||||||
void addRenderRegister(ItemStack stack, ModelResourceLocation location);
|
void addRenderRegister(ItemStack stack, ModelResourceLocation location);
|
||||||
|
|
||||||
void addRenderVariant(Item item, ResourceLocation... location);
|
|
||||||
|
|
||||||
void addColoredItem(Item item);
|
void addColoredItem(Item item);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,6 @@ public class ServerProxy implements IProxy{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addRenderVariant(Item item, ResourceLocation... location){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addColoredItem(Item item){
|
public void addColoredItem(Item item){
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue