Class ClientboundSetExperiencePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.player.ClientboundSetExperiencePacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetExperiencePacket(float experience, int level, int totalExperience) ClientboundSetExperiencePacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatintgetLevel()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetExperiencePacketwithExperience(float experience) @NonNull ClientboundSetExperiencePacketwithLevel(int level) @NonNull ClientboundSetExperiencePacketwithTotalExperience(int totalExperience) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetExperiencePacket
public ClientboundSetExperiencePacket(io.netty.buffer.ByteBuf in) -
ClientboundSetExperiencePacket
public ClientboundSetExperiencePacket(float experience, int level, int totalExperience)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getExperience
public float getExperience() -
getLevel
public int getLevel() -
getTotalExperience
public int getTotalExperience() -
equals
-
canEqual
-
hashCode
-
toString
-
withExperience
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLevel
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTotalExperience
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-