public Packet getPacket(ItemStack stack) { if (this.field_176105_d) { this.field_176105_d = false; return new S34PacketMaps(stack.getMetadata(), MapData.this.scale, MapData.this.mapDecorations.values(), MapData.this.colors, this.minX, this.minY, this.maxX + 1 - this.minX, this.maxY + 1 - this.minY); } else { return this.field_176109_i++ % 5 == 0 ? new S34PacketMaps(stack.getMetadata(), MapData.this.scale, MapData.this.mapDecorations.values(), MapData.this.colors, 0, 0, 0, 0) : null; } }
/** * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a * MapItemRenderer for it */ public void handleMaps(S34PacketMaps packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); MapData mapdata = ItemMap.loadMapData(packetIn.getMapId(), this.gameController.theWorld); packetIn.setMapdataTo(mapdata); this.gameController.entityRenderer.getMapItemRenderer().updateMapTexture(mapdata); }
/** * Updates the worlds MapStorage with the specified MapData for the specified * map-identifier and invokes a MapItemRenderer for it */ public void handleMaps(S34PacketMaps packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); MapData mapdata = ItemMap.loadMapData(packetIn.getMapId(), this.gameController.theWorld); packetIn.setMapdataTo(mapdata); this.gameController.entityRenderer.getMapItemRenderer().updateMapTexture(mapdata); }
/** * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a * MapItemRenderer for it */ public void handleMaps(S34PacketMaps p_147264_1_) { MapData var2 = ItemMap.func_150912_a(p_147264_1_.func_149188_c(), this.gameController.theWorld); var2.updateMPMapData(p_147264_1_.func_149187_d()); this.gameController.entityRenderer.getMapItemRenderer().func_148246_a(var2); }
public Packet func_150911_c(ItemStack p_150911_1_, World p_150911_2_, EntityPlayer p_150911_3_) { byte[] var4 = this.getMapData(p_150911_1_, p_150911_2_).getUpdatePacketData(p_150911_1_, p_150911_2_, p_150911_3_); return var4 == null ? null : new S34PacketMaps(p_150911_1_.getItemDamage(), var4); }
public Packet func_150911_c(ItemStack p_150911_1_, World p_150911_2_, EntityPlayer p_150911_3_) { byte[] abyte = this.getMapData(p_150911_1_, p_150911_2_).getUpdatePacketData(p_150911_1_, p_150911_2_, p_150911_3_); return abyte == null ? null : new S34PacketMaps(p_150911_1_.getItemDamage(), abyte); }
public void handleMaps(S34PacketMaps p_147264_1_) { MapData mapdata = ItemMap.func_150912_a(p_147264_1_.func_149188_c(), this.gameController.theWorld); mapdata.updateMPMapData(p_147264_1_.func_149187_d()); this.gameController.entityRenderer.getMapItemRenderer().func_148246_a(mapdata); }
/** * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a * MapItemRenderer for it */ void handleMaps(S34PacketMaps packetIn);
/** * Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a * MapItemRenderer for it */ void handleMaps(S34PacketMaps var1);
void handleMaps(S34PacketMaps p_147264_1_);