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