Class ClientboundSetHealthPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetHealthPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
private final float
-
Constructor Summary
ConstructorDescriptionClientboundSetHealthPacket
(float p_133238_, int p_133239_, float p_133240_) ClientboundSetHealthPacket
(FriendlyByteBuf p_179301_) -
Method Summary
Modifier and TypeMethodDescriptionint
getFood()
float
float
void
handle
(ClientGamePacketListener p_133246_) void
write
(FriendlyByteBuf p_133249_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getHealth
public float getHealth() -
getFood
public int getFood() -
getSaturation
public float getSaturation()
-