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, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatintgetLevel()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetExperiencePacketwithExperience(float experience) @NonNull ClientboundSetExperiencePacketwithLevel(int level) @NonNull ClientboundSetExperiencePacketwithTotalExperience(int totalExperience) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundSetExperiencePacket
-
ClientboundSetExperiencePacket
public ClientboundSetExperiencePacket(float experience, int level, int totalExperience)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getExperience
public float getExperience() -
getLevel
public int getLevel() -
getTotalExperience
public int getTotalExperience() -
equals
-
canEqual
-
hashCode
public int 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).
-