Class HealthUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.HealthUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class HealthUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official sg
intermediary net/minecraft/class_2749
named net/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private int
food
private float
health
private float
saturation
-
Constructor Summary
Constructors Constructor Description HealthUpdateS2CPacket(float health, int food, float saturation)
HealthUpdateS2CPacket(PacketByteBuf buf)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getFood()
float
getHealth()
float
getSaturation()
void
write(PacketByteBuf buf)
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.Packet
isWritingErrorSkippable
-
Field Details
-
health
private final float health- Mappings:
Namespace Name Mixin selector official a
Lsg;a:F
intermediary field_12584
Lnet/minecraft/class_2749;field_12584:F
named health
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;health:F
-
food
private final int food- Mappings:
Namespace Name Mixin selector official b
Lsg;b:I
intermediary field_12585
Lnet/minecraft/class_2749;field_12585:I
named food
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;food:I
-
saturation
private final float saturation- Mappings:
Namespace Name Mixin selector official c
Lsg;c:F
intermediary field_12583
Lnet/minecraft/class_2749;field_12583:F
named saturation
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;saturation:F
-
-
Constructor Details
-
HealthUpdateS2CPacket
public HealthUpdateS2CPacket(float health, int food, float saturation)- Mappings:
Namespace Name Mixin selector official <init>
Lsg;<init>(FIF)V
intermediary <init>
Lnet/minecraft/class_2749;<init>(FIF)V
named <init>
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;<init>(FIF)V
-
HealthUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lsg;<init>(Lnx;)V
intermediary <init>
Lnet/minecraft/class_2749;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lpb;a(Lnx;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lsg;a(Lpe;)V
intermediary method_11832
Lnet/minecraft/class_2749;method_11832(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getHealth
- Mappings:
Namespace Name Mixin selector official b
Lsg;b()F
intermediary method_11833
Lnet/minecraft/class_2749;method_11833()F
named getHealth
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getHealth()F
-
getFood
- Mappings:
Namespace Name Mixin selector official c
Lsg;c()I
intermediary method_11831
Lnet/minecraft/class_2749;method_11831()I
named getFood
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getFood()I
-
getSaturation
- Mappings:
Namespace Name Mixin selector official d
Lsg;d()F
intermediary method_11834
Lnet/minecraft/class_2749;method_11834()F
named getSaturation
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getSaturation()F
-