net.minecraft.entity.living.player

public abstract class PlayerEntity

extends LivingEntity

All mapped superinterfaces:

CommandSource

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

Field summary

Modifier and TypeField
public PlayerInventory
bi
field_3999
inventory
inventory
private EnderChestInventory
a
field_3971
enderchest
theInventoryEnderChest
public InventoryMenu
bj
field_4000
playerMenu
inventoryContainer
public InventoryMenu
bk
field_3972
menu
openContainer
protected HungerManager
bl
field_3973
hungerManager
foodStats
protected int
bm
field_3974
pressedJumpTwiceTimer
flyToggleTimer
public float
bn
field_3977
lastBob
prevCameraYaw
public float
bo
field_3978
bob
cameraYaw
public int
bp
field_3984
xpCooldown
xpCooldown
public double
bq
field_3985
lastCapeX
prevChasingPosX
public double
br
field_3986
lastCapeY
prevChasingPosY
public double
bs
field_3987
lastCapeZ
prevChasingPosZ
public double
bt
field_3988
capeX
chasingPosX
public double
bu
field_3989
capeY
chasingPosY
public double
bv
field_3990
capeZ
chasingPosZ
protected boolean
bw
field_3991
sleeping
sleeping
public BlockPos
bx
field_3992
sleepingPos
playerLocation
private int
b
field_3980
sleepingTime
sleepTimer
public float
by
field_3993
sleepingCameraOffsetX
renderOffsetX
public float
bz
field_3994
sleepingCameraOffsetZ
renderOffsetZ
private BlockPos
c
field_4001
spawnPoint
spawnChunk
private boolean
d
field_5398
respawnForced
spawnForced
private BlockPos
e
field_4011
minecartTravelStartPos
startMinecartRidingCoordinate
public PlayerAbilities
bA
field_3998
abilities
capabilities
public int
bB
field_4002
xpLevel
experienceLevel
public int
bC
field_4003
xp
experienceTotal
public float
bD
field_4004
xpProgress
experience
private int
f
field_12123
enchantmentTableSeed
xpSeed
private ItemStack
g
field_4012
itemInUse
itemInUse
private int
h
field_4013
itemUseTimer
itemInUseCount
protected float
bE
field_4005
speed
speedOnGround
protected float
bF
field_4006
flyingSpeed
speedInAir
private int
i
field_5399
lastXpSoundTime
lastXPSound
private final GameProfile
bH
field_9132
profile
gameProfile
private boolean
bI
field_12122
reducedDebugInfo
hasReducedDebug
public FishingBobberEntity
bG
field_4007
fishingBobber
fishEntity
public float
bZ
field_4009
sleepingCameraOffsetY
renderOffsetY

Constructor summary

ModifierConstructor
public (World world, GameProfile profile)

Method summary

Modifier and TypeMethod
protected void
aX()
method_6129()
initAttributes()
applyEntityAttributes()
protected void
h()
method_2484()
registerSyncedData()
entityInit()
public boolean
bS()
method_3193()
hasItemInUse()
isUsingItem()
public void
bU()
method_3195()
stopUsingItem()
stopUsingItem()
public void
bV()
method_3196()
clearItemInUse()
clearItemInUse()
public boolean
bW()
method_2611()
isSwordBlocking()
isBlocking()
public void
t_()
method_2558()
tick()
onUpdate()
public int
L()
method_4455()
getMaxNetherPortalTime()
getMaxInPortalTime()
protected String
P()
method_8360()
getSwimSound()
getSwimSound()
protected String
aa()
method_8361()
getSplashSound()
getSplashSound()
public int
aq()
method_4445()
getPortalCooldown()
getPortalCooldown()
public void
a(String arg0, float arg1, float arg2)
method_4441(String arg0, float arg1, float arg2)
playSound(String arg0, float arg1, float arg2)
playSound(String arg0, float arg1, float arg2)
protected void
b(zx arg0, int arg1)
method_3202(class_1071 arg0, int arg1)
onConsumeItem(ItemStack item, int particleCount)
updateItemUse(ItemStack itemStackIn, int arg1)
protected void
s()
method_3217()
finishUsingItem()
onItemUseFinish()
protected boolean
bD()
method_2610()
isDead()
isMovementBlocked()
protected void
n()
method_3208()
closeMenu()
closeScreen()
public void
ak()
method_2478()
rideTick()
updateRidden()
protected void
bK()
method_2635()
serverTickAi()
updateEntityActionState()
public void
m()
method_2651()
mobTick()
onLivingUpdate()
private void
d(pk arg0)
method_3218(class_864 arg0)
onEntityCollision(Entity entity)
collideWithPlayer(Entity arg0)
public int
bX()
method_3177()
getScore()
getScore()
public void
r(int arg0)
method_4581(int arg0)
setScore(int score)
setScore(int arg0)
public void
s(int arg0)
method_4582(int arg0)
addToScore(int amount)
addScore(int arg0)
public void
a(ow arg0)
method_2580(class_856 arg0)
die(DamageSource arg0)
onDeath(DamageSource arg0)
protected String
bo()
method_2604()
getHurtSound()
getHurtSound()
protected String
bp()
method_2605()
getDeathSound()
getDeathSound()
public void
b(pk arg0, int arg1)
method_2536(class_864 arg0, int arg1)
takeKillScore(Entity arg0, int arg1)
addToPlayerScore(Entity arg0, int arg1)
private Collection<ScoreboardObjective>
e(pk arg0)
method_11247(class_864 arg0)
handleTeamKill(Entity entity)
func_175137_e(Entity arg0)
public ItemEntity
a(boolean arg0)
method_4580(boolean arg0)
dropItem(boolean whole)
dropOneItem(boolean dropAll)
public ItemEntity
a(zx arg0, boolean arg1)
method_3176(class_1071 arg0, boolean arg1)
dropItem(ItemStack item, boolean dead)
dropPlayerItemWithRandomChoice(ItemStack itemStackIn, boolean unused)
public ItemEntity
a(zx 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 void
a(uz arg0)
method_3164(class_964 arg0)
spawnItem(ItemEntity item)
joinEntityItemWithWorld(EntityItem itemIn)
public float
a(afh arg0)
method_3153(class_197 arg0)
getMiningSpeed(Block block)
getToolDigEfficiency(Block arg0)
public boolean
b(afh arg0)
method_3174(class_197 arg0)
canMineBlock(Block block)
canHarvestBlock(Block blockToHarvest)
public void
a(dn arg0)
method_2498(class_322 arg0)
readCustomNbt(NbtCompound arg0)
readEntityFromNBT(NBTTagCompound arg0)
public void
b(dn arg0)
method_2528(class_322 arg0)
writeCustomNbt(NbtCompound arg0)
writeEntityToNBT(NBTTagCompound arg0)
public boolean
a(ow arg0, float arg1)
method_2499(class_856 arg0, float arg1)
takeDamage(DamageSource arg0, float arg1)
attackEntityFrom(DamageSource arg0, float arg1)
public boolean
a(wn 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)
public int
br()
method_2601()
getArmorProtection()
getTotalArmorValue()
public float
bY()
method_4575()
getArmorEquippedRatio()
getArmorVisibility()
protected void
d(ow arg0, float arg1)
method_6138(class_856 arg0, float arg1)
applyDamage(DamageSource arg0, float arg1)
damageEntity(DamageSource arg0, float arg1)
public void
a(aln arg0)
method_11234(class_224 arg0)
openSignEditor(SignBlockEntity sign)
openEditSign(TileEntitySign signTile)
public void
a(adc arg0)
method_8426(class_1740 arg0)
openCommandBlockMenu(CommandExecutor commandBlock)
openEditCommandBlock(CommandBlockLogic cmdBlockLogic)
public void
a(acy arg0)
method_3168(class_1143 arg0)
openTraderMenu(Trader trader)
displayVillagerTradeGui(IMerchant villager)
public void
a(og arg0)
method_3160(class_849 arg0)
openChestMenu(Inventory inventory)
displayGUIChest(IInventory chestInventory)
public void
a(tp arg0, og arg1)
method_6317(class_1712 arg0, class_849 arg1)
openHorseMenu(HorseBaseEntity horse, Inventory inventory)
displayGUIHorse(EntityHorse horse, IInventory horseInventory)
public void
a(ol arg0)
method_11239(class_2608 arg0)
openMenu(MenuProvider menuProvider)
displayGui(IInteractionObject guiOwner)
public void
a(zx arg0)
method_3201(class_1071 arg0)
openEditBookScreen(ItemStack book)
displayGUIBook(ItemStack bookStack)
public boolean
u(pk arg0)
method_3215(class_864 arg0)
interact(Entity target)
interactWith(Entity targetEntity)
public ItemStack
bZ()
method_3179()
getItemInHand()
getCurrentEquippedItem()
public void
ca()
method_3180()
clearItemInHand()
destroyCurrentEquippedItem()
public double
am()
method_2480()
getRideHeight()
getYOffset()
public void
f(pk arg0)
method_3216(class_864 arg0)
attack(Entity target)
attackTargetEntityWithCurrentItem(Entity targetEntity)
public void
b(pk arg0)
method_3175(class_864 arg0)
addCritParticles(Entity entity)
onCriticalHit(Entity entityHit)
public void
c(pk arg0)
method_3200(class_864 arg0)
addEnchantedCritParticles(Entity entity)
onEnchantmentCritical(Entity entityHit)
public void
J()
method_2563()
remove()
setDead()
public boolean
aj()
method_2477()
isInWall()
isEntityInsideOpaqueBlock()
public GameProfile
cd()
method_8429()
getGameProfile()
getGameProfile()
public PlayerEntity$SleepAllowedStatus
a(cj arg0)
method_11235(class_2552 arg0)
trySleep(BlockPos pos)
trySleep(BlockPos bedLocation)
private void
a(cq arg0)
method_11237(class_1354 arg0)
setSleepingCameraOffset(Direction facing)
func_175139_a(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
p()
method_3213()
checkSleepingPosition()
isInBed()
public static BlockPos
a(adm arg0, cj 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
bJ()
method_2641()
isSleeping()
isPlayerSleeping()
public boolean
cf()
method_3184()
isSleepingLongEnough()
isPlayerFullyAsleep()
public void
b(eu arg0)
method_8428(class_1982 arg0)
addMessage(Text message)
addChatComponentMessage(IChatComponent chatComponent)
public BlockPos
ch()
method_3186()
getSpawnPoint()
getBedLocation()
public boolean
ci()
method_4576()
isRespawnForced()
isSpawnForced()
public void
a(cj arg0, boolean arg1)
method_4573(class_2552 arg0, boolean arg1)
setSpawnPoint(BlockPos pos, boolean respawnForced)
setSpawnPoint(BlockPos pos, boolean forced)
public void
b(mw arg0)
method_3158(class_819 arg0)
incrementStat(Stat stat)
triggerAchievement(StatBase achievementIn)
public void
a(mw arg0, int arg1)
method_3159(class_819 arg0, int arg1)
incrementStat(Stat stat, int amount)
addStat(StatBase stat, int amount)
public void
a(mw arg0)
method_11238(class_819 arg0)
clearStat(Stat stat)
func_175145_a(StatBase arg0)
public void
bF()
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
bI()
method_6133()
getSpeed()
getAIMoveSpeed()
public void
k(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
l(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
X()
method_3203()
doSplashEffect()
resetHeight()
protected String
n(int arg0)
method_8373(int arg0)
getFallSound(int arg0)
getFallSoundString(int arg0)
public void
a(pr arg0)
method_6098(class_1699 arg0)
onKill(LivingEntity arg0)
onKillEntity(EntityLivingBase arg0)
public void
aA()
method_2517()
onCobwebCollision()
setInWeb()
public ItemStack
q(int arg0)
method_4485(int arg0)
getArmor(int slot)
getCurrentArmor(int arg0)
public void
u(int arg0)
method_3220(int arg0)
increaseXp(int levels)
addExperience(int amount)
public int
cj()
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
ck()
method_3187()
getNextLevelExperience()
xpBarCap()
public void
a(float arg0)
method_3210(float arg0)
addFatigue(float amount)
addExhaustion(float arg0)
public HungerManager
cl()
method_3188()
getHungerManager()
getFoodStats()
public boolean
j(boolean arg0)
method_3205(boolean arg0)
canEat(boolean ignoreHunger)
canEat(boolean ignoreHunger)
public boolean
cm()
method_3189()
needsHealing()
shouldHeal()
public void
a(zx arg0, int arg1)
method_3166(class_1071 arg0, int arg1)
setItemInUse(ItemStack item, int maxUseTime)
setItemInUse(ItemStack stack, int duration)
public boolean
cn()
method_11245()
canModifyWorld()
isAllowEdit()
public boolean
a(cj arg0, cq arg1, zx arg2)
method_11236(class_2552 arg0, class_1354 arg1, class_1071 arg2)
canUseItemOn(BlockPos pos, Direction face, ItemStack itemInHand)
canPlayerEdit(BlockPos arg0, EnumFacing arg1, ItemStack arg2)
protected int
b(wn arg0)
method_2585(class_988 arg0)
getXpDrop(PlayerEntity arg0)
getExperiencePoints(EntityPlayer arg0)
protected boolean
bb()
method_2597()
shouldDropXp()
isPlayer()
public void
a(wn arg0, boolean arg1)
method_3165(class_988 arg0, boolean arg1)
copyFrom(PlayerEntity player, boolean comesFromTheEnd)
clonePlayer(EntityPlayer oldPlayer, boolean respawnFromEnd)
protected boolean
s_()
method_2549()
makesSteps()
canTriggerWalking()
public void
t()
method_3219()
syncAbilities()
sendPlayerAbilities()
public void
a(adp$a arg0)
method_3170(class_1156$class_1157 arg0)
setGameMode(WorldSettings$GameMode gameMode)
setGameType(WorldSettings$GameType gameType)
public String
e_()
method_2518()
getName()
getName()
public EnderChestInventory
co()
method_3190()
getEnderChestInventory()
getInventoryEnderChest()
public ItemStack
p(int arg0)
method_4484(int arg0)
getEquipment(int arg0)
getEquipmentInSlot(int arg0)
public ItemStack
bA()
method_2640()
getDisplayItemInHand()
getHeldItem()
public void
c(int arg0, zx arg1)
method_2527(int arg0, class_1071 arg1)
setEquipment(int arg0, ItemStack arg1)
setCurrentItemOrArmor(int arg0, ItemStack arg1)
public abstract boolean
v()
method_11249()
isSpectator()
isSpectator()
public ItemStack[]
as()
method_2531()
getEquipment()
getInventory()
public boolean
aL()
method_5380()
hasLiquidCollision()
isPushedByWater()
public Scoreboard
cp()
method_5445()
getScoreboard()
getWorldScoreboard()
public AbstractTeam
bO()
method_6135()
getScoreboardTeam()
getTeam()
public Text
f_()
method_6344()
getDisplayName()
getDisplayName()
public float
aS()
method_2544()
getEyeHeight()
getEyeHeight()
public void
m(float arg0)
method_6153(float arg0)
setAbsorption(float arg0)
setAbsorptionAmount(float arg0)
public float
bN()
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
b(String arg0)
method_11242(String arg0)
getUuidForOffline(String name)
getOfflineUUID(String username)
public boolean
a(on arg0)
method_11240(class_2609 arg0)
canUnlockInventory(InventoryLock lock)
canOpen(LockCode code)
public boolean
u_()
method_10789()
sendCommandSuccessToOps()
sendCommandFeedback()
public boolean
d(int arg0, zx arg1)
method_10956(int arg0, class_1071 arg1)
replaceItem(int arg0, ItemStack arg1)
replaceItemInInventory(int arg0, ItemStack arg1)
public ItemStack
bQ()
method_3191()
getItemInUse()
getItemInUse()
public int
bR()
method_3192()
getItemUseTimer()
getItemInUseCount()
public int
bT()
method_3194()
getRemainingItemUseDuration()
getItemInUseDuration()
public void
a(byte arg0)
method_2485(byte arg0)
doEvent(byte arg0)
handleStatusUpdate(byte arg0)
public void
I()
method_2562()
resetPos()
preparePlayerToSpawn()
public void
cb()
method_3181()
respawn()
respawnPlayer()
public boolean
cc()
method_11243()
isLocal()
isUser()
public float
ce()
method_3183()
getSleepingCameraAngle()
getBedOrientationInDegrees()
public int
cg()
method_3185()
getSleepingTime()
getSleepTimer()
public boolean
aO()
method_5394()
shouldShowNameTag()
getAlwaysRenderNameTagForRender()
public boolean
f(wn arg0)
method_5383(class_988 arg0)
isInvisibleTo(PlayerEntity arg0)
isInvisibleToPlayer(EntityPlayer arg0)
public boolean
a(wo arg0)
method_11241(class_2670 arg0)
isModelPartVisible(PlayerModelPart part)
isWearing(EnumPlayerModelParts arg0)
public boolean
cq()
method_11246()
hasReducedDebugInfo()
hasReducedDebug()
public void
k(boolean arg0)
method_11248(boolean arg0)
setReducedDebugInfo(boolean reducedDebugInfo)
setReducedDebug(boolean reducedDebug)