Class WrapperPlayServerAnimation
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerAnimation
Sent whenever an entity should change animation.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerAnimation
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the animation as an enumint
Retrieves the numerical index of the corresponding actionint
getId()
Sets the id of the entityvoid
Sets the animationvoid
setActionId
(int value) Sets the numerical index of the corresponding animationvoid
setId
(int value) Sets the id of the entityMethods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerAnimation
public WrapperPlayServerAnimation()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerAnimation
public WrapperPlayServerAnimation(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getId
public int getId()Sets the id of the entity- Returns:
- 'id'
-
setId
public void setId(int value) Sets the id of the entity- Parameters:
value
- New value for field 'id'
-
getActionId
public int getActionId()Retrieves the numerical index of the corresponding action- Returns:
- 'action'
-
getAction
Retrieves the animation as an enum- Returns:
- 'action'
-
setActionId
public void setActionId(int value) Sets the numerical index of the corresponding animation- Parameters:
value
- New value for field 'action'
-
setAction
Sets the animation- Parameters:
value
- New value for field 'action'
-