/** * Enchants the item identified by the packet given some convoluted conditions (matching window, which * should/shouldn't be in use?) */ public void processEnchantItem(C11PacketEnchantItem packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer()); this.playerEntity.markPlayerActive(); if (this.playerEntity.openContainer.windowId == packetIn.getWindowId() && this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator()) { this.playerEntity.openContainer.enchantItem(this.playerEntity, packetIn.getButton()); this.playerEntity.openContainer.detectAndSendChanges(); } }
/** * Enchants the item identified by the packet given some convoluted conditions (matching window, which * should/shouldn't be in use?) */ public void processEnchantItem(C11PacketEnchantItem p_147338_1_) { this.playerEntity.func_143004_u(); if (this.playerEntity.openContainer.windowId == p_147338_1_.func_149539_c() && this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity)) { this.playerEntity.openContainer.enchantItem(this.playerEntity, p_147338_1_.func_149537_d()); this.playerEntity.openContainer.detectAndSendChanges(); } }
public void processEnchantItem(C11PacketEnchantItem p_147338_1_) { this.playerEntity.func_143004_u(); if (this.playerEntity.openContainer.windowId == p_147338_1_.func_149539_c() && this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity)) { this.playerEntity.openContainer.enchantItem(this.playerEntity, p_147338_1_.func_149537_d()); this.playerEntity.openContainer.detectAndSendChanges(); } }
/** * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the * enchantment action the player has taken. */ public void sendEnchantPacket(int p_78756_1_, int p_78756_2_) { this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_)); }
public void sendEnchantPacket(int p_78756_1_, int p_78756_2_) { this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_)); }
/** * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the * enchantment action the player has taken. */ public void sendEnchantPacket(int par1, int par2) { this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(par1, par2)); }
@Override public void processEnchantItem(C11PacketEnchantItem p_147338_1_) { }
/** * Enchants the item identified by the packet given some convoluted conditions (matching window, which * should/shouldn't be in use?) */ void processEnchantItem(C11PacketEnchantItem packetIn);
/** * Enchants the item identified by the packet given some convoluted conditions (matching window, which * should/shouldn't be in use?) */ void processEnchantItem(C11PacketEnchantItem var1);
void processEnchantItem(C11PacketEnchantItem p_147338_1_);