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 tz
intermediary net/minecraft/class_2749
named net/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket
  • Field Details

    • health

      private final float health
      Mappings:
      Namespace Name Mixin selector
      official a Ltz;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 Ltz;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 Ltz;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> Ltz;<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

      public HealthUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltz;<init>(Lpn;)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

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)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 Ltz;a(Lqu;)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

      public float getHealth()
      Mappings:
      Namespace Name Mixin selector
      official b Ltz;b()F
      intermediary method_11833 Lnet/minecraft/class_2749;method_11833()F
      named getHealth Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getHealth()F
    • getFood

      public int getFood()
      Mappings:
      Namespace Name Mixin selector
      official c Ltz;c()I
      intermediary method_11831 Lnet/minecraft/class_2749;method_11831()I
      named getFood Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getFood()I
    • getSaturation

      public float getSaturation()
      Mappings:
      Namespace Name Mixin selector
      official d Ltz;d()F
      intermediary method_11834 Lnet/minecraft/class_2749;method_11834()F
      named getSaturation Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;getSaturation()F