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

    • CODEC

      public static final PacketCodec<PacketByteBuf,HealthUpdateS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47984 Lnet/minecraft/class_2749;field_47984:Lnet/minecraft/class_9139;
      official a Lagg;a:Lzt;
    • health

      private final float health
      Mappings:
      Namespace Name Mixin selector
      named health Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;health:F
      intermediary field_12584 Lnet/minecraft/class_2749;field_12584:F
      official b Lagg;b:F
    • food

      private final int food
      Mappings:
      Namespace Name Mixin selector
      named food Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;food:I
      intermediary field_12585 Lnet/minecraft/class_2749;field_12585:I
      official c Lagg;c:I
    • saturation

      private final float saturation
      Mappings:
      Namespace Name Mixin selector
      named saturation Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;saturation:F
      intermediary field_12583 Lnet/minecraft/class_2749;field_12583:F
      official d Lagg;d:F
  • Constructor Details

    • HealthUpdateS2CPacket

      public HealthUpdateS2CPacket(float health, int food, float saturation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;<init>(FIF)V
      intermediary <init> Lnet/minecraft/class_2749;<init>(FIF)V
      official <init> Lagg;<init>(FIF)V
    • HealthUpdateS2CPacket

      private HealthUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2749;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lagg;<init>(Lws;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_55931 Lnet/minecraft/class_2749;method_55931(Lnet/minecraft/class_2540;)V
      official a Lagg;a(Lws;)V
    • getPacketId

      public PacketType<HealthUpdateS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/HealthUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11832 Lnet/minecraft/class_2749;method_11832(Lnet/minecraft/class_2602;)V
      official a Lagg;a(Lacr;)V
    • getHealth

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

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

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