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 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

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<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

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<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

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<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

      @Environment(CLIENT) public float 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

      @Environment(CLIENT) public int 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

      @Environment(CLIENT) public float 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