public void func_175173_a(Container p_175173_1_, IInventory p_175173_2_) { for (int i = 0; i < p_175173_2_.getFieldCount(); ++i) { this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(p_175173_1_.windowId, i, p_175173_2_.getField(i))); } }
/** * Sets the progressbar of the opened window to the specified value */ public void handleWindowProperty(S31PacketWindowProperty packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); EntityPlayer entityplayer = this.gameController.thePlayer; if (entityplayer.openContainer != null && entityplayer.openContainer.windowId == packetIn.getWindowId()) { entityplayer.openContainer.updateProgressBar(packetIn.getVarIndex(), packetIn.getVarValue()); } }
/** * Sets the progressbar of the opened window to the specified value */ public void handleWindowProperty(S31PacketWindowProperty p_147245_1_) { EntityClientPlayerMP var2 = this.gameController.thePlayer; if (var2.openContainer != null && var2.openContainer.windowId == p_147245_1_.func_149182_c()) { var2.openContainer.updateProgressBar(p_147245_1_.func_149181_d(), p_147245_1_.func_149180_e()); } }
public void handleWindowProperty(S31PacketWindowProperty p_147245_1_) { EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer; if (entityclientplayermp.openContainer != null && entityclientplayermp.openContainer.windowId == p_147245_1_.func_149182_c()) { entityclientplayermp.openContainer.updateProgressBar(p_147245_1_.func_149181_d(), p_147245_1_.func_149180_e()); } }
public void sendProgressBarUpdate(Container p_71112_1_, int p_71112_2_, int p_71112_3_) { this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(p_71112_1_.windowId, p_71112_2_, p_71112_3_)); }
/** * Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, * and enchanting level. Normally the first int identifies which variable to update, and the second contains the new * value. Both are truncated to shorts in non-local SMP. */ public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue) { this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(containerIn.windowId, varToUpdate, newValue)); }
/** * Sets the progressbar of the opened window to the specified value */ void handleWindowProperty(S31PacketWindowProperty packetIn);
/** * Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, * and enchanting level. Normally the first int identifies which variable to update, and the second contains the new * value. Both are truncated to shorts in non-local SMP. */ public void sendProgressBarUpdate(Container par1Container, int par2, int par3) { this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(par1Container.windowId, par2, par3)); }
/** * Sets the progressbar of the opened window to the specified value */ void handleWindowProperty(S31PacketWindowProperty var1);
void handleWindowProperty(S31PacketWindowProperty p_147245_1_);