net.minecraft.entity.living.player

public abstract class PlayerEntity

extends LivingEntity

All mapped superinterfaces:

CommandSource

zj
net.minecraft.class_988
net.minecraft.entity.living.player.PlayerEntity
net.minecraft.entity.player.EntityPlayer

Field summary

Modifier and TypeField
private static final DataAttribute<Float>
a
field_14792
ABSORPTION_AMOUNT
ABSORPTION
private static final DataAttribute<Integer>
b
field_14793
SCORE
PLAYER_SCORE
protected static final DataAttribute<Byte>
bq
field_14796
MODEL_PARTS
PLAYER_MODEL_FLAG
protected static final DataAttribute<Byte>
br
field_14797
MAIN_ARM
MAIN_HAND
public PlayerInventory
bs
field_3999
inventory
inventory
private EnderChestInventory
c
field_3971
enderchest
theInventoryEnderChest
public InventoryMenu
bt
field_4000
playerMenu
inventoryContainer
public InventoryMenu
bu
field_3972
menu
openContainer
protected HungerManager
bv
field_3973
hungerManager
foodStats
protected int
bw
field_3974
pressedJumpTwiceTimer
flyToggleTimer
public float
bx
field_3977
lastBob
prevCameraYaw
public float
by
field_3978
bob
cameraYaw
public int
bz
field_3984
xpCooldown
xpCooldown
public double
bA
field_3985
lastCapeX
prevChasingPosX
public double
bB
field_3986
lastCapeY
prevChasingPosY
public double
bC
field_3987
lastCapeZ
prevChasingPosZ
public double
bD
field_3988
capeX
chasingPosX
public double
bE
field_3989
capeY
chasingPosY
public double
bF
field_3990
capeZ
chasingPosZ
protected boolean
bG
field_3991
sleeping
sleeping
public BlockPos
bH
field_3992
sleepingPos
playerLocation
private int
d
field_3980
sleepingTime
sleepTimer
public float
bI
field_3993
sleepingCameraOffsetX
renderOffsetX
public float
bJ
field_3994
sleepingCameraOffsetZ
renderOffsetZ
private BlockPos
e
field_4001
spawnPoint
spawnChunk
private boolean
f
field_5398
respawnForced
spawnForced
private BlockPos
g
field_4011
minecartTravelStartPos
startMinecartRidingCoordinate
public PlayerAbilities
bK
field_3998
abilities
capabilities
public int
bL
field_4002
xpLevel
experienceLevel
public int
bM
field_4003
xp
experienceTotal
public float
bN
field_4004
xpProgress
experience
private int
h
field_12123
enchantmentTableSeed
xpSeed
protected float
bO
field_4005
speed
speedOnGround
protected float
bP
field_4006
flyingSpeed
speedInAir
private int
bR
field_5399
lastXpSoundTime
lastXPSound
private final GameProfile
bS
field_9132
profile
gameProfile
private boolean
bT
field_12122
reducedDebugInfo
hasReducedDebug
private ItemStack
bU
field_14794
lastItemInMainHand
itemStackMainHand
private final ItemCooldownManager
bV
field_14795
itemCooldownManager
cooldownTracker
public FishingBobberEntity
bQ
field_4007
fishingBobber
fishEntity
public float
cm
field_4009
sleepingCameraOffsetY
renderOffsetY

Constructor summary

ModifierConstructor
public (World world, GameProfile profile)

Method summary

Modifier and TypeMethod
protected ItemCooldownManager
l()
method_13272()
createCooldownManager()
createCooldownTracker()
protected void
bB()
method_6129()
initAttributes()
applyEntityAttributes()
protected void
i()
method_2484()
registerSyncedData()
entityInit()
public void
m()
method_2558()
tick()
onUpdate()
private void
o()
method_13274()
updateCapeAngles()
updateCape()
protected void
cF()
method_13266()
updatePlayerPose()
updateSize()
public int
V()
method_4455()
getMaxNetherPortalTime()
getMaxInPortalTime()
protected SoundEvent
aa()
method_12984()
getSwimSound()
getSwimSound()
protected SoundEvent
ab()
method_12985()
getSplashSound()
getSplashSound()
public int
aC()
method_4445()
getPortalCooldown()
getPortalCooldown()
public void
a(ng arg0, float arg1, float arg2)
method_4441(class_2926 arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
public SoundCategory
bA()
method_12992()
getSoundCategory()
getSoundCategory()
protected boolean
cg()
method_2610()
isDead()
isMovementBlocked()
protected void
q()
method_3208()
closeMenu()
closeScreen()
public void
aw()
method_2478()
rideTick()
updateRidden()
protected void
cn()
method_2635()
serverTickAi()
updateEntityActionState()
public void
n()
method_2651()
mobTick()
onLivingUpdate()
private void
c(rr arg0)
method_3218(class_864 arg0)
onEntityCollision(Entity entity)
collideWithPlayer(Entity entityIn)
public int
cG()
method_3177()
getScore()
getScore()
public void
l(int arg0)
method_4581(int arg0)
setScore(int score)
setScore(int scoreIn)
public void
m(int arg0)
method_4582(int arg0)
addToScore(int amount)
addScore(int scoreIn)
public void
a(rc arg0)
method_2580(class_856 arg0)
die(DamageSource arg0)
onDeath(DamageSource arg0)
protected SoundEvent
bS()
method_13048()
getHurtSound()
getHurtSound()
protected SoundEvent
bT()
method_13049()
getDeathSound()
getDeathSound()
public void
b(rr arg0, int arg1)
method_2536(class_864 arg0, int arg1)
takeKillScore(Entity arg0, int arg1)
addToPlayerScore(Entity arg0, int arg1)
private Collection<ScoreboardObjective>
d(rr arg0)
method_11247(class_864 arg0)
handleTeamKill(Entity entity)
giveTeamKillScores(Entity arg0)
public ItemEntity
a(boolean arg0)
method_4580(boolean arg0)
dropItem(boolean whole)
dropItem(boolean dropAll)
public ItemEntity
a(adq arg0, boolean arg1)
method_3176(class_1071 arg0, boolean arg1)
dropItem(ItemStack item, boolean dead)
dropItem(ItemStack itemStackIn, boolean unused)
public ItemEntity
a(adq arg0, boolean arg1, boolean arg2)
method_3167(class_1071 arg0, boolean arg1, boolean arg2)
dropItem(ItemStack item, boolean velocityFromPlayerDirection, boolean thrownByPlayer)
dropItem(ItemStack droppedItem, boolean dropAround, boolean traceItem)
protected ItemStack
a(yd arg0)
method_3164(class_964 arg0)
spawnItem(ItemEntity item)
dropItemAndGetStack(EntityItem arg0)
public float
a(ard arg0)
method_13261(class_2232 arg0)
getMiningSpeed(BlockState state)
getDigSpeed(IBlockState state)
public boolean
b(ard arg0)
method_13265(class_2232 arg0)
canMineBlock(BlockState state)
canHarvestBlock(IBlockState state)
public void
a(dq arg0)
method_2498(class_322 arg0)
readCustomNbt(NbtCompound arg0)
readEntityFromNBT(NBTTagCompound arg0)
public void
b(dq arg0)
method_2528(class_322 arg0)
writeCustomNbt(NbtCompound arg0)
writeEntityToNBT(NBTTagCompound arg0)
public boolean
a(rc arg0, float arg1)
method_2499(class_856 arg0, float arg1)
takeDamage(DamageSource arg0, float arg1)
attackEntityFrom(DamageSource arg0, float arg1)
public boolean
a(zj arg0)
method_5444(class_988 arg0)
canAttack(PlayerEntity player)
canAttackPlayer(EntityPlayer other)
protected void
j(float arg0)
method_6144(float arg0)
damageArmor(float arg0)
damageArmor(float arg0)
protected void
k(float arg0)
method_13072(float arg0)
damageShield(float arg0)
damageShield(float arg0)
public float
cH()
method_4575()
getArmorEquippedRatio()
getArmorVisibility()
protected void
d(rc arg0, float arg1)
method_6138(class_856 arg0, float arg1)
applyDamage(DamageSource arg0, float arg1)
damageEntity(DamageSource arg0, float arg1)
public void
a(aqn arg0)
method_11234(class_224 arg0)
openSignEditor(SignBlockEntity sign)
openEditSign(TileEntitySign signTile)
public void
a(ahj arg0)
method_8426(class_1740 arg0)
openCommandBlockMinecartMenu(CommandExecutor commandBlock)
displayGuiEditCommandCart(CommandBlockBaseLogic arg0)
public void
a(apy arg0)
method_13260(class_1309 arg0)
openCommandBlockMenu(CommandBlockBlockEntity commandBlock)
displayGuiCommandBlock(TileEntityCommandBlock arg0)
public void
a(ahf arg0)
method_3168(class_1143 arg0)
openTraderMenu(Trader trader)
displayVillagerTradeGui(IMerchant villager)
public void
a(qg arg0)
method_3160(class_849 arg0)
openChestMenu(Inventory inventory)
displayGUIChest(IInventory chestInventory)
public void
a(wk arg0, qg arg1)
method_6317(class_1712 arg0, class_849 arg1)
openHorseMenu(HorseBaseEntity horse, Inventory inventory)
openGuiHorseInventory(EntityHorse horse, IInventory inventoryIn)
public void
a(qn arg0)
method_11239(class_2608 arg0)
openMenu(MenuProvider menuProvider)
displayGui(IInteractionObject guiOwner)
public void
a(adq arg0, qm arg1)
method_3201(class_1071 arg0, class_2961 arg1)
openEditBookScreen(ItemStack book, InteractionHand hand)
openBook(ItemStack stack, EnumHand hand)
public InteractionResult
a(rr arg0, adq arg1, qm arg2)
method_13263(class_864 arg0, class_1071 arg1, class_2961 arg2)
interact(Entity entity, ItemStack item, InteractionHand hand)
interact(Entity entityIn, ItemStack stack, EnumHand hand)
public double
ax()
method_2480()
getRideHeight()
getYOffset()
public void
p()
method_13014()
stopRiding()
dismountRidingEntity()
public void
f(rr arg0)
method_3216(class_864 arg0)
attack(Entity target)
attackTargetEntityWithCurrentItem(Entity targetEntity)
public void
a(rr arg0)
method_3175(class_864 arg0)
addCritParticles(Entity entity)
onCriticalHit(Entity entityHit)
public void
b(rr arg0)
method_3200(class_864 arg0)
addEnchantedCritParticles(Entity entity)
onEnchantmentCritical(Entity entityHit)
public void
cI()
method_13267()
doSweepAttackEffect()
spawnSweepParticles()
public void
T()
method_2563()
remove()
setDead()
public boolean
av()
method_2477()
isInWall()
isEntityInsideOpaqueBlock()
public boolean
cK()
method_11243()
isLocal()
isUser()
public GameProfile
cL()
method_8429()
getGameProfile()
getGameProfile()
public PlayerEntity$SleepAllowedStatus
a(cl arg0)
method_11235(class_2552 arg0)
trySleep(BlockPos pos)
trySleep(BlockPos bedLocation)
private void
a(cs arg0)
method_11237(class_1354 arg0)
setSleepingCameraOffset(Direction facing)
setRenderOffsetForSleep(EnumFacing arg0)
public void
a(boolean arg0, boolean arg1, boolean arg2)
method_3171(boolean arg0, boolean arg1, boolean arg2)
wakeUp(boolean resetSleepTimer, boolean updateAllPlayersSleeping, boolean setSpawnPoint)
wakeUpPlayer(boolean immediately, boolean updateWorldFlag, boolean setSpawn)
private boolean
r()
method_3213()
checkSleepingPosition()
isInBed()
public static BlockPos
a(aht arg0, cl arg1, boolean arg2)
method_11233(class_1150 arg0, class_2552 arg1, boolean arg2)
loadSpawnPoint(World world, BlockPos pos, boolean respawnForced)
getBedSpawnLocation(World worldIn, BlockPos bedLocation, boolean forceSpawn)
public boolean
cm()
method_2641()
isSleeping()
isPlayerSleeping()
public boolean
cN()
method_3184()
isSleepingLongEnough()
isPlayerFullyAsleep()
public void
b(ew arg0)
method_8428(class_1982 arg0)
addMessage(Text message)
addChatComponentMessage(ITextComponent chatComponent)
public BlockPos
cP()
method_3186()
getSpawnPoint()
getBedLocation()
public boolean
cQ()
method_4576()
isRespawnForced()
isSpawnForced()
public void
a(cl arg0, boolean arg1)
method_4573(class_2552 arg0, boolean arg1)
setSpawnPoint(BlockPos pos, boolean respawnForced)
setSpawnPoint(BlockPos pos, boolean forced)
public boolean
a(nk arg0)
method_13262(class_814 arg0)
hasAchievement(AchievementStat achievement)
hasAchievement(Achievement achievementIn)
public void
b(nq arg0)
method_3158(class_819 arg0)
incrementStat(Stat stat)
addStat(StatBase stat)
public void
a(nq arg0, int arg1)
method_3159(class_819 arg0, int arg1)
incrementStat(Stat stat, int amount)
addStat(StatBase stat, int amount)
public void
a(nq arg0)
method_11238(class_819 arg0)
clearStat(Stat stat)
takeStat(StatBase stat)
public void
ci()
method_2612()
jump()
jump()
public void
g(float arg0, float arg1)
method_2657(float arg0, float arg1)
moveRelative(float arg0, float arg1)
moveEntityWithHeading(float arg0, float arg1)
public float
cl()
method_6133()
getSpeed()
getAIMoveSpeed()
public void
l(double arg0, double arg1, double arg2)
method_3209(double arg0, double arg1, double arg2)
tickNonRidingMovementRelatedStats(double x, double y, double z)
addMovementStat(double arg0, double arg1, double arg2)
private void
m(double arg0, double arg1, double arg2)
method_3212(double arg0, double arg1, double arg2)
tickRidingRelatedStats(double x, double y, double z)
addMountedMovementStat(double arg0, double arg1, double arg2)
public void
e(float arg0, float arg1)
method_2490(float arg0, float arg1)
takeFallDamage(float arg0, float arg1)
fall(float arg0, float arg1)
protected void
ak()
method_3203()
doSplashEffect()
resetHeight()
protected SoundEvent
e(int arg0)
method_13070(int arg0)
getFallSound(int arg0)
getFallSound(int arg0)
public void
b(sa arg0)
method_6098(class_1699 arg0)
onKill(LivingEntity arg0)
onKillEntity(EntityLivingBase arg0)
public void
aQ()
method_2517()
onCobwebCollision()
setInWeb()
public void
n(int arg0)
method_3220(int arg0)
increaseXp(int levels)
addExperience(int amount)
public int
cR()
method_11244()
getEnchantingSeed()
getXPSeed()
public void
b(int arg0)
method_3172(int arg0)
applyEnchantmentCosts(int cost)
removeExperienceLevel(int levels)
public void
a(int arg0)
method_3151(int arg0)
addXp(int levels)
addExperienceLevel(int levels)
public int
cS()
method_3187()
getNextLevelExperience()
xpBarCap()
public void
a(float arg0)
method_3210(float arg0)
addFatigue(float amount)
addExhaustion(float exhaustion)
public HungerManager
cT()
method_3188()
getHungerManager()
getFoodStats()
public boolean
l(boolean arg0)
method_3205(boolean arg0)
canEat(boolean ignoreHunger)
canEat(boolean ignoreHunger)
public boolean
cU()
method_3189()
needsHealing()
shouldHeal()
public boolean
cV()
method_11245()
canModifyWorld()
isAllowEdit()
public boolean
a(cl arg0, cs arg1, adq arg2)
method_11236(class_2552 arg0, class_1354 arg1, class_1071 arg2)
canUseItemOn(BlockPos pos, Direction face, ItemStack itemInHand)
canPlayerEdit(BlockPos pos, EnumFacing facing, ItemStack stack)
protected int
b(zj arg0)
method_2585(class_988 arg0)
getXpDrop(PlayerEntity arg0)
getExperiencePoints(EntityPlayer arg0)
protected boolean
bF()
method_2597()
shouldDropXp()
isPlayer()
public void
a(zj arg0, boolean arg1)
method_3165(class_988 arg0, boolean arg1)
copyFrom(PlayerEntity player, boolean comesFromTheEnd)
clonePlayer(EntityPlayer oldPlayer, boolean respawnFromEnd)
protected boolean
ae()
method_2549()
makesSteps()
canTriggerWalking()
public void
w()
method_3219()
syncAbilities()
sendPlayerAbilities()
public void
a(ahw$a arg0)
method_3170(class_1156$class_1157 arg0)
setGameMode(WorldSettings$GameMode gameMode)
setGameType(WorldSettings$GameType gameType)
public String
h_()
method_2518()
getName()
getName()
public EnderChestInventory
cW()
method_3190()
getEnderChestInventory()
getInventoryEnderChest()
public ItemStack
a(rw arg0)
method_13043(class_2968 arg0)
getEquipment(EquipmentSlot arg0)
getItemStackFromSlot(EntityEquipmentSlot arg0)
public void
a(rw arg0, adq arg1)
method_2527(class_2968 arg0, class_1071 arg1)
setEquipment(EquipmentSlot arg0, ItemStack arg1)
setItemStackToSlot(EntityEquipmentSlot arg0, ItemStack arg1)
public Iterable<ItemStack>
aE()
method_12977()
getItemsInHands()
getHeldEquipment()
public Iterable<ItemStack>
aF()
method_12978()
getArmor()
getArmorInventoryList()
public abstract boolean
y()
method_11249()
isSpectator()
isSpectator()
public abstract boolean
l_()
method_13273()
isCreative()
isCreative()
public boolean
be()
method_5380()
hasLiquidCollision()
isPushedByWater()
public Scoreboard
cX()
method_5445()
getScoreboard()
getWorldScoreboard()
public AbstractTeam
aO()
method_6135()
getTeam()
getTeam()
public Text
i_()
method_6344()
getDisplayName()
getDisplayName()
public float
bo()
method_2544()
getEyeHeight()
getEyeHeight()
public void
n(float arg0)
method_6153(float arg0)
setAbsorption(float arg0)
setAbsorptionAmount(float arg0)
public float
cq()
method_6134()
getAbsorption()
getAbsorptionAmount()
public static UUID
a(GameProfile arg0)
method_8427(com.mojang.authlib.GameProfile arg0)
getUuid(com.mojang.authlib.GameProfile profile)
getUUID(com.mojang.authlib.GameProfile profile)
public static UUID
d(String arg0)
method_11242(String arg0)
getUuidForOffline(String name)
getOfflineUUID(String username)
public boolean
a(qr arg0)
method_11240(class_2609 arg0)
canUnlockInventory(InventoryLock lock)
canOpen(LockCode code)
public boolean
z_()
method_10789()
sendCommandSuccessToOps()
sendCommandFeedback()
public boolean
c(int arg0, adq arg1)
method_10956(int arg0, class_1071 arg1)
replaceItem(int arg0, ItemStack arg1)
replaceItemInInventory(int arg0, ItemStack arg1)
public Arm
cs()
method_13060()
getMainArm()
getPrimaryHand()
public void
a(rz arg0)
method_13264(class_2970 arg0)
setMainArm(Arm arm)
setPrimaryHand(EnumHandSide hand)
public float
cZ()
method_13268()
getAttackSpeed()
getCooldownPeriod()
public float
o(float arg0)
method_13275(float arg0)
getAttackTime(float delta)
getCooledAttackStrength(float adjustTicks)
public void
da()
method_13269()
resetLastAttackedTicks()
resetCooldown()
public ItemCooldownManager
db()
method_13270()
getItemCooldownManager()
getCooldownTracker()
public void
i(rr arg0)
method_2552(class_864 arg0)
push(Entity arg0)
applyEntityCollision(Entity arg0)
public float
dc()
method_13271()
getLuck()
getLuck()
public void
a(byte arg0)
method_2485(byte arg0)
doEvent(byte arg0)
handleStatusUpdate(byte arg0)
public void
S()
method_2562()
resetPos()
preparePlayerToSpawn()
public void
cJ()
method_3181()
respawn()
respawnPlayer()
public float
cM()
method_3183()
getSleepingCameraAngle()
getBedOrientationInDegrees()
public int
cO()
method_3185()
getSleepingTime()
getSleepTimer()
public boolean
bi()
method_5394()
shouldShowNameTag()
getAlwaysRenderNameTagForRender()
public boolean
e(zj arg0)
method_5383(class_988 arg0)
isInvisibleTo(PlayerEntity arg0)
isInvisibleToPlayer(EntityPlayer arg0)
public boolean
a(zk arg0)
method_11241(class_2670 arg0)
isModelPartVisible(PlayerModelPart part)
isWearing(EnumPlayerModelParts part)
public boolean
cY()
method_11246()
hasReducedDebugInfo()
hasReducedDebug()
public void
m(boolean arg0)
method_11248(boolean arg0)
setReducedDebugInfo(boolean reducedDebugInfo)
setReducedDebug(boolean reducedDebug)