Class WrapperPlayServerExperience
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerExperience
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerExperience
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the value of field 'experienceLevel'float
Retrieves the value of field 'experienceProgress'int
Retrieves the value of field 'totalExperience'void
setExperienceLevel
(int value) Sets the value of field 'experienceLevel'void
setExperienceProgress
(float value) Sets the value of field 'experienceProgress'void
setTotalExperience
(int value) Sets the value of field 'totalExperience'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerExperience
public WrapperPlayServerExperience()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerExperience
public WrapperPlayServerExperience(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getExperienceProgress
public float getExperienceProgress()Retrieves the value of field 'experienceProgress'- Returns:
- 'experienceProgress'
-
setExperienceProgress
public void setExperienceProgress(float value) Sets the value of field 'experienceProgress'- Parameters:
value
- New value for field 'experienceProgress'
-
getTotalExperience
public int getTotalExperience()Retrieves the value of field 'totalExperience'- Returns:
- 'totalExperience'
-
setTotalExperience
public void setTotalExperience(int value) Sets the value of field 'totalExperience'- Parameters:
value
- New value for field 'totalExperience'
-
getExperienceLevel
public int getExperienceLevel()Retrieves the value of field 'experienceLevel'- Returns:
- 'experienceLevel'
-
setExperienceLevel
public void setExperienceLevel(int value) Sets the value of field 'experienceLevel'- Parameters:
value
- New value for field 'experienceLevel'
-