Fix RenderRegistry render ID - now at 36

Fix SpriteMaps - they're running out fast! Switch to forge if you can!
RenderBiped now has an armorlist- so armortypes add to it as well
This commit is contained in:
Christian 2012-10-21 12:20:52 -04:00
parent 8af47f2bb9
commit b88f2e6938
3 changed files with 19 additions and 15 deletions

View File

@ -34,7 +34,7 @@ public class SpriteHelper
SpriteHelper.toBitSet(
"0000000000000000" +
"0000000000110000" +
"0000000001100000" +
"0000000000100000" +
"0000000001100000" +
"0000000000000000" +
"0000000000000000" +
@ -43,10 +43,10 @@ public class SpriteHelper
"0000000000000000" +
"0000000000000000" +
"0000000000000000" +
"0000000011111111" +
"0000000011111000" +
"0000000111111100" +
"0000000111111000" +
"0000000000011111" +
"0000000000000000" +
"0000000001111100" +
"0000000001111000" +
"0000000000000000");
spriteInfo.put("/terrain.png", slots);
@ -57,15 +57,15 @@ public class SpriteHelper
"0000000000000000" +
"0000000000000000" +
"0000000000000000" +
"0000001000000000" +
"0000001110000000" +
"0000001000000000" +
"1111101010000000" +
"1111101010000000" +
"1111101110000000" +
"1111111111110000" +
"1111111111111111" +
"1111111111111111" +
"0000000000000000" +
"0000000000000000" +
"0000000000000000" +
"0111100000000000" +
"1111100010000000" +
"0000101110000000" +
"0111000000000000" +
"1100001100001111" +
"0000000000001111" +
"0000000000000000");
spriteInfo.put("/gui/items.png", slots);
}

View File

@ -7,6 +7,7 @@ import net.minecraft.src.Block;
import net.minecraft.src.Entity;
import net.minecraft.src.IBlockAccess;
import net.minecraft.src.Render;
import net.minecraft.src.RenderBiped;
import net.minecraft.src.RenderBlocks;
import net.minecraft.src.RenderManager;
import net.minecraft.src.RenderPlayer;
@ -26,7 +27,7 @@ public class RenderingRegistry
{
private static final RenderingRegistry INSTANCE = new RenderingRegistry();
private int nextRenderId = 32;
private int nextRenderId = 36;
private Map<Integer, ISimpleBlockRenderingHandler> blockRenderers = Maps.newHashMap();
@ -40,6 +41,7 @@ public class RenderingRegistry
public static int addNewArmourRendererPrefix(String armor)
{
RenderPlayer.field_77110_j = ObjectArrays.concat(RenderPlayer.field_77110_j, armor);
RenderBiped.field_82424_k = RenderPlayer.field_77110_j;
return RenderPlayer.field_77110_j.length - 1;
}

View File

@ -18,6 +18,8 @@ public azc.*
public azc.*()
#RenderPlayer - make armorlist public and not final
public-f bap.h
#RenderBiped - armorlist again
public-f bad.k
#StringTranslate - make the current table and language public
public bd.b
public bd.d