Class ClientboundSetHealthPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetHealthPacket
- All Implemented Interfaces:
 Packet<ClientGamePacketListener>
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final floatprivate final float - 
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetHealthPacket(float p_133238_, int p_133239_, float p_133240_) ClientboundSetHealthPacket(FriendlyByteBuf p_179301_)  - 
Method Summary
Modifier and TypeMethodDescriptionintgetFood()floatfloatvoidhandle(ClientGamePacketListener p_133246_) voidwrite(FriendlyByteBuf p_133249_) 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, nextProtocol 
- 
Field Details
- 
health
private final float health - 
food
private final int food - 
saturation
private final float saturation 
 - 
 - 
Constructor Details
- 
ClientboundSetHealthPacket
public ClientboundSetHealthPacket(float p_133238_, int p_133239_, float p_133240_)  - 
ClientboundSetHealthPacket
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfacePacket<ClientGamePacketListener>
 - 
handle
- Specified by:
 handlein interfacePacket<ClientGamePacketListener>
 - 
getHealth
public float getHealth() - 
getFood
public int getFood() - 
getSaturation
public float getSaturation() 
 -