Class ClientboundAnimatePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAnimatePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final intprivate final intstatic final intstatic final StreamCodec<FriendlyByteBuf, ClientboundAnimatePacket> static final intstatic final intstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClientboundAnimatePacket(FriendlyByteBuf p_178590_) ClientboundAnimatePacket(Entity pEntity, int pAction) -
Method Summary
Modifier and TypeMethodDescriptionintintgetId()voidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(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, waitMethods 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:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getAction
public int getAction()
-