public abstract class EntityPlayer extends EntityLivingBase implements ICommandSender
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityPlayer.EnumChatVisibility |
static class |
EntityPlayer.EnumStatus |
Entity.EnumEntitySize| Modifier and Type | Field and Description |
|---|---|
float |
cameraYaw |
PlayerCapabilities |
capabilities
The player's capabilities.
|
float |
experience
The current amount of experience the player has within their Experience Bar.
|
int |
experienceLevel
The current experience level the player is on.
|
int |
experienceTotal
The total amount of experience the player has.
|
float |
eyeHeight |
float |
field_71079_bU |
float |
field_71082_cx |
double |
field_71085_bR |
float |
field_71089_bV |
double |
field_71091_bM |
double |
field_71094_bP |
double |
field_71095_bQ |
double |
field_71096_bN |
double |
field_71097_bO |
EntityFishHook |
fishEntity
An instance of a fishing rod's hook.
|
protected int |
flyToggleTimer
Used to tell if the player pressed jump twice.
|
protected FoodStats |
foodStats
The food object of the player, the general hunger logic.
|
InventoryPlayer |
inventory
Inventory of the player
|
Container |
inventoryContainer
The Container for the player's inventory (which opens when they press E)
|
Container |
openContainer
The Container the player has open.
|
static java.lang.String |
PERSISTED_NBT_TAG |
ChunkCoordinates |
playerLocation
the current location of the player
|
float |
prevCameraYaw |
protected boolean |
sleeping
Boolean value indicating weather a player is sleeping or not
|
protected float |
speedInAir |
protected float |
speedOnGround |
int |
xpCooldown
Used by EntityPlayer to prevent too many xp orbs from getting absorbed at once.
|
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityPlayer(World p_i45324_1_,
com.mojang.authlib.GameProfile p_i45324_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChatComponentMessage(IChatComponent p_146105_1_) |
void |
addExhaustion(float p_71020_1_)
increases exhaustion level by supplied amount
|
void |
addExperience(int p_71023_1_)
Add experience points to player.
|
void |
addExperienceLevel(int p_82242_1_)
Add experience levels to this player.
|
void |
addMovementStat(double p_71000_1_,
double p_71000_3_,
double p_71000_5_)
Adds a value to a movement statistic field - like run, walk, swin or climb.
|
void |
addScore(int p_85039_1_)
Add to player's score
|
void |
addStat(StatBase p_71064_1_,
int p_71064_2_)
Adds a value to a statistic field.
|
void |
addToPlayerScore(Entity p_70084_1_,
int p_70084_2_)
Adds a value to the player score.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_)
Called when the entity is attacked.
|
void |
attackTargetEntityWithCurrentItem(Entity p_71059_1_)
Attacks for the player the targeted entity with the currently equipped item.
|
boolean |
canAttackPlayer(EntityPlayer p_96122_1_) |
boolean |
canEat(boolean p_71043_1_) |
boolean |
canHarvestBlock(Block p_146099_1_)
Checks if the player has the ability to harvest a block (checks current inventory item for a tool if necessary)
|
boolean |
canPlayerEdit(int p_82247_1_,
int p_82247_2_,
int p_82247_3_,
int p_82247_4_,
ItemStack p_82247_5_) |
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
prevent them from trampling crops
|
void |
clearItemInUse() |
void |
clonePlayer(EntityPlayer p_71049_1_,
boolean p_71049_2_)
Copies the values from the given player into this player if boolean par2 is true.
|
void |
closeScreen()
sets current screen to null (used on escape buttons of GUIs); sets current crafting inventory back to the 2x2
square
|
protected void |
damageArmor(float p_70675_1_) |
protected void |
damageEntity(DamageSource p_70665_1_,
float p_70665_2_)
Deals damage to the entity.
|
void |
destroyCurrentEquippedItem()
Destroys the currently equipped item from the player's inventory.
|
void |
displayGUIAnvil(int p_82244_1_,
int p_82244_2_,
int p_82244_3_)
Displays the GUI for interacting with an anvil.
|
void |
displayGUIBook(ItemStack p_71048_1_)
Displays the GUI for interacting with a book.
|
void |
displayGUIChest(IInventory p_71007_1_)
Displays the GUI for interacting with a chest inventory.
|
void |
displayGUIEnchantment(int p_71002_1_,
int p_71002_2_,
int p_71002_3_,
java.lang.String p_71002_4_) |
void |
displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_) |
void |
displayGUIHorse(EntityHorse p_110298_1_,
IInventory p_110298_2_) |
void |
displayGUIMerchant(IMerchant p_71030_1_,
java.lang.String p_71030_2_) |
void |
displayGUIWorkbench(int p_71058_1_,
int p_71058_2_,
int p_71058_3_)
Displays the crafting GUI for a workbench.
|
EntityItem |
dropOneItem(boolean p_71040_1_)
Called when player presses the drop item key
|
EntityItem |
dropPlayerItemWithRandomChoice(ItemStack p_71019_1_,
boolean p_71019_2_)
Args: itemstack, flag
|
protected void |
entityInit() |
protected void |
fall(float p_70069_1_)
Called when the mob is falling.
|
IChatComponent |
func_145748_c_() |
protected java.lang.String |
func_146067_o(int p_146067_1_) |
void |
func_146093_a(TileEntityHopper p_146093_1_) |
static java.util.UUID |
func_146094_a(com.mojang.authlib.GameProfile p_146094_0_) |
void |
func_146095_a(CommandBlockLogic p_146095_1_) |
EntityItem |
func_146097_a(ItemStack p_146097_1_,
boolean p_146097_2_,
boolean p_146097_3_) |
void |
func_146098_a(TileEntityBrewingStand p_146098_1_) |
void |
func_146100_a(TileEntity p_146100_1_) |
void |
func_146101_a(TileEntityFurnace p_146101_1_) |
void |
func_146102_a(TileEntityDispenser p_146102_1_) |
void |
func_146104_a(TileEntityBeacon p_146104_1_) |
float |
getAbsorptionAmount() |
float |
getAIMoveSpeed()
the movespeed used for the new AI system
|
boolean |
getAlwaysRenderNameTagForRender() |
float |
getArmorVisibility()
When searching for vulnerable players, if a player is invisible, the return value of this is the chance of seeing
them anyway.
|
ChunkCoordinates |
getBedLocation()
Deprecated.
|
ChunkCoordinates |
getBedLocation(int dimension)
A dimension aware version of getBedLocation.
|
float |
getBedOrientationInDegrees()
Returns the orientation of the bed in degrees.
|
float |
getBreakSpeed(Block p_146096_1_,
boolean p_146096_2_,
int meta)
Deprecated.
|
float |
getBreakSpeed(Block p_146096_1_,
boolean p_146096_2_,
int meta,
int x,
int y,
int z) |
java.lang.String |
getCommandSenderName()
Gets the name of this command sender (usually username, but possibly "Rcon")
|
ItemStack |
getCurrentArmor(int p_82169_1_) |
ItemStack |
getCurrentEquippedItem()
Returns the currently being used item by the player.
|
float |
getCurrentPlayerStrVsBlock(Block p_146096_1_,
boolean p_146096_2_)
Deprecated.
|
protected java.lang.String |
getDeathSound()
Returns the sound this mob makes on death.
|
float |
getDefaultEyeHeight()
Returns the default eye height of the player
|
java.lang.String |
getDisplayName()
Get the currently computed display name, cached for efficiency.
|
World |
getEntityWorld() |
ItemStack |
getEquipmentInSlot(int p_71124_1_)
0: Tool in Hand; 1-4: Armor
|
protected int |
getExperiencePoints(EntityPlayer p_70693_1_)
Get the experience points the entity currently has.
|
float |
getEyeHeight() |
FoodStats |
getFoodStats()
Returns the player's FoodStats object.
|
com.mojang.authlib.GameProfile |
getGameProfile()
Returns the GameProfile for this player
|
ItemStack |
getHeldItem()
Returns the item that this EntityLiving is holding, if any.
|
boolean |
getHideCape() |
protected boolean |
getHideCape(int p_82241_1_) |
protected java.lang.String |
getHurtSound()
Returns the sound this mob makes when it is hurt.
|
InventoryEnderChest |
getInventoryEnderChest()
Returns the InventoryEnderChest of this player.
|
IIcon |
getItemIcon(ItemStack p_70620_1_,
int p_70620_2_)
Gets the Icon Index of the item currently held
|
ItemStack |
getItemInUse()
returns the ItemStack containing the itemInUse
|
int |
getItemInUseCount()
Returns the item in use count
|
int |
getItemInUseDuration()
gets the duration for how long the current itemInUse has been in use
|
ItemStack[] |
getLastActiveItems() |
int |
getMaxInPortalTime()
Return the amount of time this entity should stay in a portal before being transported.
|
int |
getPortalCooldown()
Return the amount of cooldown before this entity can use a portal again.
|
Vec3 |
getPosition(float par1)
interpolated position vector
|
int |
getScore() |
int |
getSleepTimer() |
protected java.lang.String |
getSplashSound() |
protected java.lang.String |
getSwimSound() |
Team |
getTeam() |
int |
getTotalArmorValue()
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
|
Scoreboard |
getWorldScoreboard() |
double |
getYOffset()
Returns the Y Offset of this entity.
|
void |
handleHealthUpdate(byte p_70103_1_) |
boolean |
interactWith(Entity p_70998_1_) |
boolean |
isBlocking() |
boolean |
isCurrentToolAdventureModeExempt(int p_82246_1_,
int p_82246_2_,
int p_82246_3_)
Returns true if the given block can be mined with the current tool in adventure mode.
|
boolean |
isEntityInsideOpaqueBlock()
Checks if this entity is inside of an opaque block
|
boolean |
isInvisibleToPlayer(EntityPlayer p_98034_1_)
Only used by renderer in EntityLivingBase subclasses.
|
protected boolean |
isMovementBlocked()
Dead and sleeping entities cannot move
|
protected boolean |
isPlayer()
Only use is to identify if class is an instance of player for experience dropping
|
boolean |
isPlayerFullyAsleep()
Returns whether or not the player is asleep and the screen has fully faded.
|
boolean |
isPlayerSleeping()
Returns whether player is sleeping or not
|
boolean |
isPushedByWater() |
boolean |
isSpawnForced()
Deprecated.
|
boolean |
isSpawnForced(int dimension)
A dimension aware version of isSpawnForced.
|
boolean |
isUsingItem()
Checks if the entity is currently using an item (e.g., bow, food, sword) by holding down the useItemButton
|
void |
joinEntityItemWithWorld(EntityItem p_71012_1_)
Joins the passed in entity item with the world.
|
void |
jump()
Causes this entity to do an upwards motion (jumping).
|
void |
mountEntity(Entity p_70078_1_)
Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
|
void |
moveEntityWithHeading(float p_70612_1_,
float p_70612_2_)
Moves the entity based on the specified heading.
|
void |
onCriticalHit(Entity p_71009_1_)
Called when the player performs a critical hit on the Entity.
|
void |
onDeath(DamageSource p_70645_1_)
Called when the mob's health reaches 0.
|
void |
onEnchantmentCritical(Entity p_71047_1_) |
protected void |
onItemUseFinish()
Used for when item use count runs out, ie: eating completed
|
void |
onKillEntity(EntityLivingBase p_70074_1_)
This method gets called when the entity kills another one.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
openGui(java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z) |
void |
playSound(java.lang.String p_85030_1_,
float p_85030_2_,
float p_85030_3_) |
void |
preparePlayerToSpawn()
Keeps moving the entity up so it isn't colliding with blocks and other requirements for this entity to be spawned
(only actually used on players though its also on Entity)
|
void |
readEntityFromNBT(NBTTagCompound p_70037_1_)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
refreshDisplayName()
Force the displayed name to refresh
|
protected void |
resetHeight()
sets the players height back to normal after doing things like sleeping and dieing
|
void |
respawnPlayer() |
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one).
|
void |
setAbsorptionAmount(float p_110149_1_) |
void |
setCurrentItemOrArmor(int p_70062_1_,
ItemStack p_70062_2_)
Sets the held item, or an armor slot.
|
void |
setDead()
Will get destroyed next tick.
|
void |
setGameType(WorldSettings.GameType p_71033_1_)
Sets the player's game mode and sends it to them.
|
protected void |
setHideCape(int p_82239_1_,
boolean p_82239_2_) |
void |
setInWeb()
Sets the Entity inside a web block.
|
void |
setItemInUse(ItemStack p_71008_1_,
int p_71008_2_)
sets the itemInUse when the use item button is clicked.
|
void |
setScore(int p_85040_1_)
Set player's score
|
void |
setSpawnChunk(ChunkCoordinates p_71063_1_,
boolean p_71063_2_)
Defines a spawn coordinate to player spawn.
|
void |
setSpawnChunk(ChunkCoordinates chunkCoordinates,
boolean forced,
int dimension)
A dimension aware version of setSpawnChunk.
|
boolean |
shouldHeal()
Checks if the player's health is not full and not zero.
|
EntityPlayer.EnumStatus |
sleepInBedAt(int p_71018_1_,
int p_71018_2_,
int p_71018_3_)
puts player to sleep on specified bed if possible
|
void |
stopUsingItem() |
void |
triggerAchievement(StatBase p_71029_1_)
Will trigger the specified trigger.
|
protected void |
updateEntityActionState() |
protected void |
updateItemUse(ItemStack p_71010_1_,
int p_71010_2_)
Plays sounds and makes particles for item in use state
|
void |
updateRidden()
Handles updating while being ridden by an entity
|
static ChunkCoordinates |
verifyRespawnCoordinates(World p_71056_0_,
ChunkCoordinates p_71056_1_,
boolean p_71056_2_)
Ensure that a block enabling respawning exists at the specified coordinates and find an empty space nearby to
spawn.
|
void |
wakeUpPlayer(boolean p_70999_1_,
boolean p_70999_2_,
boolean p_70999_3_)
Wake up the player if they're sleeping.
|
void |
writeEntityToNBT(NBTTagCompound p_70014_1_)
(abstract) Protected helper method to write subclass entity data to NBT.
|
int |
xpBarCap()
This method returns the cap amount of experience that the experience bar can hold.
|
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropRareDrop, func_110142_aN, func_110146_f, func_142015_aE, func_146066_aG, func_152111_bt, func_152112_bu, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, heal, isAIEnabled, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, kill, knockBack, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITasks, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffectsaddEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getFlag, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, getTeleportDirection, getUniqueID, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChatMessage, canCommandSenderUseCommand, getPlayerCoordinatespublic static final java.lang.String PERSISTED_NBT_TAG
public InventoryPlayer inventory
public Container inventoryContainer
public Container openContainer
protected FoodStats foodStats
protected int flyToggleTimer
public float prevCameraYaw
public float cameraYaw
public int xpCooldown
public double field_71091_bM
public double field_71096_bN
public double field_71097_bO
public double field_71094_bP
public double field_71095_bQ
public double field_71085_bR
protected boolean sleeping
public ChunkCoordinates playerLocation
public float field_71079_bU
public float field_71082_cx
public float field_71089_bV
public PlayerCapabilities capabilities
public int experienceLevel
public int experienceTotal
public float experience
protected float speedOnGround
protected float speedInAir
public EntityFishHook fishEntity
public float eyeHeight
public EntityPlayer(World p_i45324_1_, com.mojang.authlib.GameProfile p_i45324_2_)
protected void applyEntityAttributes()
applyEntityAttributes in class EntityLivingBaseprotected void entityInit()
entityInit in class EntityLivingBasepublic ItemStack getItemInUse()
public int getItemInUseCount()
public boolean isUsingItem()
public int getItemInUseDuration()
public void stopUsingItem()
public void clearItemInUse()
public boolean isBlocking()
public void onUpdate()
onUpdate in class EntityLivingBasepublic int getMaxInPortalTime()
getMaxInPortalTime in class Entityprotected java.lang.String getSwimSound()
getSwimSound in class Entityprotected java.lang.String getSplashSound()
getSplashSound in class Entitypublic int getPortalCooldown()
getPortalCooldown in class Entitypublic void playSound(java.lang.String p_85030_1_,
float p_85030_2_,
float p_85030_3_)
protected void updateItemUse(ItemStack p_71010_1_, int p_71010_2_)
protected void onItemUseFinish()
public void handleHealthUpdate(byte p_70103_1_)
handleHealthUpdate in class EntityLivingBaseprotected boolean isMovementBlocked()
isMovementBlocked in class EntityLivingBasepublic void closeScreen()
public void mountEntity(Entity p_70078_1_)
mountEntity in class Entitypublic void updateRidden()
updateRidden in class EntityLivingBasepublic void preparePlayerToSpawn()
preparePlayerToSpawn in class Entityprotected void updateEntityActionState()
updateEntityActionState in class EntityLivingBasepublic void onLivingUpdate()
onLivingUpdate in class EntityLivingBasepublic int getScore()
public void setScore(int p_85040_1_)
public void addScore(int p_85039_1_)
public void onDeath(DamageSource p_70645_1_)
onDeath in class EntityLivingBaseprotected java.lang.String getHurtSound()
getHurtSound in class EntityLivingBaseprotected java.lang.String getDeathSound()
getDeathSound in class EntityLivingBasepublic void addToPlayerScore(Entity p_70084_1_, int p_70084_2_)
addToPlayerScore in class Entitypublic EntityItem dropOneItem(boolean p_71040_1_)
public EntityItem dropPlayerItemWithRandomChoice(ItemStack p_71019_1_, boolean p_71019_2_)
public EntityItem func_146097_a(ItemStack p_146097_1_, boolean p_146097_2_, boolean p_146097_3_)
public void joinEntityItemWithWorld(EntityItem p_71012_1_)
@Deprecated public float getCurrentPlayerStrVsBlock(Block p_146096_1_, boolean p_146096_2_)
@Deprecated public float getBreakSpeed(Block p_146096_1_, boolean p_146096_2_, int meta)
public float getBreakSpeed(Block p_146096_1_, boolean p_146096_2_, int meta, int x, int y, int z)
public boolean canHarvestBlock(Block p_146099_1_)
public void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT in class EntityLivingBasepublic void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT in class EntityLivingBasepublic void displayGUIChest(IInventory p_71007_1_)
public void func_146093_a(TileEntityHopper p_146093_1_)
public void displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_)
public void displayGUIHorse(EntityHorse p_110298_1_, IInventory p_110298_2_)
public void displayGUIEnchantment(int p_71002_1_,
int p_71002_2_,
int p_71002_3_,
java.lang.String p_71002_4_)
public void displayGUIAnvil(int p_82244_1_,
int p_82244_2_,
int p_82244_3_)
public void displayGUIWorkbench(int p_71058_1_,
int p_71058_2_,
int p_71058_3_)
public float getEyeHeight()
getEyeHeight in class EntityLivingBaseprotected void resetHeight()
public boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom in class EntityLivingBasepublic boolean canAttackPlayer(EntityPlayer p_96122_1_)
protected void damageArmor(float p_70675_1_)
damageArmor in class EntityLivingBasepublic int getTotalArmorValue()
getTotalArmorValue in class EntityLivingBasepublic float getArmorVisibility()
protected void damageEntity(DamageSource p_70665_1_, float p_70665_2_)
damageEntity in class EntityLivingBasepublic void func_146101_a(TileEntityFurnace p_146101_1_)
public void func_146102_a(TileEntityDispenser p_146102_1_)
public void func_146100_a(TileEntity p_146100_1_)
public void func_146095_a(CommandBlockLogic p_146095_1_)
public void func_146098_a(TileEntityBrewingStand p_146098_1_)
public void func_146104_a(TileEntityBeacon p_146104_1_)
public void displayGUIMerchant(IMerchant p_71030_1_, java.lang.String p_71030_2_)
public void displayGUIBook(ItemStack p_71048_1_)
public boolean interactWith(Entity p_70998_1_)
public ItemStack getCurrentEquippedItem()
public void destroyCurrentEquippedItem()
public double getYOffset()
getYOffset in class Entitypublic void attackTargetEntityWithCurrentItem(Entity p_71059_1_)
public void onCriticalHit(Entity p_71009_1_)
public void onEnchantmentCritical(Entity p_71047_1_)
public void respawnPlayer()
public boolean isEntityInsideOpaqueBlock()
isEntityInsideOpaqueBlock in class Entitypublic com.mojang.authlib.GameProfile getGameProfile()
public EntityPlayer.EnumStatus sleepInBedAt(int p_71018_1_, int p_71018_2_, int p_71018_3_)
public void wakeUpPlayer(boolean p_70999_1_,
boolean p_70999_2_,
boolean p_70999_3_)
public static ChunkCoordinates verifyRespawnCoordinates(World p_71056_0_, ChunkCoordinates p_71056_1_, boolean p_71056_2_)
public float getBedOrientationInDegrees()
public boolean isPlayerSleeping()
isPlayerSleeping in class EntityLivingBasepublic boolean isPlayerFullyAsleep()
public int getSleepTimer()
protected boolean getHideCape(int p_82241_1_)
protected void setHideCape(int p_82239_1_,
boolean p_82239_2_)
public void addChatComponentMessage(IChatComponent p_146105_1_)
@Deprecated public ChunkCoordinates getBedLocation()
@Deprecated public boolean isSpawnForced()
public void setSpawnChunk(ChunkCoordinates p_71063_1_, boolean p_71063_2_)
public void triggerAchievement(StatBase p_71029_1_)
public void addStat(StatBase p_71064_1_, int p_71064_2_)
public void jump()
jump in class EntityLivingBasepublic void moveEntityWithHeading(float p_70612_1_,
float p_70612_2_)
moveEntityWithHeading in class EntityLivingBasepublic float getAIMoveSpeed()
getAIMoveSpeed in class EntityLivingBasepublic void addMovementStat(double p_71000_1_,
double p_71000_3_,
double p_71000_5_)
protected void fall(float p_70069_1_)
fall in class EntityLivingBaseprotected java.lang.String func_146067_o(int p_146067_1_)
func_146067_o in class EntityLivingBasepublic void onKillEntity(EntityLivingBase p_70074_1_)
onKillEntity in class Entitypublic void setInWeb()
public IIcon getItemIcon(ItemStack p_70620_1_, int p_70620_2_)
getItemIcon in class EntityLivingBasepublic ItemStack getCurrentArmor(int p_82169_1_)
public void addExperience(int p_71023_1_)
public void addExperienceLevel(int p_82242_1_)
public int xpBarCap()
public void addExhaustion(float p_71020_1_)
public FoodStats getFoodStats()
public boolean canEat(boolean p_71043_1_)
public boolean shouldHeal()
public void setItemInUse(ItemStack p_71008_1_, int p_71008_2_)
public boolean isCurrentToolAdventureModeExempt(int p_82246_1_,
int p_82246_2_,
int p_82246_3_)
public boolean canPlayerEdit(int p_82247_1_,
int p_82247_2_,
int p_82247_3_,
int p_82247_4_,
ItemStack p_82247_5_)
protected int getExperiencePoints(EntityPlayer p_70693_1_)
getExperiencePoints in class EntityLivingBaseprotected boolean isPlayer()
isPlayer in class EntityLivingBasepublic boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender in class EntityLivingBasepublic void clonePlayer(EntityPlayer p_71049_1_, boolean p_71049_2_)
protected boolean canTriggerWalking()
canTriggerWalking in class Entitypublic void sendPlayerAbilities()
public void setGameType(WorldSettings.GameType p_71033_1_)
public java.lang.String getCommandSenderName()
getCommandSenderName in interface ICommandSendergetCommandSenderName in class Entitypublic World getEntityWorld()
getEntityWorld in interface ICommandSenderpublic InventoryEnderChest getInventoryEnderChest()
public ItemStack getEquipmentInSlot(int p_71124_1_)
getEquipmentInSlot in class EntityLivingBasepublic ItemStack getHeldItem()
getHeldItem in class EntityLivingBasepublic void setCurrentItemOrArmor(int p_70062_1_,
ItemStack p_70062_2_)
setCurrentItemOrArmor in class EntityLivingBasepublic boolean isInvisibleToPlayer(EntityPlayer p_98034_1_)
isInvisibleToPlayer in class Entitypublic ItemStack[] getLastActiveItems()
getLastActiveItems in class EntityLivingBasepublic boolean getHideCape()
public boolean isPushedByWater()
isPushedByWater in class Entitypublic Scoreboard getWorldScoreboard()
public Team getTeam()
getTeam in class EntityLivingBasepublic IChatComponent func_145748_c_()
func_145748_c_ in interface ICommandSenderfunc_145748_c_ in class Entitypublic void setAbsorptionAmount(float p_110149_1_)
setAbsorptionAmount in class EntityLivingBasepublic float getAbsorptionAmount()
getAbsorptionAmount in class EntityLivingBasepublic static java.util.UUID func_146094_a(com.mojang.authlib.GameProfile p_146094_0_)
public void openGui(java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z)
public Vec3 getPosition(float par1)
getPosition in class EntityLivingBasepublic ChunkCoordinates getBedLocation(int dimension)
dimension - The dimension to get the bed spawn forpublic boolean isSpawnForced(int dimension)
dimension - The dimension to get whether to check for a bed before spawning forpublic void setSpawnChunk(ChunkCoordinates chunkCoordinates, boolean forced, int dimension)
chunkCoordinates - The spawn point to set as the player-specific spawn point for the dimensionforced - Whether or not the respawn code should check for a bed at this location (true means it won't check for a bed)dimension - Which dimension to apply the player-specific respawn point topublic float getDefaultEyeHeight()
public java.lang.String getDisplayName()
public void refreshDisplayName()