Class ClientboundCooldownPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCooldownPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundCooldownPacket
(FriendlyByteBuf p_178831_) ClientboundCooldownPacket
(Item p_132000_, int p_132001_) -
Method Summary
Modifier and TypeMethodDescriptionint
getItem()
void
handle
(ClientGamePacketListener p_132007_) void
write
(FriendlyByteBuf p_132010_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
item
-
duration
private final int duration
-
-
Constructor Details
-
ClientboundCooldownPacket
-
ClientboundCooldownPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getItem
-
getDuration
public int getDuration()
-