Class CooldownUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.CooldownUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class CooldownUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CooldownUpdateS2CPacket()CooldownUpdateS2CPacket(Item item, int cooldown) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetCooldown()ItemgetItem()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
CooldownUpdateS2CPacket
public CooldownUpdateS2CPacket() -
CooldownUpdateS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getItem
-
getCooldown
@Environment(CLIENT) public int getCooldown()
-