Class ClientboundPlayerCombatEndPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundPlayerCombatEndPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final StreamCodec
<FriendlyByteBuf, ClientboundPlayerCombatEndPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundPlayerCombatEndPacket
(int duration) private
ClientboundPlayerCombatEndPacket
(CombatTracker combatTracker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(ClientGamePacketListener handler) Passes this Packet on to the PacketListener for processing.type()
private void
write
(FriendlyByteBuf buffer) 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, isTerminal
-
Field Details
-
STREAM_CODEC
-
duration
private final int duration
-
-
Constructor Details
-
ClientboundPlayerCombatEndPacket
-
ClientboundPlayerCombatEndPacket
public ClientboundPlayerCombatEndPacket(int duration) -
ClientboundPlayerCombatEndPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the PacketListener for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-