Class ExperienceBarUpdateS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.ExperienceBarUpdateS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class ExperienceBarUpdateS2CPacket
extends Object
implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official rw
intermediary net/minecraft/class_2748
named net/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket
  • Field Details

    • barProgress

      private float barProgress
      Mappings:
      Namespace Name Mixin selector
      official a Lrw;a:F
      intermediary field_12580 Lnet/minecraft/class_2748;field_12580:F
      named barProgress Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;barProgress:F
    • experienceLevel

      private int experienceLevel
      Mappings:
      Namespace Name Mixin selector
      official b Lrw;b:I
      intermediary field_12582 Lnet/minecraft/class_2748;field_12582:I
      named experienceLevel Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;experienceLevel:I
    • experience

      private int experience
      Mappings:
      Namespace Name Mixin selector
      official c Lrw;c:I
      intermediary field_12581 Lnet/minecraft/class_2748;field_12581:I
      named experience Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;experience:I
  • Constructor Details

    • ExperienceBarUpdateS2CPacket

      public ExperienceBarUpdateS2CPacket()
    • ExperienceBarUpdateS2CPacket

      public ExperienceBarUpdateS2CPacket​(float barProgress, int experienceLevel, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrw;<init>(FII)V
      intermediary <init> Lnet/minecraft/class_2748;<init>(FII)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;<init>(FII)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 Lrw;a(Lpd;)V
      intermediary method_11829 Lnet/minecraft/class_2748;method_11829(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getBarProgress

      @Environment(CLIENT) public float getBarProgress()
      Mappings:
      Namespace Name Mixin selector
      official b Lrw;b()F
      intermediary method_11830 Lnet/minecraft/class_2748;method_11830()F
      named getBarProgress Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;getBarProgress()F
    • getExperienceLevel

      @Environment(CLIENT) public int getExperienceLevel()
      Mappings:
      Namespace Name Mixin selector
      official c Lrw;c()I
      intermediary method_11827 Lnet/minecraft/class_2748;method_11827()I
      named getExperienceLevel Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;getExperienceLevel()I
    • getExperience

      @Environment(CLIENT) public int getExperience()
      Mappings:
      Namespace Name Mixin selector
      official d Lrw;d()I
      intermediary method_11828 Lnet/minecraft/class_2748;method_11828()I
      named getExperience Lnet/minecraft/network/packet/s2c/play/ExperienceBarUpdateS2CPacket;getExperience()I