public abstract class EntityLivingBase extends Entity
Entity.EnumEntitySize
addedToChunk, 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 |
---|
EntityLivingBase(World par1World) |
Modifier and Type | Method and Description |
---|---|
void |
addPotionEffect(PotionEffect par1PotionEffect) |
protected float |
applyArmorCalculations(DamageSource par1DamageSource,
float par2) |
protected void |
applyEntityAttributes() |
protected float |
applyPotionDamageCalculations(DamageSource par1DamageSource,
float par2) |
boolean |
attackEntityAsMob(Entity par1Entity) |
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canBreatheUnderwater() |
boolean |
canEntityBeSeen(Entity par1Entity) |
void |
clearActivePotions() |
protected void |
collideWithEntity(Entity par1Entity) |
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 par1) |
protected void |
damageEntity(DamageSource par1DamageSource,
float par2) |
protected int |
decreaseAirSupply(int par1) |
void |
dismountEntity(Entity par1Entity) |
protected void |
dropEquipment(boolean par1,
int par2) |
protected void |
dropFewItems(boolean par1,
int par2) |
protected void |
dropRareDrop(int par1) |
protected void |
entityInit() |
protected void |
fall(float par1) |
CombatTracker |
func_110142_aN() |
protected float |
func_110146_f(float par1,
float par2) |
int |
func_142015_aE() |
protected boolean |
func_146066_aG() |
protected java.lang.String |
func_146067_o(int p_146067_1_) |
EntityLivingBase |
func_94060_bK() |
float |
getAbsorptionAmount() |
PotionEffect |
getActivePotionEffect(Potion par1Potion) |
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 par1Attribute) |
abstract ItemStack |
getEquipmentInSlot(int var1) |
protected int |
getExperiencePoints(EntityPlayer par1EntityPlayer) |
float |
getEyeHeight() |
float |
getHealth() |
abstract ItemStack |
getHeldItem() |
protected java.lang.String |
getHurtSound() |
IIcon |
getItemIcon(ItemStack par1ItemStack,
int par2) |
abstract ItemStack[] |
getLastActiveItems() |
EntityLivingBase |
getLastAttacker() |
int |
getLastAttackerTime() |
Vec3 |
getLook(float par1) |
Vec3 |
getLookVec() |
float |
getMaxHealth() |
Vec3 |
getPosition(float par1) |
java.util.Random |
getRNG() |
float |
getRotationYawHead() |
protected float |
getSoundPitch() |
protected float |
getSoundVolume() |
float |
getSwingProgress(float par1) |
Team |
getTeam() |
int |
getTotalArmorValue() |
void |
handleHealthUpdate(byte par1) |
void |
heal(float par1) |
protected boolean |
isAIEnabled() |
boolean |
isChild() |
boolean |
isClientWorld() |
boolean |
isEntityAlive() |
boolean |
isEntityUndead() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
boolean |
isOnSameTeam(EntityLivingBase par1EntityLivingBase) |
boolean |
isOnTeam(Team par1Team) |
protected boolean |
isPlayer() |
boolean |
isPlayerSleeping() |
boolean |
isPotionActive(int par1) |
boolean |
isPotionActive(Potion par1Potion) |
boolean |
isPotionApplicable(PotionEffect par1PotionEffect) |
protected void |
jump() |
protected void |
kill() |
void |
knockBack(Entity par1Entity,
float par2,
double par3,
double par5) |
void |
moveEntityWithHeading(float par1,
float par2) |
protected void |
onChangedPotionEffect(PotionEffect par1PotionEffect,
boolean par2) |
void |
onDeath(DamageSource par1DamageSource) |
protected void |
onDeathUpdate() |
void |
onEntityUpdate() |
protected void |
onFinishedPotionEffect(PotionEffect par1PotionEffect) |
void |
onItemPickup(Entity par1Entity,
int par2) |
void |
onLivingUpdate() |
protected void |
onNewPotionEffect(PotionEffect par1PotionEffect) |
void |
onUpdate() |
void |
performHurtAnimation() |
MovingObjectPosition |
rayTrace(double par1,
float par3) |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound) |
void |
removePotionEffect(int par1) |
void |
removePotionEffectClient(int par1) |
void |
renderBrokenItemStack(ItemStack par1ItemStack) |
void |
setAbsorptionAmount(float par1) |
void |
setAIMoveSpeed(float par1) |
void |
setArrowCountInEntity(int par1) |
protected void |
setBeenAttacked() |
abstract void |
setCurrentItemOrArmor(int var1,
ItemStack var2) |
void |
setHealth(float par1) |
void |
setJumping(boolean par1) |
void |
setLastAttacker(Entity par1Entity) |
void |
setPositionAndRotation2(double par1,
double par3,
double par5,
float par7,
float par8,
int par9) |
void |
setPositionAndUpdate(double par1,
double par3,
double par5) |
void |
setRevengeTarget(EntityLivingBase par1EntityLivingBase) |
void |
setRotationYawHead(float par1) |
void |
setSprinting(boolean par1) |
boolean |
shouldRiderFaceForward(EntityPlayer player)
Returns true if the entity's rider (EntityPlayer) should face forward when mounted.
|
void |
swingItem() |
protected void |
updateAITasks() |
protected void |
updateAITick() |
protected void |
updateArmSwingProgress() |
protected void |
updateEntityActionState() |
protected void |
updateFallState(double par1,
boolean par3) |
protected void |
updatePotionEffects() |
void |
updateRidden() |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound) |
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, 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, getEntityData, getEntityId, getEntityString, getExtendedProperties, getFlag, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, 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, registerExtendedProperties, resetEntityId, setAir, setAngles, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, 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 par1World)
protected void entityInit()
entityInit
in class Entity
protected void applyEntityAttributes()
protected void updateFallState(double par1, boolean par3)
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 par1)
protected int getExperiencePoints(EntityPlayer par1EntityPlayer)
protected boolean isPlayer()
public java.util.Random getRNG()
public EntityLivingBase getAITarget()
public int func_142015_aE()
public void setRevengeTarget(EntityLivingBase par1EntityLivingBase)
public EntityLivingBase getLastAttacker()
public int getLastAttackerTime()
public void setLastAttacker(Entity par1Entity)
public int getAge()
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class Entity
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class Entity
protected void updatePotionEffects()
public void clearActivePotions()
public java.util.Collection getActivePotionEffects()
public boolean isPotionActive(int par1)
public boolean isPotionActive(Potion par1Potion)
public PotionEffect getActivePotionEffect(Potion par1Potion)
public void addPotionEffect(PotionEffect par1PotionEffect)
public boolean isPotionApplicable(PotionEffect par1PotionEffect)
public boolean isEntityUndead()
public void removePotionEffectClient(int par1)
public void removePotionEffect(int par1)
protected void onNewPotionEffect(PotionEffect par1PotionEffect)
protected void onChangedPotionEffect(PotionEffect par1PotionEffect, boolean par2)
protected void onFinishedPotionEffect(PotionEffect par1PotionEffect)
public void heal(float par1)
public final float getHealth()
public void setHealth(float par1)
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom
in class Entity
public void renderBrokenItemStack(ItemStack par1ItemStack)
public void onDeath(DamageSource par1DamageSource)
protected void dropEquipment(boolean par1, int par2)
public void knockBack(Entity par1Entity, float par2, double par3, double par5)
protected java.lang.String getHurtSound()
protected java.lang.String getDeathSound()
protected void dropRareDrop(int par1)
protected void dropFewItems(boolean par1, int par2)
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 par1)
protected float applyArmorCalculations(DamageSource par1DamageSource, float par2)
protected float applyPotionDamageCalculations(DamageSource par1DamageSource, float par2)
protected void damageEntity(DamageSource par1DamageSource, float par2)
public CombatTracker func_110142_aN()
public EntityLivingBase func_94060_bK()
public final float getMaxHealth()
public final int getArrowCountInEntity()
public final void setArrowCountInEntity(int par1)
public void swingItem()
public void handleHealthUpdate(byte par1)
handleHealthUpdate
in class Entity
protected void updateArmSwingProgress()
public IAttributeInstance getEntityAttribute(IAttribute par1Attribute)
public BaseAttributeMap getAttributeMap()
public EnumCreatureAttribute getCreatureAttribute()
public abstract ItemStack getHeldItem()
public abstract ItemStack getEquipmentInSlot(int var1)
public abstract void setCurrentItemOrArmor(int var1, ItemStack var2)
setCurrentItemOrArmor
in class Entity
public void setSprinting(boolean par1)
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 par1, double par3, double par5)
public void dismountEntity(Entity par1Entity)
public boolean getAlwaysRenderNameTagForRender()
protected void jump()
public void moveEntityWithHeading(float par1, float par2)
protected boolean isAIEnabled()
public float getAIMoveSpeed()
public void setAIMoveSpeed(float par1)
public boolean attackEntityAsMob(Entity par1Entity)
public boolean isPlayerSleeping()
protected float func_110146_f(float par1, float par2)
public void onLivingUpdate()
protected void updateAITasks()
protected void collideWithNearbyEntities()
protected void collideWithEntity(Entity par1Entity)
public void updateRidden()
updateRidden
in class Entity
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9)
setPositionAndRotation2
in class Entity
protected void updateAITick()
protected void updateEntityActionState()
public void setJumping(boolean par1)
public void onItemPickup(Entity par1Entity, int par2)
public boolean canEntityBeSeen(Entity par1Entity)
public Vec3 getLookVec()
getLookVec
in class Entity
public Vec3 getLook(float par1)
public float getSwingProgress(float par1)
public Vec3 getPosition(float par1)
public MovingObjectPosition rayTrace(double par1, float par3)
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 par1)
setRotationYawHead
in class Entity
public float getAbsorptionAmount()
public void setAbsorptionAmount(float par1)
public Team getTeam()
public boolean isOnSameTeam(EntityLivingBase par1EntityLivingBase)
public boolean isOnTeam(Team par1Team)
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.