public class CooldownUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Constructor and Description |
---|
CooldownUpdateS2CPacket() |
CooldownUpdateS2CPacket(Item item,
int cooldown) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getCooldown() |
Item |
getItem() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private Item item
private int cooldown
public CooldownUpdateS2CPacket()
public CooldownUpdateS2CPacket(Item item, int cooldown)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public Item getItem()
@Environment(value=CLIENT) public int getCooldown()