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 rx
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()
HealthUpdateS2CPacket(float health, int food, float saturation)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getFood()
float
getHealth()
float
getSaturation()
void
read(PacketByteBuf buf)
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 float health- Mappings:
Namespace Name Mixin selector official a
Lrx;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 int food- Mappings:
Namespace Name Mixin selector official b
Lrx;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 float saturation- Mappings:
Namespace Name Mixin selector official c
Lrx;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() -
HealthUpdateS2CPacket
public HealthUpdateS2CPacket(float health, int food, float saturation)- Mappings:
Namespace Name Mixin selector official <init>
Lrx;<init>(FIF)V
intermediary <init>
Lnet/minecraft/class_2749;<init>(FIF)V
named <init>
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;<init>(FIF)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)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
Lrx;a(Lpd;)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
Lrx;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
Lrx;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
Lrx;d()F
intermediary method_11834
Lnet/minecraft/class_2749;method_11834()F
named getSaturation
Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getSaturation()F
-