Class ClientboundAnimatePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAnimatePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final int
private final int
static final int
static final StreamCodec
<FriendlyByteBuf, ClientboundAnimatePacket> static final int
static final int
static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClientboundAnimatePacket
(FriendlyByteBuf p_178590_) ClientboundAnimatePacket
(Entity pEntity, int pAction) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getId()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(FriendlyByteBuf p_131626_) Writes the raw packet data to the data stream.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
-
SWING_MAIN_HAND
public static final int SWING_MAIN_HAND- See Also:
-
WAKE_UP
public static final int WAKE_UP- See Also:
-
SWING_OFF_HAND
public static final int SWING_OFF_HAND- See Also:
-
CRITICAL_HIT
public static final int CRITICAL_HIT- See Also:
-
MAGIC_CRITICAL_HIT
public static final int MAGIC_CRITICAL_HIT- See Also:
-
id
private final int id -
action
private final int action
-
-
Constructor Details
-
ClientboundAnimatePacket
-
ClientboundAnimatePacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getAction
public int getAction()
-