Class WrapperPlayServerUpdateHealth
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerUpdateHealth
-
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 valuesWrapperPlayServerUpdateHealth
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
getFood()
Retrieves the value of field 'food'float
Retrieves the value of field 'health'float
Retrieves the value of field 'saturation'void
setFood
(int value) Sets the value of field 'food'void
setHealth
(float value) Sets the value of field 'health'void
setSaturation
(float value) Sets the value of field 'saturation'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
-
WrapperPlayServerUpdateHealth
public WrapperPlayServerUpdateHealth()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerUpdateHealth
public WrapperPlayServerUpdateHealth(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getHealth
public float getHealth()Retrieves the value of field 'health'- Returns:
- 'health'
-
setHealth
public void setHealth(float value) Sets the value of field 'health'- Parameters:
value
- New value for field 'health'
-
getFood
public int getFood()Retrieves the value of field 'food'- Returns:
- 'food'
-
setFood
public void setFood(int value) Sets the value of field 'food'- Parameters:
value
- New value for field 'food'
-
getSaturation
public float getSaturation()Retrieves the value of field 'saturation'- Returns:
- 'saturation'
-
setSaturation
public void setSaturation(float value) Sets the value of field 'saturation'- Parameters:
value
- New value for field 'saturation'
-