public abstract class EntityLivingBase extends Entity
Entity.EnumEntitySize
addedToChunk, boundingBox, 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 |
---|
EntityLivingBase(World p_i1594_1_) |
Modifier and Type | Method and Description |
---|---|
void |
addPotionEffect(PotionEffect p_70690_1_) |
protected float |
applyArmorCalculations(DamageSource p_70655_1_,
float p_70655_2_) |
protected void |
applyEntityAttributes() |
protected float |
applyPotionDamageCalculations(DamageSource p_70672_1_,
float p_70672_2_) |
boolean |
attackEntityAsMob(Entity p_70652_1_) |
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canBreatheUnderwater() |
boolean |
canEntityBeSeen(Entity p_70685_1_) |
void |
clearActivePotions() |
protected void |
collideWithEntity(Entity p_82167_1_) |
protected void |
collideWithNearbyEntities() |
protected void |
damageArmor(float p_70675_1_) |
protected void |
damageEntity(DamageSource p_70665_1_,
float p_70665_2_) |
protected int |
decreaseAirSupply(int p_70682_1_) |
void |
dismountEntity(Entity p_110145_1_) |
protected void |
dropEquipment(boolean p_82160_1_,
int p_82160_2_) |
protected void |
dropFewItems(boolean p_70628_1_,
int p_70628_2_) |
protected void |
dropRareDrop(int p_70600_1_) |
protected void |
entityInit() |
protected void |
fall(float p_70069_1_) |
CombatTracker |
func_110142_aN() |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
int |
func_142015_aE() |
protected boolean |
func_146066_aG() |
protected java.lang.String |
func_146067_o(int p_146067_1_) |
void |
func_152111_bt() |
void |
func_152112_bu() |
EntityLivingBase |
func_94060_bK() |
float |
getAbsorptionAmount() |
PotionEffect |
getActivePotionEffect(Potion p_70660_1_) |
java.util.Collection |
getActivePotionEffects() |
int |
getAge() |
float |
getAIMoveSpeed() |
EntityLivingBase |
getAITarget() |
boolean |
getAlwaysRenderNameTagForRender() |
int |
getArrowCountInEntity() |
BaseAttributeMap |
getAttributeMap() |
EnumCreatureAttribute |
getCreatureAttribute() |
protected java.lang.String |
getDeathSound() |
IAttributeInstance |
getEntityAttribute(IAttribute p_110148_1_) |
abstract ItemStack |
getEquipmentInSlot(int p_71124_1_) |
protected int |
getExperiencePoints(EntityPlayer p_70693_1_) |
float |
getEyeHeight() |
float |
getHealth() |
abstract ItemStack |
getHeldItem() |
protected java.lang.String |
getHurtSound() |
IIcon |
getItemIcon(ItemStack p_70620_1_,
int p_70620_2_) |
abstract ItemStack[] |
getLastActiveItems() |
EntityLivingBase |
getLastAttacker() |
int |
getLastAttackerTime() |
Vec3 |
getLook(float p_70676_1_) |
Vec3 |
getLookVec() |
float |
getMaxHealth() |
Vec3 |
getPosition(float p_70666_1_) |
java.util.Random |
getRNG() |
float |
getRotationYawHead() |
protected float |
getSoundPitch() |
protected float |
getSoundVolume() |
float |
getSwingProgress(float p_70678_1_) |
Team |
getTeam() |
int |
getTotalArmorValue() |
void |
handleHealthUpdate(byte p_70103_1_) |
void |
heal(float p_70691_1_) |
protected boolean |
isAIEnabled() |
boolean |
isChild() |
boolean |
isClientWorld() |
boolean |
isEntityAlive() |
boolean |
isEntityUndead() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
boolean |
isOnSameTeam(EntityLivingBase p_142014_1_) |
boolean |
isOnTeam(Team p_142012_1_) |
protected boolean |
isPlayer() |
boolean |
isPlayerSleeping() |
boolean |
isPotionActive(int p_82165_1_) |
boolean |
isPotionActive(Potion p_70644_1_) |
boolean |
isPotionApplicable(PotionEffect p_70687_1_) |
protected void |
jump() |
protected void |
kill() |
void |
knockBack(Entity p_70653_1_,
float p_70653_2_,
double p_70653_3_,
double p_70653_5_) |
void |
moveEntityWithHeading(float p_70612_1_,
float p_70612_2_) |
protected void |
onChangedPotionEffect(PotionEffect p_70695_1_,
boolean p_70695_2_) |
void |
onDeath(DamageSource p_70645_1_) |
protected void |
onDeathUpdate() |
void |
onEntityUpdate() |
protected void |
onFinishedPotionEffect(PotionEffect p_70688_1_) |
void |
onItemPickup(Entity p_71001_1_,
int p_71001_2_) |
void |
onLivingUpdate() |
protected void |
onNewPotionEffect(PotionEffect p_70670_1_) |
void |
onUpdate() |
void |
performHurtAnimation() |
MovingObjectPosition |
rayTrace(double p_70614_1_,
float p_70614_3_) |
void |
readEntityFromNBT(NBTTagCompound p_70037_1_) |
void |
removePotionEffect(int p_82170_1_) |
void |
removePotionEffectClient(int p_70618_1_) |
void |
renderBrokenItemStack(ItemStack p_70669_1_) |
void |
setAbsorptionAmount(float p_110149_1_) |
void |
setAIMoveSpeed(float p_70659_1_) |
void |
setArrowCountInEntity(int p_85034_1_) |
protected void |
setBeenAttacked() |
abstract void |
setCurrentItemOrArmor(int p_70062_1_,
ItemStack p_70062_2_) |
void |
setHealth(float p_70606_1_) |
void |
setJumping(boolean p_70637_1_) |
void |
setLastAttacker(Entity p_130011_1_) |
void |
setPositionAndRotation2(double p_70056_1_,
double p_70056_3_,
double p_70056_5_,
float p_70056_7_,
float p_70056_8_,
int p_70056_9_) |
void |
setPositionAndUpdate(double p_70634_1_,
double p_70634_3_,
double p_70634_5_) |
void |
setRevengeTarget(EntityLivingBase p_70604_1_) |
void |
setRotationYawHead(float p_70034_1_) |
void |
setSprinting(boolean p_70031_1_) |
void |
swingItem() |
protected void |
updateAITasks() |
protected void |
updateAITick() |
protected void |
updateArmSwingProgress() |
protected void |
updateEntityActionState() |
protected void |
updateFallState(double p_70064_1_,
boolean p_70064_3_) |
protected void |
updatePotionEffects() |
void |
updateRidden() |
void |
writeEntityToNBT(NBTTagCompound p_70014_1_) |
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145748_c_, 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, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityId, getEntityString, getFlag, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPortalCooldown, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, readFromNBT, setAir, setAngles, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public boolean isSwingInProgress
public int swingProgressInt
public int arrowHitTimer
public float prevHealth
public int hurtTime
public int maxHurtTime
public float attackedAtYaw
public int deathTime
public int attackTime
public float prevSwingProgress
public float swingProgress
public float prevLimbSwingAmount
public float limbSwingAmount
public float limbSwing
public int maxHurtResistantTime
public float prevCameraPitch
public float cameraPitch
public float field_70769_ao
public float field_70770_ap
public float renderYawOffset
public float prevRenderYawOffset
public float rotationYawHead
public float prevRotationYawHead
public float jumpMovementFactor
protected EntityPlayer attackingPlayer
protected int recentlyHit
protected boolean dead
protected int entityAge
protected float field_70768_au
protected float field_110154_aX
protected float field_70764_aw
protected float field_70763_ax
protected float field_70741_aB
protected int scoreValue
protected float lastDamage
protected boolean isJumping
public float moveStrafing
public float moveForward
protected float randomYawVelocity
protected int newPosRotationIncrements
protected double newPosX
protected double newPosY
protected double newPosZ
protected double newRotationYaw
protected double newRotationPitch
public EntityLivingBase(World p_i1594_1_)
protected void entityInit()
entityInit
in class Entity
protected void applyEntityAttributes()
protected void updateFallState(double p_70064_1_, boolean p_70064_3_)
updateFallState
in class Entity
public boolean canBreatheUnderwater()
public void onEntityUpdate()
onEntityUpdate
in class Entity
public boolean isChild()
protected void onDeathUpdate()
protected boolean func_146066_aG()
protected int decreaseAirSupply(int p_70682_1_)
protected int getExperiencePoints(EntityPlayer p_70693_1_)
protected boolean isPlayer()
public java.util.Random getRNG()
public EntityLivingBase getAITarget()
public int func_142015_aE()
public void setRevengeTarget(EntityLivingBase p_70604_1_)
public EntityLivingBase getLastAttacker()
public int getLastAttackerTime()
public void setLastAttacker(Entity p_130011_1_)
public int getAge()
public void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT
in class Entity
public void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT
in class Entity
protected void updatePotionEffects()
public void clearActivePotions()
public java.util.Collection getActivePotionEffects()
public boolean isPotionActive(int p_82165_1_)
public boolean isPotionActive(Potion p_70644_1_)
public PotionEffect getActivePotionEffect(Potion p_70660_1_)
public void addPotionEffect(PotionEffect p_70690_1_)
public boolean isPotionApplicable(PotionEffect p_70687_1_)
public boolean isEntityUndead()
public void removePotionEffectClient(int p_70618_1_)
public void removePotionEffect(int p_82170_1_)
protected void onNewPotionEffect(PotionEffect p_70670_1_)
protected void onChangedPotionEffect(PotionEffect p_70695_1_, boolean p_70695_2_)
protected void onFinishedPotionEffect(PotionEffect p_70688_1_)
public void heal(float p_70691_1_)
public final float getHealth()
public void setHealth(float p_70606_1_)
public boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom
in class Entity
public void renderBrokenItemStack(ItemStack p_70669_1_)
public void onDeath(DamageSource p_70645_1_)
protected void dropEquipment(boolean p_82160_1_, int p_82160_2_)
public void knockBack(Entity p_70653_1_, float p_70653_2_, double p_70653_3_, double p_70653_5_)
protected java.lang.String getHurtSound()
protected java.lang.String getDeathSound()
protected void dropRareDrop(int p_70600_1_)
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
public boolean isOnLadder()
public boolean isEntityAlive()
isEntityAlive
in class Entity
protected java.lang.String func_146067_o(int p_146067_1_)
public void performHurtAnimation()
performHurtAnimation
in class Entity
public int getTotalArmorValue()
protected void damageArmor(float p_70675_1_)
protected float applyArmorCalculations(DamageSource p_70655_1_, float p_70655_2_)
protected float applyPotionDamageCalculations(DamageSource p_70672_1_, float p_70672_2_)
protected void damageEntity(DamageSource p_70665_1_, float p_70665_2_)
public CombatTracker func_110142_aN()
public EntityLivingBase func_94060_bK()
public final float getMaxHealth()
public final int getArrowCountInEntity()
public final void setArrowCountInEntity(int p_85034_1_)
public void swingItem()
public void handleHealthUpdate(byte p_70103_1_)
handleHealthUpdate
in class Entity
protected void updateArmSwingProgress()
public IAttributeInstance getEntityAttribute(IAttribute p_110148_1_)
public BaseAttributeMap getAttributeMap()
public EnumCreatureAttribute getCreatureAttribute()
public abstract ItemStack getHeldItem()
public abstract ItemStack getEquipmentInSlot(int p_71124_1_)
public abstract void setCurrentItemOrArmor(int p_70062_1_, ItemStack p_70062_2_)
setCurrentItemOrArmor
in class Entity
public void setSprinting(boolean p_70031_1_)
setSprinting
in class Entity
public abstract ItemStack[] getLastActiveItems()
getLastActiveItems
in class Entity
protected float getSoundVolume()
protected float getSoundPitch()
protected boolean isMovementBlocked()
public void setPositionAndUpdate(double p_70634_1_, double p_70634_3_, double p_70634_5_)
public void dismountEntity(Entity p_110145_1_)
public boolean getAlwaysRenderNameTagForRender()
protected void jump()
public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_)
protected boolean isAIEnabled()
public float getAIMoveSpeed()
public void setAIMoveSpeed(float p_70659_1_)
public boolean attackEntityAsMob(Entity p_70652_1_)
public boolean isPlayerSleeping()
protected float func_110146_f(float p_110146_1_, float p_110146_2_)
public void onLivingUpdate()
protected void updateAITasks()
protected void collideWithNearbyEntities()
protected void collideWithEntity(Entity p_82167_1_)
public void updateRidden()
updateRidden
in class Entity
public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_)
setPositionAndRotation2
in class Entity
protected void updateAITick()
protected void updateEntityActionState()
public void setJumping(boolean p_70637_1_)
public void onItemPickup(Entity p_71001_1_, int p_71001_2_)
public boolean canEntityBeSeen(Entity p_70685_1_)
public Vec3 getLookVec()
getLookVec
in class Entity
public Vec3 getLook(float p_70676_1_)
public float getSwingProgress(float p_70678_1_)
public Vec3 getPosition(float p_70666_1_)
public MovingObjectPosition rayTrace(double p_70614_1_, float p_70614_3_)
public boolean isClientWorld()
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
public float getEyeHeight()
getEyeHeight
in class Entity
protected void setBeenAttacked()
setBeenAttacked
in class Entity
public float getRotationYawHead()
getRotationYawHead
in class Entity
public void setRotationYawHead(float p_70034_1_)
setRotationYawHead
in class Entity
public float getAbsorptionAmount()
public void setAbsorptionAmount(float p_110149_1_)
public Team getTeam()
public boolean isOnSameTeam(EntityLivingBase p_142014_1_)
public boolean isOnTeam(Team p_142012_1_)
public void func_152111_bt()
public void func_152112_bu()