public void handleCooldown(SPacketCooldown packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (packetIn.getTicks() == 0) { this.gameController.player.getCooldownTracker().removeCooldown(packetIn.getItem()); } else { this.gameController.player.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks()); } }
public void handleCooldown(SPacketCooldown packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (packetIn.getTicks() == 0) { this.gameController.thePlayer.getCooldownTracker().removeCooldown(packetIn.getItem()); } else { this.gameController.thePlayer.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks()); } }
protected void notifyOnSet(Item itemIn, int ticksIn) { super.notifyOnSet(itemIn, ticksIn); this.player.connection.sendPacket(new SPacketCooldown(itemIn, ticksIn)); }
protected void notifyOnRemove(Item itemIn) { super.notifyOnRemove(itemIn); this.player.connection.sendPacket(new SPacketCooldown(itemIn, 0)); }
void handleCooldown(SPacketCooldown packetIn);