Permalink
Browse files

v1.6.4_1 MC1.6.4

  • Loading branch information...
hide92795
hide92795 committed Sep 24, 2013
1 parent 4fffae0 commit 9b324e2c19d22d8a4cd881ff70ae5876762314c5
Binary file not shown.
@@ -46,7 +46,7 @@
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.Side;
@Mod(modid = "HangableMaps", name = "Hangable Maps", version = "1.6.2_2")
@Mod(modid = "HangableMaps", name = "Hangable Maps", version = "1.6.4_1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false, clientPacketHandlerSpec = @NetworkMod.SidedPacketHandler(channels = {
"HM_MapData", "HM_MapInfo" }, packetHandler = hide92795.mods.hangablemaps.client.ClientPacketHandler.class), serverPacketHandlerSpec = @NetworkMod.SidedPacketHandler(channels = {
"HM_ReqMapData", "HM_ReqMapInfo" }, packetHandler = ServerPacketHandler.class))
@@ -17,7 +17,7 @@
protected ItemEmptyHangableMap(int par1) {
super(par1);
setHasSubtypes(true);
func_111206_d("map_empty");
setTextureName("map_empty");
}
/**
@@ -16,7 +16,7 @@
protected ItemHangableMap(int par1) {
super(par1);
this.setMaxStackSize(64);
func_111206_d("map_filled");
setTextureName("map_filled");
}
@Override
@@ -47,8 +47,8 @@ public RenderHangableMaps() {
this.gameSettings = minecraft.gameSettings;
this.bufferedImage = new DynamicTexture(128, 128);
this.textureManager = minecraft.renderEngine;
this.texture_mapdata = textureManager.func_110578_a("map", this.bufferedImage);
this.intArray = this.bufferedImage.func_110565_c();
this.texture_mapdata = textureManager.getDynamicTextureLocation("map", this.bufferedImage);
this.intArray = this.bufferedImage.getTextureData();
for (int var4 = 0; var4 < 16384; ++var4) {
this.intArray[var4] = 0;
}
@@ -69,7 +69,7 @@ public void renderHangableMap(EntityHangableMap entity, double var2, double var4
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glShadeModel(GL11.GL_SMOOTH);
GL11.glDisable(GL11.GL_LIGHTING);
textureManager.func_110577_a(texture_map_background);
textureManager.bindTexture(texture_map_background);
GL11.glScalef(0.0625F, 0.0625F, 0.0625F);
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
@@ -121,12 +121,12 @@ public void renderMap(EntityHangableMap entity, EntityPlayer player, MapData map
}
}
this.bufferedImage.func_110564_a();
this.bufferedImage.updateDynamicTexture();
byte b1 = 0;
byte b2 = 0;
Tessellator tessellator = Tessellator.instance;
textureManager.func_110577_a(texture_mapdata);
textureManager.bindTexture(texture_mapdata);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glDisable(GL11.GL_ALPHA_TEST);
@@ -141,7 +141,7 @@ public void renderMap(EntityHangableMap entity, EntityPlayer player, MapData map
// render player icon
HangableMapData mapinfo = HangableMaps.instance.getMapinfos((short) entity.getMapIdFromDataWatcher());
textureManager.func_110577_a(this.texture_map_icon);
textureManager.bindTexture(this.texture_map_icon);
if (mapinfo.received) {
Iterator<EntityPlayer> iterator = player.worldObj.playerEntities.iterator();
while (iterator.hasNext()) {
@@ -241,8 +241,7 @@ private void drawPlayer(EntityPlayer player, MapData mapdata, HangableMapData ma
}
@Override
protected ResourceLocation func_110775_a(Entity entity) {
System.out.println("RenderHangableMaps.func_110775_a()");
return null;
protected ResourceLocation getEntityTexture(Entity entity) {
return texture_mapdata;
}
}
View
@@ -3,10 +3,10 @@
"modid": "HangableMaps",
"name": "Hangable Maps",
"description": "Let's try to hang maps on the wall! You can make a large map!",
"version": "1.6.2_2",
"version": "1.6.4_1",
"credits": "",
"logoFile": "",
"mcversion": "1.6.2",
"mcversion": "1.6.4",
"url": "http://minecraft.hide92795.org/mod/hangable-maps/",
"updateUrl": "http://minecraft.hide92795.org/mod/hangable-maps/",
"authors": [ "hide92795" ]

0 comments on commit 9b324e2

Please sign in to comment.