net.minecraft.network.protocol.game

public class ClientboundSetHealthPacket

implements Packet<ClientGamePacketListener>

agg
net.minecraft.network.protocol.game.ClientboundSetHealthPacket
net.minecraft.class_2749
net.minecraft.network.packet.s2c.play.HealthUpdateS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutUpdateHealth

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ClientboundSetHealthPacket>
a
STREAM_CODEC
field_47984
CODEC
private final float
b
health
field_12584
health
private final int
c
food
field_12585
food
private final float
d
saturation
field_12583
saturation

Constructor summary

ModifierConstructor
public (float health, int food, float saturation)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(ws arg0)
write(FriendlyByteBuf arg0)
method_55931(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ClientboundSetHealthPacket>
a()
type()
method_55846()
getPacketId()
public void
a(acr arg0)
handle(ClientGamePacketListener arg0)
method_11832(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public float
b()
getHealth()
method_11833()
getHealth()
public int
e()
getFood()
method_11831()
getFood()
public float
f()
getSaturation()
method_11834()
getSaturation()