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, swingProgressInt
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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 par1)
increases exhaustion level by supplied amount
|
void |
addExperience(int par1)
Add experience points to player.
|
void |
addExperienceLevel(int par1)
Add experience levels to this player.
|
void |
addMovementStat(double par1,
double par3,
double par5)
Adds a value to a movement statistic field - like run, walk, swin or climb.
|
void |
addScore(int par1)
Add to player's score
|
void |
addStat(StatBase par1StatBase,
int par2)
Adds a value to a statistic field.
|
void |
addToPlayerScore(Entity par1Entity,
int par2)
Adds a value to the player score.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
void |
attackTargetEntityWithCurrentItem(Entity par1Entity)
Attacks for the player the targeted entity with the currently equipped item.
|
boolean |
canAttackPlayer(EntityPlayer par1EntityPlayer) |
boolean |
canEat(boolean par1) |
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 par1,
int par2,
int par3,
int par4,
ItemStack par5ItemStack) |
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on.
|
void |
clearItemInUse() |
void |
clonePlayer(EntityPlayer par1EntityPlayer,
boolean par2)
Copies the values from the given player into this player if boolean par2 is true.
|
protected 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 par1) |
protected void |
damageEntity(DamageSource par1DamageSource,
float par2)
Deals damage to the entity.
|
void |
destroyCurrentEquippedItem()
Destroys the currently equipped item from the player's inventory.
|
void |
displayGUIAnvil(int par1,
int par2,
int par3)
Displays the GUI for interacting with an anvil.
|
void |
displayGUIBook(ItemStack par1ItemStack)
Displays the GUI for interacting with a book.
|
void |
displayGUIChest(IInventory par1IInventory)
Displays the GUI for interacting with a chest inventory.
|
void |
displayGUIEnchantment(int par1,
int par2,
int par3,
java.lang.String par4Str) |
void |
displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper) |
void |
displayGUIHorse(EntityHorse par1EntityHorse,
IInventory par2IInventory) |
void |
displayGUIMerchant(IMerchant par1IMerchant,
java.lang.String par2Str) |
void |
displayGUIWorkbench(int par1,
int par2,
int par3)
Displays the crafting GUI for a workbench.
|
EntityItem |
dropOneItem(boolean par1)
Called when player presses the drop item key
|
EntityItem |
dropPlayerItemWithRandomChoice(ItemStack par1ItemStack,
boolean par2)
Args: itemstack, flag
|
protected void |
entityInit() |
protected void |
fall(float par1)
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) |
java.lang.String |
getCommandSenderName()
Gets the name of this command sender (usually username, but possibly "Rcon")
|
ItemStack |
getCurrentArmor(int par1) |
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 par1)
0: Tool in Hand; 1-4: Armor
|
protected int |
getExperiencePoints(EntityPlayer par1EntityPlayer)
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 par1) |
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 par1ItemStack,
int par2)
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 par1) |
boolean |
interactWith(Entity par1Entity) |
boolean |
isBlocking() |
boolean |
isCurrentToolAdventureModeExempt(int par1,
int par2,
int par3)
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 par1EntityPlayer)
Only used by renderer in EntityLivingBase subclasses.nDetermines if an entity is visible or not to a specfic
player, if the entity is normally invisible.nFor EntityLivingBase subclasses, returning false when invisible will
render the entity semitransparent.
|
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 par1EntityItem)
Joins the passed in entity item with the world.
|
void |
jump()
Causes this entity to do an upwards motion (jumping).
|
void |
mountEntity(Entity par1Entity)
Called when a player mounts an entity.
|
void |
moveEntityWithHeading(float par1,
float par2)
Moves the entity based on the specified heading.
|
void |
onCriticalHit(Entity par1Entity)
Called when the player performs a critical hit on the Entity.
|
void |
onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0.
|
void |
onEnchantmentCritical(Entity par1Entity) |
protected void |
onItemUseFinish()
Used for when item use count runs out, ie: eating completed
|
void |
onKillEntity(EntityLivingBase par1EntityLivingBase)
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 par1Str,
float par2,
float par3) |
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 par1NBTTagCompound)
(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 par1) |
void |
setCurrentItemOrArmor(int par1,
ItemStack par2ItemStack)
Sets the held item, or an armor slot.
|
void |
setDead()
Will get destroyed next tick.
|
void |
setGameType(WorldSettings.GameType par1EnumGameType)
Sets the player's game mode and sends it to them.
|
protected void |
setHideCape(int par1,
boolean par2) |
void |
setInWeb()
Sets the Entity inside a web block.
|
void |
setItemInUse(ItemStack par1ItemStack,
int par2)
sets the itemInUse when the use item button is clicked.
|
void |
setScore(int par1)
Set player's score
|
void |
setSpawnChunk(ChunkCoordinates par1ChunkCoordinates,
boolean par2)
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 par1,
int par2,
int par3)
puts player to sleep on specified bed if possible
|
void |
stopUsingItem() |
void |
triggerAchievement(StatBase par1StatBase)
Will trigger the specified trigger.
|
protected void |
updateEntityActionState() |
protected void |
updateItemUse(ItemStack par1ItemStack,
int par2)
Plays sounds and makes particles for item in use state
|
void |
updateRidden()
Handles updating while being ridden by an entity
|
static ChunkCoordinates |
verifyRespawnCoordinates(World par0World,
ChunkCoordinates par1ChunkCoordinates,
boolean par2)
Ensure that a block enabling respawning exists at the specified coordinates and find an empty space nearby to
spawn.
|
void |
wakeUpPlayer(boolean par1,
boolean par2,
boolean par3)
Wake up the player if they're sleeping.
|
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(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_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, updatePotionEffects
addEntityCrashInfo, 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, writeToNBTOptional
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChatMessage, canCommandSenderUseCommand, getPlayerCoordinates
public 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 EntityLivingBase
protected void entityInit()
entityInit
in class EntityLivingBase
public 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 EntityLivingBase
public int getMaxInPortalTime()
getMaxInPortalTime
in class Entity
protected java.lang.String getSwimSound()
getSwimSound
in class Entity
protected java.lang.String getSplashSound()
getSplashSound
in class Entity
public int getPortalCooldown()
getPortalCooldown
in class Entity
public void playSound(java.lang.String par1Str, float par2, float par3)
protected void updateItemUse(ItemStack par1ItemStack, int par2)
protected void onItemUseFinish()
public void handleHealthUpdate(byte par1)
handleHealthUpdate
in class EntityLivingBase
protected boolean isMovementBlocked()
isMovementBlocked
in class EntityLivingBase
protected void closeScreen()
public void mountEntity(Entity par1Entity)
mountEntity
in class Entity
public void updateRidden()
updateRidden
in class EntityLivingBase
public void preparePlayerToSpawn()
preparePlayerToSpawn
in class Entity
protected void updateEntityActionState()
updateEntityActionState
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityLivingBase
public int getScore()
public void setScore(int par1)
public void addScore(int par1)
public void onDeath(DamageSource par1DamageSource)
onDeath
in class EntityLivingBase
protected java.lang.String getHurtSound()
getHurtSound
in class EntityLivingBase
protected java.lang.String getDeathSound()
getDeathSound
in class EntityLivingBase
public void addToPlayerScore(Entity par1Entity, int par2)
addToPlayerScore
in class Entity
public EntityItem dropOneItem(boolean par1)
public EntityItem dropPlayerItemWithRandomChoice(ItemStack par1ItemStack, boolean par2)
public EntityItem func_146097_a(ItemStack p_146097_1_, boolean p_146097_2_, boolean p_146097_3_)
public void joinEntityItemWithWorld(EntityItem par1EntityItem)
@Deprecated public float getCurrentPlayerStrVsBlock(Block p_146096_1_, boolean p_146096_2_)
public float getBreakSpeed(Block p_146096_1_, boolean p_146096_2_, int meta)
public boolean canHarvestBlock(Block p_146099_1_)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityLivingBase
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityLivingBase
public void displayGUIChest(IInventory par1IInventory)
public void func_146093_a(TileEntityHopper p_146093_1_)
public void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
public void displayGUIHorse(EntityHorse par1EntityHorse, IInventory par2IInventory)
public void displayGUIEnchantment(int par1, int par2, int par3, java.lang.String par4Str)
public void displayGUIAnvil(int par1, int par2, int par3)
public void displayGUIWorkbench(int par1, int par2, int par3)
public float getEyeHeight()
getEyeHeight
in class EntityLivingBase
protected void resetHeight()
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom
in class EntityLivingBase
public boolean canAttackPlayer(EntityPlayer par1EntityPlayer)
protected void damageArmor(float par1)
damageArmor
in class EntityLivingBase
public int getTotalArmorValue()
getTotalArmorValue
in class EntityLivingBase
public float getArmorVisibility()
protected void damageEntity(DamageSource par1DamageSource, float par2)
damageEntity
in class EntityLivingBase
public 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 par1IMerchant, java.lang.String par2Str)
public void displayGUIBook(ItemStack par1ItemStack)
public boolean interactWith(Entity par1Entity)
public ItemStack getCurrentEquippedItem()
public void destroyCurrentEquippedItem()
public double getYOffset()
getYOffset
in class Entity
public void attackTargetEntityWithCurrentItem(Entity par1Entity)
public void onCriticalHit(Entity par1Entity)
public void onEnchantmentCritical(Entity par1Entity)
public void respawnPlayer()
public boolean isEntityInsideOpaqueBlock()
isEntityInsideOpaqueBlock
in class Entity
public com.mojang.authlib.GameProfile getGameProfile()
public EntityPlayer.EnumStatus sleepInBedAt(int par1, int par2, int par3)
public void wakeUpPlayer(boolean par1, boolean par2, boolean par3)
public static ChunkCoordinates verifyRespawnCoordinates(World par0World, ChunkCoordinates par1ChunkCoordinates, boolean par2)
public float getBedOrientationInDegrees()
public boolean isPlayerSleeping()
isPlayerSleeping
in class EntityLivingBase
public boolean isPlayerFullyAsleep()
public int getSleepTimer()
protected boolean getHideCape(int par1)
protected void setHideCape(int par1, boolean par2)
public void addChatComponentMessage(IChatComponent p_146105_1_)
@Deprecated public ChunkCoordinates getBedLocation()
@Deprecated public boolean isSpawnForced()
public void setSpawnChunk(ChunkCoordinates par1ChunkCoordinates, boolean par2)
public void triggerAchievement(StatBase par1StatBase)
public void addStat(StatBase par1StatBase, int par2)
public void jump()
jump
in class EntityLivingBase
public void moveEntityWithHeading(float par1, float par2)
moveEntityWithHeading
in class EntityLivingBase
public float getAIMoveSpeed()
getAIMoveSpeed
in class EntityLivingBase
public void addMovementStat(double par1, double par3, double par5)
protected void fall(float par1)
fall
in class EntityLivingBase
protected java.lang.String func_146067_o(int p_146067_1_)
func_146067_o
in class EntityLivingBase
public void onKillEntity(EntityLivingBase par1EntityLivingBase)
onKillEntity
in class Entity
public void setInWeb()
public IIcon getItemIcon(ItemStack par1ItemStack, int par2)
getItemIcon
in class EntityLivingBase
public ItemStack getCurrentArmor(int par1)
public void addExperience(int par1)
public void addExperienceLevel(int par1)
public int xpBarCap()
public void addExhaustion(float par1)
public FoodStats getFoodStats()
public boolean canEat(boolean par1)
public boolean shouldHeal()
public void setItemInUse(ItemStack par1ItemStack, int par2)
public boolean isCurrentToolAdventureModeExempt(int par1, int par2, int par3)
public boolean canPlayerEdit(int par1, int par2, int par3, int par4, ItemStack par5ItemStack)
protected int getExperiencePoints(EntityPlayer par1EntityPlayer)
getExperiencePoints
in class EntityLivingBase
protected boolean isPlayer()
isPlayer
in class EntityLivingBase
public boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender
in class EntityLivingBase
public void clonePlayer(EntityPlayer par1EntityPlayer, boolean par2)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
public void sendPlayerAbilities()
public void setGameType(WorldSettings.GameType par1EnumGameType)
public java.lang.String getCommandSenderName()
getCommandSenderName
in interface ICommandSender
getCommandSenderName
in class Entity
public World getEntityWorld()
getEntityWorld
in interface ICommandSender
public InventoryEnderChest getInventoryEnderChest()
public ItemStack getEquipmentInSlot(int par1)
getEquipmentInSlot
in class EntityLivingBase
public ItemStack getHeldItem()
getHeldItem
in class EntityLivingBase
public void setCurrentItemOrArmor(int par1, ItemStack par2ItemStack)
setCurrentItemOrArmor
in class EntityLivingBase
public boolean isInvisibleToPlayer(EntityPlayer par1EntityPlayer)
isInvisibleToPlayer
in class Entity
public ItemStack[] getLastActiveItems()
getLastActiveItems
in class EntityLivingBase
public boolean getHideCape()
public boolean isPushedByWater()
isPushedByWater
in class Entity
public Scoreboard getWorldScoreboard()
public Team getTeam()
getTeam
in class EntityLivingBase
public IChatComponent func_145748_c_()
func_145748_c_
in interface ICommandSender
func_145748_c_
in class Entity
public void setAbsorptionAmount(float par1)
setAbsorptionAmount
in class EntityLivingBase
public float getAbsorptionAmount()
getAbsorptionAmount
in class EntityLivingBase
public 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)
EntityLivingBase
getPosition
in class EntityLivingBase
public 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()