public class ExperienceBarUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private float |
barProgress |
private int |
experience |
private int |
experienceLevel |
Constructor and Description |
---|
ExperienceBarUpdateS2CPacket() |
ExperienceBarUpdateS2CPacket(float barProgress,
int experienceLevel,
int experience) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
float |
getBarProgress() |
int |
getExperience() |
int |
getExperienceLevel() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private float barProgress
private int experienceLevel
private int experience
public ExperienceBarUpdateS2CPacket()
public ExperienceBarUpdateS2CPacket(float barProgress, int experienceLevel, int experience)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public float getBarProgress()
@Environment(value=CLIENT) public int getExperienceLevel()
@Environment(value=CLIENT) public int getExperience()