public abstract class EntityLivingBase extends Entity
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, 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
Constructor and Description |
---|
EntityLivingBase(World worldIn) |
Modifier and Type | Method and Description |
---|---|
void |
addPotionEffect(PotionEffect p_70690_1_) |
protected void |
addRandomArmor() |
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 source,
float amount) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canBreatheUnderwater() |
boolean |
canEntityBeSeen(Entity p_70685_1_) |
void |
clearActivePotions() |
protected void |
collideWithEntity(Entity p_82167_1_) |
protected void |
collideWithNearbyEntities() |
void |
curePotionEffects(ItemStack curativeItem)
Removes all potion effects that have curativeItem as a curative item for its effect
|
protected void |
damageArmor(float p_70675_1_) |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
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 |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
protected boolean |
func_146066_aG() |
void |
func_152111_bt() |
void |
func_152112_bu() |
protected void |
func_175133_bi() |
protected float |
func_175134_bD() |
protected void |
func_175135_B() |
protected void |
func_175136_bO() |
void |
func_180426_a(double p_180426_1_,
double p_180426_3_,
double p_180426_5_,
float p_180426_7_,
float p_180426_8_,
int p_180426_9_,
boolean p_180426_10_) |
protected void |
func_180433_a(double p_180433_1_,
boolean p_180433_3_,
Block p_180433_4_,
BlockPos p_180433_5_) |
protected void |
func_180466_bG() |
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() |
CombatTracker |
getCombatTracker() |
EnumCreatureAttribute |
getCreatureAttribute() |
abstract ItemStack |
getCurrentArmor(int slotIn) |
protected java.lang.String |
getDeathSound() |
IAttributeInstance |
getEntityAttribute(IAttribute p_110148_1_) |
abstract ItemStack |
getEquipmentInSlot(int slotIn) |
protected int |
getExperiencePoints(EntityPlayer player) |
protected java.lang.String |
getFallSoundString(int damageValue) |
float |
getHealth() |
abstract ItemStack |
getHeldItem() |
protected java.lang.String |
getHurtSound() |
abstract ItemStack[] |
getInventory() |
EntityLivingBase |
getLastAttacker() |
int |
getLastAttackerTime() |
Vec3 |
getLook(float p_70676_1_) |
Vec3 |
getLookVec() |
float |
getMaxHealth() |
int |
getRevengeTimer() |
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 healAmount) |
boolean |
isChild() |
boolean |
isEntityAlive() |
boolean |
isEntityUndead() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
boolean |
isOnSameTeam(EntityLivingBase otherEntity) |
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_) |
boolean |
isServerWorld() |
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 |
mountEntity(Entity entityIn) |
void |
moveEntityWithHeading(float p_70612_1_,
float p_70612_2_) |
protected void |
onChangedPotionEffect(PotionEffect p_70695_1_,
boolean p_70695_2_) |
void |
onDeath(DamageSource cause) |
protected void |
onDeathUpdate() |
void |
onEntityUpdate() |
protected void |
onFinishedPotionEffect(PotionEffect p_70688_1_) |
void |
onItemPickup(Entity p_71001_1_,
int p_71001_2_) |
void |
onKillCommand() |
void |
onLivingUpdate() |
protected void |
onNewPotionEffect(PotionEffect p_70670_1_) |
void |
onUpdate() |
void |
performHurtAnimation() |
void |
readEntityFromNBT(NBTTagCompound tagCompund) |
void |
removePotionEffect(int p_82170_1_) |
void |
removePotionEffectClient(int p_70618_1_) |
void |
renderBrokenItemStack(ItemStack p_70669_1_) |
void |
setAbsorptionAmount(float amount) |
void |
setAIMoveSpeed(float p_70659_1_) |
void |
setArrowCountInEntity(int p_85034_1_) |
protected void |
setBeenAttacked() |
abstract void |
setCurrentItemOrArmor(int slotIn,
ItemStack stack) |
void |
setHealth(float p_70606_1_) |
void |
setJumping(boolean p_70637_1_) |
void |
setLastAttacker(Entity p_130011_1_) |
void |
setRevengeTarget(EntityLivingBase livingBase) |
void |
setRotationYawHead(float rotation) |
void |
setSprinting(boolean sprinting) |
boolean |
shouldRiderFaceForward(EntityPlayer player)
Returns true if the entity's rider (EntityPlayer) should face forward when mounted.
|
void |
swingItem() |
protected void |
updateAITick() |
protected void |
updateArmSwingProgress() |
protected void |
updateEntityActionState() |
protected void |
updatePotionEffects() |
void |
updateRidden() |
void |
writeEntityToNBT(NBTTagCompound tagCompound) |
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, canTriggerWalking, canUseCommand, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_145781_i, func_174807_aT, func_174815_a, func_174816_a, func_174817_o, func_174819_aU, func_174823_aP, func_174825_a, func_174827_a, func_174834_g, func_180427_aV, getAir, getAlwaysRenderNameTag, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getEyeHeight, getFlag, getHorizontalFacing, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, replaceItemInInventory, resetEntityId, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public boolean isSwingInProgress
public int swingProgressInt
public int arrowHitTimer
public int hurtTime
public int maxHurtTime
public float attackedAtYaw
public int deathTime
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 worldIn)
public void onKillCommand()
onKillCommand
in class Entity
protected void entityInit()
entityInit
in class Entity
protected void applyEntityAttributes()
protected void func_180433_a(double p_180433_1_, boolean p_180433_3_, Block p_180433_4_, BlockPos p_180433_5_)
func_180433_a
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 player)
protected boolean isPlayer()
public java.util.Random getRNG()
public EntityLivingBase getAITarget()
public int getRevengeTimer()
public void setRevengeTarget(EntityLivingBase livingBase)
public EntityLivingBase getLastAttacker()
public int getLastAttackerTime()
public void setLastAttacker(Entity p_130011_1_)
public int getAge()
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class Entity
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class Entity
protected void updatePotionEffects()
protected void func_175135_B()
protected void func_175133_bi()
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 healAmount)
public final float getHealth()
public void setHealth(float p_70606_1_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class Entity
public void renderBrokenItemStack(ItemStack p_70669_1_)
public void onDeath(DamageSource cause)
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 addRandomArmor()
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 getFallSoundString(int damageValue)
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 damageSrc, float damageAmount)
public CombatTracker getCombatTracker()
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 slotIn)
public abstract ItemStack getCurrentArmor(int slotIn)
public abstract void setCurrentItemOrArmor(int slotIn, ItemStack stack)
setCurrentItemOrArmor
in class Entity
public void setSprinting(boolean sprinting)
setSprinting
in class Entity
public abstract ItemStack[] getInventory()
getInventory
in class Entity
protected float getSoundVolume()
protected float getSoundPitch()
protected boolean isMovementBlocked()
public void dismountEntity(Entity p_110145_1_)
public boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender
in class Entity
protected float func_175134_bD()
protected void jump()
protected void updateAITick()
protected void func_180466_bG()
public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_)
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 updateEntityActionState()
protected void collideWithNearbyEntities()
protected void collideWithEntity(Entity p_82167_1_)
public void mountEntity(Entity entityIn)
mountEntity
in class Entity
public void updateRidden()
updateRidden
in class Entity
public void func_180426_a(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_)
func_180426_a
in class Entity
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 float getSwingProgress(float p_70678_1_)
public boolean isServerWorld()
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
protected void setBeenAttacked()
setBeenAttacked
in class Entity
public float getRotationYawHead()
getRotationYawHead
in class Entity
public void setRotationYawHead(float rotation)
setRotationYawHead
in class Entity
public float getAbsorptionAmount()
public void setAbsorptionAmount(float amount)
public Team getTeam()
public boolean isOnSameTeam(EntityLivingBase otherEntity)
public boolean isOnTeam(Team p_142012_1_)
public void func_152111_bt()
public void func_152112_bu()
protected void func_175136_bO()
public void curePotionEffects(ItemStack curativeItem)
curativeItem
- The itemstack we are using to cure potion effectspublic boolean shouldRiderFaceForward(EntityPlayer player)
player
- The player who is riding the entity.