classinternallombokSource
public class Player

Constructors

public Player()

Methods

Player fromNbt(NbtCompound, JsonObject, JsonObject)Abilities getAbilities()Returns the abilities value.Float getAbsorptionAmount()Returns the absorptionAmount value.Advancements getAdvancements()Returns the advancements value.Short getAir()Returns the air value.Attributes getAttributes()Returns the attributes value.Integer getCurrentImpulseContextResetGraceTime()Returns the currentImpulseContextResetGraceTime value.Integer getDataVersion()Returns the dataVersion value.Short getDeathTime()Returns the deathTime value.String getDimension()Returns the dimension value.Double getFallDistance()Returns the fallDistance value.Boolean getFallFlying()Returns the fallFlying value.Short getFire()Returns the fire value.Float getFoodExhaustionLevel()Returns the foodExhaustionLevel value.Integer getFoodLevel()Returns the foodLevel value.Float getFoodSaturationLevel()Returns the foodSaturationLevel value.Integer getFoodTickTimer()Returns the foodTickTimer value.Float getHealth()Returns the health value.Integer getHurtByTimestamp()Returns the hurtByTimestamp value.Short getHurtTime()Returns the hurtTime value.Inventory getInventory()Returns the inventory value.Boolean getInvulnerable()Returns the invulnerable value.ArrayList<Double> getMotion()Returns the motion value.Integer getPlayerGameType()Returns the playerGameType value.Integer getPortalCooldown()Returns the portalCooldown value.ArrayList<Double> getPosition()Returns the position value.RecipeBook getRecipeBook()Returns the recipeBook value.ArrayList<Double> getRotation()Returns the rotation value.Integer getScore()Returns the score value.Boolean getSeenCredits()Returns the seenCredits value.Integer getSelectedItemSlot()Returns the selectedItemSlot value.Short getSleepTimer()Returns the sleepTimer value.Boolean getSpawnExtraParticlesOnFall()Returns the spawnExtraParticlesOnFall value.Stats getStatistics()Returns the statistics value.ArrayList<Integer> getUUID()Returns the UUID value.WardenSpawnTracker getWardenSpawnTracker()Returns the wardenSpawnTracker value.Integer getXPLevel()Returns the XPLevel value.Integer getXPSeed()Returns the XPSeed value.Integer getXPTotal()Returns the XPTotal value.Float getXpP()Returns the XpP value.void setAbilities(Abilities)Sets the abilities value.void setAbsorptionAmount(Float)Sets the absorptionAmount value.void setAdvancements(Advancements)Sets the advancements value.void setAir(Short)Sets the air value.void setAttributes(Attributes)Sets the attributes value.void setCurrentImpulseContextResetGraceTime(Integer)Sets the currentImpulseContextResetGraceTime value.void setDataVersion(Integer)Sets the dataVersion value.void setDeathTime(Short)Sets the deathTime value.void setDimension(String)Sets the dimension value.void setFallDistance(Double)Sets the fallDistance value.void setFallFlying(Boolean)Sets the fallFlying value.void setFire(Short)Sets the fire value.void setFoodExhaustionLevel(Float)Sets the foodExhaustionLevel value.void setFoodLevel(Integer)Sets the foodLevel value.void setFoodSaturationLevel(Float)Sets the foodSaturationLevel value.void setFoodTickTimer(Integer)Sets the foodTickTimer value.void setHealth(Float)Sets the health value.void setHurtByTimestamp(Integer)Sets the hurtByTimestamp value.void setHurtTime(Short)Sets the hurtTime value.void setInventory(Inventory)Sets the inventory value.void setInvulnerable(Boolean)Sets the invulnerable value.void setMotion(ArrayList)Sets the motion value.void setPlayerGameType(Integer)Sets the playerGameType value.void setPortalCooldown(Integer)Sets the portalCooldown value.void setPosition(ArrayList)Sets the position value.void setRecipeBook(RecipeBook)Sets the recipeBook value.void setRotation(ArrayList)Sets the rotation value.void setScore(Integer)Sets the score value.void setSeenCredits(Boolean)Sets the seenCredits value.void setSelectedItemSlot(Integer)Sets the selectedItemSlot value.void setSleepTimer(Short)Sets the sleepTimer value.void setSpawnExtraParticlesOnFall(Boolean)Sets the spawnExtraParticlesOnFall value.void setStatistics(Stats)Sets the statistics value.void setUUID(ArrayList)Sets the UUID value.void setWardenSpawnTracker(WardenSpawnTracker)Sets the wardenSpawnTracker value.void setXPLevel(Integer)Sets the XPLevel value.void setXPSeed(Integer)Sets the XPSeed value.void setXPTotal(Integer)Sets the XPTotal value.void setXpP(Float)Sets the XpP value.NbtCompound toNbt()
public static Player fromNbt(NbtCompound nbt, JsonObject advancements, JsonObject statistics)
Parameters
nbtNbtCompound
advancementsJsonObject
statisticsJsonObject
Returns
Player
public Abilities getAbilities()

Returns the abilities value.

Returns
Abilities

Generated by Lombok's @Getter for the field abilities

public Float getAbsorptionAmount()

Returns the absorptionAmount value.

Returns
Float

Generated by Lombok's @Getter for the field absorptionAmount

public Advancements getAdvancements()

Returns the advancements value.

Returns
Advancements

Generated by Lombok's @Getter for the field advancements

public Short getAir()

Returns the air value.

Returns
Short

Generated by Lombok's @Getter for the field air

public Attributes getAttributes()

Returns the attributes value.

Returns
Attributes

Generated by Lombok's @Getter for the field attributes

public Integer getCurrentImpulseContextResetGraceTime()

Returns the currentImpulseContextResetGraceTime value.

Returns
Integer

Generated by Lombok's @Getter for the field currentImpulseContextResetGraceTime

public Integer getDataVersion()

Returns the dataVersion value.

Returns
Integer

Generated by Lombok's @Getter for the field dataVersion

public Short getDeathTime()

Returns the deathTime value.

Returns
Short

Generated by Lombok's @Getter for the field deathTime

public String getDimension()

Returns the dimension value.

Returns
String

Generated by Lombok's @Getter for the field dimension

public Double getFallDistance()

Returns the fallDistance value.

Returns
Double

Generated by Lombok's @Getter for the field fallDistance

public Boolean getFallFlying()

Returns the fallFlying value.

Returns
Boolean

Generated by Lombok's @Getter for the field fallFlying

public Short getFire()

Returns the fire value.

Returns
Short

Generated by Lombok's @Getter for the field fire

public Float getFoodExhaustionLevel()

Returns the foodExhaustionLevel value.

Returns
Float

Generated by Lombok's @Getter for the field foodExhaustionLevel

public Integer getFoodLevel()

Returns the foodLevel value.

Returns
Integer

Generated by Lombok's @Getter for the field foodLevel

public Float getFoodSaturationLevel()

Returns the foodSaturationLevel value.

Returns
Float

Generated by Lombok's @Getter for the field foodSaturationLevel

public Integer getFoodTickTimer()

Returns the foodTickTimer value.

Returns
Integer

Generated by Lombok's @Getter for the field foodTickTimer

public Float getHealth()

Returns the health value.

Returns
Float

Generated by Lombok's @Getter for the field health

public Integer getHurtByTimestamp()

Returns the hurtByTimestamp value.

Returns
Integer

Generated by Lombok's @Getter for the field hurtByTimestamp

public Short getHurtTime()

Returns the hurtTime value.

Returns
Short

Generated by Lombok's @Getter for the field hurtTime

public Inventory getInventory()

Returns the inventory value.

Returns
Inventory

Generated by Lombok's @Getter for the field inventory

public Boolean getInvulnerable()

Returns the invulnerable value.

Returns
Boolean

Generated by Lombok's @Getter for the field invulnerable

public ArrayList<Double> getMotion()

Returns the motion value.

Returns
ArrayList<Double>

Generated by Lombok's @Getter for the field motion

public Integer getPlayerGameType()

Returns the playerGameType value.

Returns
Integer

Generated by Lombok's @Getter for the field playerGameType

public Integer getPortalCooldown()

Returns the portalCooldown value.

Returns
Integer

Generated by Lombok's @Getter for the field portalCooldown

public ArrayList<Double> getPosition()

Returns the position value.

Returns
ArrayList<Double>

Generated by Lombok's @Getter for the field position

public RecipeBook getRecipeBook()

Returns the recipeBook value.

Returns
RecipeBook

Generated by Lombok's @Getter for the field recipeBook

public ArrayList<Double> getRotation()

Returns the rotation value.

Returns
ArrayList<Double>

Generated by Lombok's @Getter for the field rotation

public Integer getScore()

Returns the score value.

Returns
Integer

Generated by Lombok's @Getter for the field score

public Boolean getSeenCredits()

Returns the seenCredits value.

Returns
Boolean

Generated by Lombok's @Getter for the field seenCredits

public Integer getSelectedItemSlot()

Returns the selectedItemSlot value.

Returns
Integer

Generated by Lombok's @Getter for the field selectedItemSlot

public Short getSleepTimer()

Returns the sleepTimer value.

Returns
Short

Generated by Lombok's @Getter for the field sleepTimer

public Boolean getSpawnExtraParticlesOnFall()

Returns the spawnExtraParticlesOnFall value.

Returns
Boolean

Generated by Lombok's @Getter for the field spawnExtraParticlesOnFall

public Stats getStatistics()

Returns the statistics value.

Returns
Stats

Generated by Lombok's @Getter for the field statistics

public ArrayList<Integer> getUUID()

Returns the UUID value.

Returns
ArrayList<Integer>

Generated by Lombok's @Getter for the field UUID

public WardenSpawnTracker getWardenSpawnTracker()

Returns the wardenSpawnTracker value.

Returns
WardenSpawnTracker

Generated by Lombok's @Getter for the field wardenSpawnTracker

public Integer getXPLevel()

Returns the XPLevel value.

Returns
Integer

Generated by Lombok's @Getter for the field XPLevel

public Integer getXPSeed()

Returns the XPSeed value.

Returns
Integer

Generated by Lombok's @Getter for the field XPSeed

public Integer getXPTotal()

Returns the XPTotal value.

Returns
Integer

Generated by Lombok's @Getter for the field XPTotal

public Float getXpP()

Returns the XpP value.

Returns
Float

Generated by Lombok's @Getter for the field XpP

public void setAbilities(Abilities abilities)

Sets the abilities value.

Parameters
abilitiesAbilities

Generated by Lombok's @Setter for the field abilities

public void setAbsorptionAmount(Float absorptionAmount)

Sets the absorptionAmount value.

Parameters
absorptionAmountFloat

Generated by Lombok's @Setter for the field absorptionAmount

public void setAdvancements(Advancements advancements)

Sets the advancements value.

Parameters
advancementsAdvancements

Generated by Lombok's @Setter for the field advancements

public void setAir(Short air)

Sets the air value.

Parameters
airShort

Generated by Lombok's @Setter for the field air

public void setAttributes(Attributes attributes)

Sets the attributes value.

Parameters
attributesAttributes

Generated by Lombok's @Setter for the field attributes

public void setCurrentImpulseContextResetGraceTime(Integer currentImpulseContextResetGraceTime)

Sets the currentImpulseContextResetGraceTime value.

Parameters
currentImpulseContextResetGraceTimeInteger

Generated by Lombok's @Setter for the field currentImpulseContextResetGraceTime

public void setDataVersion(Integer dataVersion)

Sets the dataVersion value.

Parameters
dataVersionInteger

Generated by Lombok's @Setter for the field dataVersion

public void setDeathTime(Short deathTime)

Sets the deathTime value.

Parameters
deathTimeShort

Generated by Lombok's @Setter for the field deathTime

public void setDimension(String dimension)

Sets the dimension value.

Parameters
dimensionString

Generated by Lombok's @Setter for the field dimension

public void setFallDistance(Double fallDistance)

Sets the fallDistance value.

Parameters
fallDistanceDouble

Generated by Lombok's @Setter for the field fallDistance

public void setFallFlying(Boolean fallFlying)

Sets the fallFlying value.

Parameters
fallFlyingBoolean

Generated by Lombok's @Setter for the field fallFlying

public void setFire(Short fire)

Sets the fire value.

Parameters
fireShort

Generated by Lombok's @Setter for the field fire

public void setFoodExhaustionLevel(Float foodExhaustionLevel)

Sets the foodExhaustionLevel value.

Parameters
foodExhaustionLevelFloat

Generated by Lombok's @Setter for the field foodExhaustionLevel

public void setFoodLevel(Integer foodLevel)

Sets the foodLevel value.

Parameters
foodLevelInteger

Generated by Lombok's @Setter for the field foodLevel

public void setFoodSaturationLevel(Float foodSaturationLevel)

Sets the foodSaturationLevel value.

Parameters
foodSaturationLevelFloat

Generated by Lombok's @Setter for the field foodSaturationLevel

public void setFoodTickTimer(Integer foodTickTimer)

Sets the foodTickTimer value.

Parameters
foodTickTimerInteger

Generated by Lombok's @Setter for the field foodTickTimer

public void setHealth(Float health)

Sets the health value.

Parameters
healthFloat

Generated by Lombok's @Setter for the field health

public void setHurtByTimestamp(Integer hurtByTimestamp)

Sets the hurtByTimestamp value.

Parameters
hurtByTimestampInteger

Generated by Lombok's @Setter for the field hurtByTimestamp

public void setHurtTime(Short hurtTime)

Sets the hurtTime value.

Parameters
hurtTimeShort

Generated by Lombok's @Setter for the field hurtTime

public void setInventory(Inventory inventory)

Sets the inventory value.

Parameters
inventoryInventory

Generated by Lombok's @Setter for the field inventory

public void setInvulnerable(Boolean invulnerable)

Sets the invulnerable value.

Parameters
invulnerableBoolean

Generated by Lombok's @Setter for the field invulnerable

public void setMotion(ArrayList<Double> motion)

Sets the motion value.

Parameters
motionArrayList<Double>

Generated by Lombok's @Setter for the field motion

public void setPlayerGameType(Integer playerGameType)

Sets the playerGameType value.

Parameters
playerGameTypeInteger

Generated by Lombok's @Setter for the field playerGameType

public void setPortalCooldown(Integer portalCooldown)

Sets the portalCooldown value.

Parameters
portalCooldownInteger

Generated by Lombok's @Setter for the field portalCooldown

public void setPosition(ArrayList<Double> position)

Sets the position value.

Parameters
positionArrayList<Double>

Generated by Lombok's @Setter for the field position

public void setRecipeBook(RecipeBook recipeBook)

Sets the recipeBook value.

Parameters
recipeBookRecipeBook

Generated by Lombok's @Setter for the field recipeBook

public void setRotation(ArrayList<Double> rotation)

Sets the rotation value.

Parameters
rotationArrayList<Double>

Generated by Lombok's @Setter for the field rotation

public void setScore(Integer score)

Sets the score value.

Parameters
scoreInteger

Generated by Lombok's @Setter for the field score

public void setSeenCredits(Boolean seenCredits)

Sets the seenCredits value.

Parameters
seenCreditsBoolean

Generated by Lombok's @Setter for the field seenCredits

public void setSelectedItemSlot(Integer selectedItemSlot)

Sets the selectedItemSlot value.

Parameters
selectedItemSlotInteger

Generated by Lombok's @Setter for the field selectedItemSlot

public void setSleepTimer(Short sleepTimer)

Sets the sleepTimer value.

Parameters
sleepTimerShort

Generated by Lombok's @Setter for the field sleepTimer

public void setSpawnExtraParticlesOnFall(Boolean spawnExtraParticlesOnFall)

Sets the spawnExtraParticlesOnFall value.

Parameters
spawnExtraParticlesOnFallBoolean

Generated by Lombok's @Setter for the field spawnExtraParticlesOnFall

public void setStatistics(Stats statistics)

Sets the statistics value.

Parameters
statisticsStats

Generated by Lombok's @Setter for the field statistics

public void setUUID(ArrayList<Integer> UUID)

Sets the UUID value.

Parameters
UUIDArrayList<Integer>

Generated by Lombok's @Setter for the field UUID

public void setWardenSpawnTracker(WardenSpawnTracker wardenSpawnTracker)

Sets the wardenSpawnTracker value.

Parameters
wardenSpawnTrackerWardenSpawnTracker

Generated by Lombok's @Setter for the field wardenSpawnTracker

public void setXPLevel(Integer XPLevel)

Sets the XPLevel value.

Parameters
XPLevelInteger

Generated by Lombok's @Setter for the field XPLevel

public void setXPSeed(Integer XPSeed)

Sets the XPSeed value.

Parameters
XPSeedInteger

Generated by Lombok's @Setter for the field XPSeed

public void setXPTotal(Integer XPTotal)

Sets the XPTotal value.

Parameters
XPTotalInteger

Generated by Lombok's @Setter for the field XPTotal

public void setXpP(Float XpP)

Sets the XpP value.

Parameters
XpPFloat

Generated by Lombok's @Setter for the field XpP

public NbtCompound toNbt()