Class WrapperPlayServerEntityHeadRotation
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityHeadRotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketTypeThe 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 valuesWrapperPlayServerEntityHeadRotation(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the value of field 'entityId'byteRetrieves the value of field 'yHeadRot'floatGets the rotation of the head in degrees between 0.0 deg and 1.0 deg.voidsetEntityId(int value) Sets the value of field 'entityId'voidsetYHeadRot(byte value) Sets the value of field 'yHeadRot'voidsetYHeadRotAngle(float newAngle) Sets the rotation of the head in degrees between 0.0 deg and 1.0 deg.Methods 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
-
WrapperPlayServerEntityHeadRotation
public WrapperPlayServerEntityHeadRotation()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerEntityHeadRotation
public WrapperPlayServerEntityHeadRotation(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getEntityId
public int getEntityId()Retrieves the value of field 'entityId'- Returns:
- 'entityId'
-
setEntityId
public void setEntityId(int value) Sets the value of field 'entityId'- Parameters:
value- New value for field 'entityId'
-
getYHeadRot
public byte getYHeadRot()Retrieves the value of field 'yHeadRot'- Returns:
- 'yHeadRot'
-
getYHeadRotAngle
public float getYHeadRotAngle()Gets the rotation of the head in degrees between 0.0 deg and 1.0 deg.- Returns:
- head rotation in degree
-
setYHeadRot
public void setYHeadRot(byte value) Sets the value of field 'yHeadRot'- Parameters:
value- New value for field 'yHeadRot'
-
setYHeadRotAngle
public void setYHeadRotAngle(float newAngle) Sets the rotation of the head in degrees between 0.0 deg and 1.0 deg.- Parameters:
newAngle- rotation of head in degree
-