Class ClientboundAnimatePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAnimatePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic intstatic intprivate intstatic intstatic intstatic intstatic int -
Constructor Summary
ConstructorsConstructorDescriptionClientboundAnimatePacket(FriendlyByteBuf p_178590_)ClientboundAnimatePacket(Entity p_131616_, int p_131617_) -
Method Summary
Modifier and TypeMethodDescriptionintintgetId()voidhandle(ClientGamePacketListener p_131623_)voidwrite(FriendlyByteBuf p_131626_)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
-
Field Details
-
SWING_MAIN_HAND
public static final int SWING_MAIN_HAND- See Also:
- Constant Field Values
-
HURT
public static final int HURT- See Also:
- Constant Field Values
-
WAKE_UP
public static final int WAKE_UP- See Also:
- Constant Field Values
-
SWING_OFF_HAND
public static final int SWING_OFF_HAND- See Also:
- Constant Field Values
-
CRITICAL_HIT
public static final int CRITICAL_HIT- See Also:
- Constant Field Values
-
MAGIC_CRITICAL_HIT
public static final int MAGIC_CRITICAL_HIT- See Also:
- Constant Field Values
-
id
private final int id -
action
private final int action
-
-
Constructor Details
-
ClientboundAnimatePacket
-
ClientboundAnimatePacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getAction
public int getAction()
-