YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.EntityLiving Class Referenceabstract
Inheritance diagram for net.minecraft.entity.EntityLiving:
net.minecraft.entity.Entity net.minecraft.entity.boss.EntityDragon net.minecraft.entity.EntityCreature net.minecraft.entity.EntityFlying net.minecraft.entity.monster.EntitySlime net.minecraft.entity.passive.EntityAmbientCreature net.minecraft.entity.player.EntityPlayer net.minecraft.entity.EntityAgeable net.minecraft.entity.monster.EntityGolem net.minecraft.entity.monster.EntityMob net.minecraft.entity.passive.EntityWaterMob net.minecraft.entity.monster.EntityGhast net.minecraft.entity.monster.EntityMagmaCube net.minecraft.entity.passive.EntityBat net.minecraft.client.entity.EntityOtherPlayerMP net.minecraft.client.entity.EntityPlayerSP net.minecraft.entity.player.EntityPlayerMP net.minecraftforge.common.FakePlayer

Public Member Functions

 EntityLiving (World par1World)
 
EntityLookHelper getLookHelper ()
 
EntityMoveHelper getMoveHelper ()
 
EntityJumpHelper getJumpHelper ()
 
PathNavigate getNavigator ()
 
EntitySenses getEntitySenses ()
 
Random getRNG ()
 
EntityLiving getAITarget ()
 
EntityLiving getLastAttackingEntity ()
 
void setLastAttackingEntity (Entity par1Entity)
 
int getAge ()
 
float getRotationYawHead ()
 
void setRotationYawHead (float par1)
 
float getAIMoveSpeed ()
 
void setAIMoveSpeed (float par1)
 
boolean attackEntityAsMob (Entity par1Entity)
 
EntityLiving getAttackTarget ()
 
void setAttackTarget (EntityLiving par1EntityLiving)
 
boolean canAttackClass (Class par1Class)
 
void eatGrassBonus ()
 
boolean isWithinHomeDistanceCurrentPosition ()
 
boolean isWithinHomeDistance (int par1, int par2, int par3)
 
void setHomeArea (int par1, int par2, int par3, int par4)
 
ChunkCoordinates getHomePosition ()
 
float getMaximumHomeDistance ()
 
void detachHome ()
 
boolean hasHome ()
 
void setRevengeTarget (EntityLiving par1EntityLiving)
 
boolean canEntityBeSeen (Entity par1Entity)
 
String getTexture ()
 
boolean canBeCollidedWith ()
 
boolean canBePushed ()
 
float getEyeHeight ()
 
int getTalkInterval ()
 
void playLivingSound ()
 
void onEntityUpdate ()
 
void spawnExplosionParticle ()
 
void updateRidden ()
 
void setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9)
 
void onUpdate ()
 
void heal (int par1)
 
abstract int getMaxHealth ()
 
int getHealth ()
 
void setEntityHealth (int par1)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
void performHurtAnimation ()
 
int getTotalArmorValue ()
 
void knockBack (Entity par1Entity, int par2, double par3, double par5)
 
void onDeath (DamageSource par1DamageSource)
 
void moveEntityWithHeading (float par1, float par2)
 
boolean isOnLadder ()
 
void writeEntityToNBT (NBTTagCompound par1NBTTagCompound)
 
void readEntityFromNBT (NBTTagCompound par1NBTTagCompound)
 
boolean isEntityAlive ()
 
boolean canBreatheUnderwater ()
 
void setMoveForward (float par1)
 
void setJumping (boolean par1)
 
void onLivingUpdate ()
 
boolean isBlocking ()
 
int getVerticalFaceSpeed ()
 
void faceEntity (Entity par1Entity, float par2, float par3)
 
boolean getCanSpawnHere ()
 
float getSwingProgress (float par1)
 
Vec3 getPosition (float par1)
 
Vec3 getLookVec ()
 
Vec3 getLook (float par1)
 
float getRenderSizeModifier ()
 
MovingObjectPosition rayTrace (double par1, float par3)
 
int getMaxSpawnedInChunk ()
 
void handleHealthUpdate (byte par1)
 
boolean isPlayerSleeping ()
 
Icon getItemIcon (ItemStack par1ItemStack, int par2)
 
void clearActivePotions ()
 
Collection getActivePotionEffects ()
 
boolean isPotionActive (int par1)
 
boolean isPotionActive (Potion par1Potion)
 
PotionEffect getActivePotionEffect (Potion par1Potion)
 
void addPotionEffect (PotionEffect par1PotionEffect)
 
boolean isPotionApplicable (PotionEffect par1PotionEffect)
 
boolean isEntityUndead ()
 
void removePotionEffectClient (int par1)
 
void removePotionEffect (int par1)
 
float getSpeedModifier ()
 
void setPositionAndUpdate (double par1, double par3, double par5)
 
boolean isChild ()
 
EnumCreatureAttribute getCreatureAttribute ()
 
void renderBrokenItemStack (ItemStack par1ItemStack)
 
int func_82143_as ()
 
ItemStack getHeldItem ()
 
ItemStack getCurrentItemOrArmor (int par1)
 
ItemStack getCurrentArmor (int par1)
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
ItemStack[] getLastActiveItems ()
 
void onItemPickup (Entity par1Entity, int par2)
 
void initCreature ()
 
void swingItem ()
 
boolean canBeSteered ()
 
final int getArrowCountInEntity ()
 
final void setArrowCountInEntity (int par1)
 
EntityLiving func_94060_bK ()
 
String getEntityName ()
 
void func_94058_c (String par1Str)
 
String func_94057_bL ()
 
boolean func_94056_bM ()
 
void func_94061_f (boolean par1)
 
boolean func_94062_bN ()
 
boolean func_94059_bO ()
 
void func_96120_a (int par1, float par2)
 
boolean canPickUpLoot ()
 
void setCanPickUpLoot (boolean par1)
 
boolean func_104002_bU ()
 
void curePotionEffects (ItemStack curativeItem)
 
boolean shouldRiderFaceForward (EntityPlayer player)
 
- Public Member Functions inherited from net.minecraft.entity.Entity
 Entity (World par1World)
 
DataWatcher getDataWatcher ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 
void setDead ()
 
void setPosition (double par1, double par3, double par5)
 
void setAngles (float par1, float par2)
 
void onUpdate ()
 
void onEntityUpdate ()
 
int getMaxInPortalTime ()
 
void setFire (int par1)
 
void extinguish ()
 
boolean isOffsetPositionInLiquid (double par1, double par3, double par5)
 
void moveEntity (double par1, double par3, double par5)
 
void playSound (String par1Str, float par2, float par3)
 
AxisAlignedBB getBoundingBox ()
 
final boolean isImmuneToFire ()
 
boolean isWet ()
 
boolean isInWater ()
 
boolean handleWaterMovement ()
 
boolean isInsideOfMaterial (Material par1Material)
 
float getEyeHeight ()
 
boolean handleLavaMovement ()
 
void moveFlying (float par1, float par2, float par3)
 
int getBrightnessForRender (float par1)
 
float getBrightness (float par1)
 
void setWorld (World par1World)
 
void setPositionAndRotation (double par1, double par3, double par5, float par7, float par8)
 
void setLocationAndAngles (double par1, double par3, double par5, float par7, float par8)
 
float getDistanceToEntity (Entity par1Entity)
 
double getDistanceSq (double par1, double par3, double par5)
 
double getDistance (double par1, double par3, double par5)
 
double getDistanceSqToEntity (Entity par1Entity)
 
void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
 
void applyEntityCollision (Entity par1Entity)
 
void addVelocity (double par1, double par3, double par5)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
boolean canBeCollidedWith ()
 
boolean canBePushed ()
 
void addToPlayerScore (Entity par1Entity, int par2)
 
boolean addNotRiddenEntityID (NBTTagCompound par1NBTTagCompound)
 
boolean isInRangeToRenderVec3D (Vec3 par1Vec3)
 
boolean isInRangeToRenderDist (double par1)
 
String getTexture ()
 
boolean addEntityID (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
float getShadowSize ()
 
EntityItem dropItem (int par1, int par2)
 
EntityItem dropItemWithOffset (int par1, int par2, float par3)
 
EntityItem entityDropItem (ItemStack par1ItemStack, float par2)
 
boolean isEntityAlive ()
 
boolean isEntityInsideOpaqueBlock ()
 
boolean interact (EntityPlayer par1EntityPlayer)
 
AxisAlignedBB getCollisionBox (Entity par1Entity)
 
void updateRidden ()
 
void updateRiderPosition ()
 
double getYOffset ()
 
double getMountedYOffset ()
 
void mountEntity (Entity par1Entity)
 
void unmountEntity (Entity par1Entity)
 
void setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9)
 
float getCollisionBorderSize ()
 
Vec3 getLookVec ()
 
void setInPortal ()
 
int getPortalCooldown ()
 
void setVelocity (double par1, double par3, double par5)
 
void handleHealthUpdate (byte par1)
 
void performHurtAnimation ()
 
void updateCloak ()
 
ItemStack[] getLastActiveItems ()
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
boolean isBurning ()
 
boolean isRiding ()
 
boolean isSneaking ()
 
void setSneaking (boolean par1)
 
boolean isSprinting ()
 
void setSprinting (boolean par1)
 
boolean isInvisible ()
 
boolean func_98034_c (EntityPlayer par1EntityPlayer)
 
void setInvisible (boolean par1)
 
boolean isEating ()
 
void setEating (boolean par1)
 
int getAir ()
 
void setAir (int par1)
 
void onStruckByLightning (EntityLightningBolt par1EntityLightningBolt)
 
void onKillEntity (EntityLiving par1EntityLiving)
 
void setInWeb ()
 
String getEntityName ()
 
Entity[] getParts ()
 
boolean isEntityEqual (Entity par1Entity)
 
float getRotationYawHead ()
 
void setRotationYawHead (float par1)
 
boolean canAttackWithItem ()
 
boolean func_85031_j (Entity par1Entity)
 
String toString ()
 
boolean isEntityInvulnerable ()
 
void func_82149_j (Entity par1Entity)
 
void copyDataFrom (Entity par1Entity, boolean par2)
 
void travelToDimension (int par1)
 
float func_82146_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block)
 
boolean func_96091_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7)
 
int func_82143_as ()
 
int getTeleportDirection ()
 
boolean doesEntityNotTriggerPressurePlate ()
 
void func_85029_a (CrashReportCategory par1CrashReportCategory)
 
boolean canRenderOnFire ()
 
boolean func_96092_aw ()
 
String getTranslatedEntityName ()
 
NBTTagCompound getEntityData ()
 
boolean shouldRiderSit ()
 
ItemStack getPickedResult (MovingObjectPosition target)
 
UUID getPersistentID ()
 
final void resetEntityId ()
 
boolean shouldRenderInPass (int pass)
 
boolean isCreatureType (EnumCreatureType type, boolean forSpawnCount)
 
String registerExtendedProperties (String identifier, IExtendedEntityProperties properties)
 
IExtendedEntityProperties getExtendedProperties (String identifier)
 

Static Public Member Functions

static int getArmorPosition (ItemStack par0ItemStack)
 
static Item getArmorItemForSlot (int par0, int par1)
 

Public Attributes

int maxHurtResistantTime = 20
 
float field_70769_ao
 
float field_70770_ap
 
float renderYawOffset = 0.0F
 
float prevRenderYawOffset = 0.0F
 
float rotationYawHead = 0.0F
 
float prevRotationYawHead = 0.0F
 
float landMovementFactor = 0.1F
 
float jumpMovementFactor = 0.02F
 
float prevSwingProgress
 
float swingProgress
 
int prevHealth
 
int carryoverDamage
 
int livingSoundTime
 
int hurtTime
 
int maxHurtTime
 
float attackedAtYaw = 0.0F
 
int deathTime = 0
 
int attackTime = 0
 
float prevCameraPitch
 
float cameraPitch
 
int experienceValue
 
int field_70731_aW = -1
 
float field_70730_aX = (float)(Math.random() * 0.8999999761581421D + 0.10000000149011612D)
 
float prevLimbYaw
 
float limbYaw
 
float limbSwing
 
int arrowHitTimer = 0
 
final EntityAITasks tasks
 
final EntityAITasks targetTasks
 
boolean isSwingInProgress = false
 
int swingProgressInt = 0
 
final CombatTracker field_94063_bt = new CombatTracker(this)
 
boolean isJumping = false
 
- Public Attributes inherited from net.minecraft.entity.Entity
int entityId
 
double renderDistanceWeight
 
boolean preventEntitySpawning
 
Entity riddenByEntity
 
Entity ridingEntity
 
boolean field_98038_p
 
World worldObj
 
double prevPosX
 
double prevPosY
 
double prevPosZ
 
double posX
 
double posY
 
double posZ
 
double motionX
 
double motionY
 
double motionZ
 
float rotationYaw
 
float rotationPitch
 
float prevRotationYaw
 
float prevRotationPitch
 
final AxisAlignedBB boundingBox
 
boolean onGround
 
boolean isCollidedHorizontally
 
boolean isCollidedVertically
 
boolean isCollided
 
boolean velocityChanged
 
boolean field_70135_K
 
boolean isDead
 
float yOffset
 
float width
 
float height
 
float prevDistanceWalkedModified
 
float distanceWalkedModified
 
float distanceWalkedOnStepModified
 
float fallDistance
 
double lastTickPosX
 
double lastTickPosY
 
double lastTickPosZ
 
float ySize
 
float stepHeight
 
boolean noClip
 
float entityCollisionReduction
 
int ticksExisted
 
int fireResistance
 
int hurtResistantTime
 
String skinUrl
 
String cloakUrl
 
boolean addedToChunk
 
int chunkCoordX
 
int chunkCoordY
 
int chunkCoordZ
 
int serverPosX
 
int serverPosY
 
int serverPosZ
 
boolean ignoreFrustumCheck
 
boolean isAirBorne
 
int timeUntilPortal
 
int dimension
 
EnumEntitySize myEntitySize
 
boolean captureDrops = false
 
ArrayList< EntityItemcapturedDrops = new ArrayList<EntityItem>()
 

Static Public Attributes

static final float[] pickUpLootProability = new float[] {0.0F, 0.1F, 0.15F, 0.45F}
 

Protected Member Functions

int func_96121_ay ()
 
void updateFallState (double par1, boolean par3)
 
void entityInit ()
 
void onDeathUpdate ()
 
int decreaseAirSupply (int par1)
 
int getExperiencePoints (EntityPlayer par1EntityPlayer)
 
boolean isPlayer ()
 
float getSoundPitch ()
 
void damageArmor (int par1)
 
int applyArmorCalculations (DamageSource par1DamageSource, int par2)
 
int applyPotionDamageCalculations (DamageSource par1DamageSource, int par2)
 
void damageEntity (DamageSource par1DamageSource, int par2)
 
float getSoundVolume ()
 
String getLivingSound ()
 
String getHurtSound ()
 
String getDeathSound ()
 
void dropRareDrop (int par1)
 
void dropFewItems (boolean par1, int par2)
 
int getDropItemId ()
 
void fall (float par1)
 
void func_85033_bc ()
 
void collideWithEntity (Entity par1Entity)
 
boolean isAIEnabled ()
 
boolean isClientWorld ()
 
boolean isMovementBlocked ()
 
void jump ()
 
boolean canDespawn ()
 
void despawnEntity ()
 
void updateAITasks ()
 
void updateAITick ()
 
void updateEntityActionState ()
 
void updateArmSwingProgress ()
 
void kill ()
 
void updatePotionEffects ()
 
void onNewPotionEffect (PotionEffect par1PotionEffect)
 
void onChangedPotionEffect (PotionEffect par1PotionEffect)
 
void onFinishedPotionEffect (PotionEffect par1PotionEffect)
 
void dropEquipment (boolean par1, int par2)
 
void addRandomArmor ()
 
void func_82162_bC ()
 
- Protected Member Functions inherited from net.minecraft.entity.Entity
void preparePlayerToSpawn ()
 
void setSize (float par1, float par2)
 
void setRotation (float par1, float par2)
 
void setOnFireFromLava ()
 
void kill ()
 
void doBlockCollisions ()
 
void playStepSound (int par1, int par2, int par3, int par4)
 
boolean canTriggerWalking ()
 
void updateFallState (double par1, boolean par3)
 
void dealFireDamage (int par1)
 
void fall (float par1)
 
void setBeenAttacked ()
 
final String getEntityString ()
 
NBTTagList newDoubleNBTList (double...par1ArrayOfDouble)
 
NBTTagList newFloatNBTList (float...par1ArrayOfFloat)
 
boolean getFlag (int par1)
 
void setFlag (int par1, boolean par2)
 
boolean pushOutOfBlocks (double par1, double par3, double par5)
 

Protected Attributes

float field_70768_au
 
float field_70766_av
 
float field_70764_aw
 
float field_70763_ax
 
boolean field_70753_ay = true
 
String texture = "/mob/char.png"
 
boolean field_70740_aA = true
 
float field_70741_aB = 0.0F
 
String entityType = null
 
float field_70743_aD = 1.0F
 
int scoreValue = 0
 
float field_70745_aF = 0.0F
 
int health = this.getMaxHealth()
 
boolean dead = false
 
EntityPlayer attackingPlayer = null
 
int recentlyHit = 0
 
HashMap activePotionsMap = new HashMap()
 
float[] equipmentDropChances = new float[5]
 
int newPosRotationIncrements
 
double newPosX
 
double newPosY
 
double newPosZ
 
double newRotationYaw
 
double newRotationPitch
 
int lastDamage = 0
 
int entityAge = 0
 
float moveStrafing
 
float moveForward
 
float randomYawVelocity
 
float defaultPitch = 0.0F
 
float moveSpeed = 0.7F
 
int numTicksToChaseTarget = 0
 
- Protected Attributes inherited from net.minecraft.entity.Entity
boolean isInWeb
 
Random rand
 
boolean inWater
 
boolean isImmuneToFire
 
DataWatcher dataWatcher
 
boolean inPortal
 
int timeInPortal
 
int teleportDirection
 

Constructor & Destructor Documentation

net.minecraft.entity.EntityLiving.EntityLiving ( World  par1World)

Member Function Documentation

void net.minecraft.entity.EntityLiving.addPotionEffect ( PotionEffect  par1PotionEffect)

adds a PotionEffect to the entity

void net.minecraft.entity.EntityLiving.addRandomArmor ( )
protected

Makes entity wear random armor based on difficulty

int net.minecraft.entity.EntityLiving.applyArmorCalculations ( DamageSource  par1DamageSource,
int  par2 
)
protected

Reduces damage, depending on armor

int net.minecraft.entity.EntityLiving.applyPotionDamageCalculations ( DamageSource  par1DamageSource,
int  par2 
)
protected

Reduces damage, depending on potions

boolean net.minecraft.entity.EntityLiving.attackEntityAsMob ( Entity  par1Entity)
boolean net.minecraft.entity.EntityLiving.attackEntityFrom ( DamageSource  par1DamageSource,
int  par2 
)

Called when the entity is attacked.

boolean net.minecraft.entity.EntityLiving.canAttackClass ( Class  par1Class)

Returns true if this entity can attack entities of the specified class.

boolean net.minecraft.entity.EntityLiving.canBeCollidedWith ( )

Returns true if other Entities should be prevented from moving through this Entity.

boolean net.minecraft.entity.EntityLiving.canBePushed ( )

Returns true if this entity should push and be pushed by other entities when colliding.

boolean net.minecraft.entity.EntityLiving.canBeSteered ( )

returns true if all the conditions for steering the entity are met. For pigs, this is true if it is being ridden by a player and the player is holding a carrot-on-a-stick

boolean net.minecraft.entity.EntityLiving.canBreatheUnderwater ( )
boolean net.minecraft.entity.EntityLiving.canDespawn ( )
protected

Determines if an entity can be despawned, used on idle far away entities

boolean net.minecraft.entity.EntityLiving.canEntityBeSeen ( Entity  par1Entity)

returns true if the entity provided in the argument can be seen. (Raytrace)

boolean net.minecraft.entity.EntityLiving.canPickUpLoot ( )
void net.minecraft.entity.EntityLiving.clearActivePotions ( )
void net.minecraft.entity.EntityLiving.collideWithEntity ( Entity  par1Entity)
protected
void net.minecraft.entity.EntityLiving.curePotionEffects ( ItemStack  curativeItem)
void net.minecraft.entity.EntityLiving.damageArmor ( int  par1)
protected
void net.minecraft.entity.EntityLiving.damageEntity ( DamageSource  par1DamageSource,
int  par2 
)
protected

Deals damage to the entity. If its a EntityPlayer then will take damage from the armor first and then health second with the reduced value. Args: damageAmount

int net.minecraft.entity.EntityLiving.decreaseAirSupply ( int  par1)
protected

Decrements the entity's air supply when underwater

void net.minecraft.entity.EntityLiving.despawnEntity ( )
protected

Makes the entity despawn if requirements are reached

void net.minecraft.entity.EntityLiving.detachHome ( )
void net.minecraft.entity.EntityLiving.dropEquipment ( boolean  par1,
int  par2 
)
protected

Drop the equipment for this entity.

void net.minecraft.entity.EntityLiving.dropFewItems ( boolean  par1,
int  par2 
)
protected

Drop 0-2 items of this living's type.

Parameters
par1- Whether this entity has recently been hit by a player.
par2- Level of Looting used to kill this mob.
void net.minecraft.entity.EntityLiving.dropRareDrop ( int  par1)
protected
void net.minecraft.entity.EntityLiving.eatGrassBonus ( )

This function applies the benefits of growing back wool and faster growing up to the acting entity. (This function is used in the AIEatGrass)

void net.minecraft.entity.EntityLiving.faceEntity ( Entity  par1Entity,
float  par2,
float  par3 
)

Changes pitch and yaw so that the entity calling the function is facing the entity provided as an argument.

void net.minecraft.entity.EntityLiving.fall ( float  par1)
protected

Called when the mob is falling. Calculates and applies fall damage.

boolean net.minecraft.entity.EntityLiving.func_104002_bU ( )
int net.minecraft.entity.EntityLiving.func_82143_as ( )
void net.minecraft.entity.EntityLiving.func_82162_bC ( )
protected
void net.minecraft.entity.EntityLiving.func_85033_bc ( )
protected
boolean net.minecraft.entity.EntityLiving.func_94056_bM ( )
String net.minecraft.entity.EntityLiving.func_94057_bL ( )
void net.minecraft.entity.EntityLiving.func_94058_c ( String  par1Str)
boolean net.minecraft.entity.EntityLiving.func_94059_bO ( )
EntityLiving net.minecraft.entity.EntityLiving.func_94060_bK ( )
void net.minecraft.entity.EntityLiving.func_94061_f ( boolean  par1)
boolean net.minecraft.entity.EntityLiving.func_94062_bN ( )
void net.minecraft.entity.EntityLiving.func_96120_a ( int  par1,
float  par2 
)
int net.minecraft.entity.EntityLiving.func_96121_ay ( )
protected
PotionEffect net.minecraft.entity.EntityLiving.getActivePotionEffect ( Potion  par1Potion)

returns the PotionEffect for the supplied Potion if it is active, null otherwise.

Collection net.minecraft.entity.EntityLiving.getActivePotionEffects ( )
int net.minecraft.entity.EntityLiving.getAge ( )
float net.minecraft.entity.EntityLiving.getAIMoveSpeed ( )

the movespeed used for the new AI system

EntityLiving net.minecraft.entity.EntityLiving.getAITarget ( )
static Item net.minecraft.entity.EntityLiving.getArmorItemForSlot ( int  par0,
int  par1 
)
static

Params: Armor slot, Item tier

static int net.minecraft.entity.EntityLiving.getArmorPosition ( ItemStack  par0ItemStack)
static
final int net.minecraft.entity.EntityLiving.getArrowCountInEntity ( )

counts the amount of arrows stuck in the entity. getting hit by arrows increases this, used in rendering

EntityLiving net.minecraft.entity.EntityLiving.getAttackTarget ( )

Gets the active target the Task system uses for tracking

boolean net.minecraft.entity.EntityLiving.getCanSpawnHere ( )

Checks if the entity's current position is a valid location to spawn this entity.

EnumCreatureAttribute net.minecraft.entity.EntityLiving.getCreatureAttribute ( )
ItemStack net.minecraft.entity.EntityLiving.getCurrentArmor ( int  par1)
ItemStack net.minecraft.entity.EntityLiving.getCurrentItemOrArmor ( int  par1)

0 = item, 1-n is armor

String net.minecraft.entity.EntityLiving.getDeathSound ( )
protected

Returns the sound this mob makes on death.

int net.minecraft.entity.EntityLiving.getDropItemId ( )
protected

Returns the item ID for the item the mob drops on death.

String net.minecraft.entity.EntityLiving.getEntityName ( )

Gets the username of the entity.

EntitySenses net.minecraft.entity.EntityLiving.getEntitySenses ( )

returns the EntitySenses Object for the EntityLiving

int net.minecraft.entity.EntityLiving.getExperiencePoints ( EntityPlayer  par1EntityPlayer)
protected

Get the experience points the entity currently has.

float net.minecraft.entity.EntityLiving.getEyeHeight ( )
int net.minecraft.entity.EntityLiving.getHealth ( )
ItemStack net.minecraft.entity.EntityLiving.getHeldItem ( )

Returns the item that this EntityLiving is holding, if any.

ChunkCoordinates net.minecraft.entity.EntityLiving.getHomePosition ( )
String net.minecraft.entity.EntityLiving.getHurtSound ( )
protected

Returns the sound this mob makes when it is hurt.

Icon net.minecraft.entity.EntityLiving.getItemIcon ( ItemStack  par1ItemStack,
int  par2 
)

Gets the Icon Index of the item currently held

EntityJumpHelper net.minecraft.entity.EntityLiving.getJumpHelper ( )
ItemStack [] net.minecraft.entity.EntityLiving.getLastActiveItems ( )
EntityLiving net.minecraft.entity.EntityLiving.getLastAttackingEntity ( )
String net.minecraft.entity.EntityLiving.getLivingSound ( )
protected

Returns the sound this mob makes while it's alive.

Vec3 net.minecraft.entity.EntityLiving.getLook ( float  par1)

interpolated look vector

EntityLookHelper net.minecraft.entity.EntityLiving.getLookHelper ( )
Vec3 net.minecraft.entity.EntityLiving.getLookVec ( )

returns a (normalized) vector of where this entity is looking

float net.minecraft.entity.EntityLiving.getMaximumHomeDistance ( )
int net.minecraft.entity.EntityLiving.getMaxSpawnedInChunk ( )

Will return how many at most can spawn in a chunk at once.

EntityMoveHelper net.minecraft.entity.EntityLiving.getMoveHelper ( )
PathNavigate net.minecraft.entity.EntityLiving.getNavigator ( )
Vec3 net.minecraft.entity.EntityLiving.getPosition ( float  par1)

interpolated position vector

float net.minecraft.entity.EntityLiving.getRenderSizeModifier ( )

Returns render size modifier

Random net.minecraft.entity.EntityLiving.getRNG ( )
float net.minecraft.entity.EntityLiving.getRotationYawHead ( )
float net.minecraft.entity.EntityLiving.getSoundPitch ( )
protected

Gets the pitch of living sounds in living entities.

float net.minecraft.entity.EntityLiving.getSoundVolume ( )
protected

Returns the volume for the sounds this mob makes.

float net.minecraft.entity.EntityLiving.getSpeedModifier ( )

This method returns a value to be applied directly to entity speed, this factor is less than 1 when a slowdown potion effect is applied, more than 1 when a haste potion effect is applied and 2 for fleeing entities.

float net.minecraft.entity.EntityLiving.getSwingProgress ( float  par1)

Returns where in the swing animation the living entity is (from 0 to 1). Args: partialTickTime

int net.minecraft.entity.EntityLiving.getTalkInterval ( )

Get number of ticks, at least during which the living entity will be silent.

String net.minecraft.entity.EntityLiving.getTexture ( )

Returns the texture's file path as a String.

int net.minecraft.entity.EntityLiving.getTotalArmorValue ( )

Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue

int net.minecraft.entity.EntityLiving.getVerticalFaceSpeed ( )

The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.

void net.minecraft.entity.EntityLiving.handleHealthUpdate ( byte  par1)
boolean net.minecraft.entity.EntityLiving.hasHome ( )
void net.minecraft.entity.EntityLiving.heal ( int  par1)

Heal living entity (param: amount of half-hearts)

void net.minecraft.entity.EntityLiving.initCreature ( )

Initialize this creature.

boolean net.minecraft.entity.EntityLiving.isAIEnabled ( )
protected

Returns true if the newer Entity AI code should be run

boolean net.minecraft.entity.EntityLiving.isBlocking ( )
boolean net.minecraft.entity.EntityLiving.isChild ( )

If Animal, checks if the age timer is negative

boolean net.minecraft.entity.EntityLiving.isClientWorld ( )
protected

Returns whether the entity is in a local (client) world

boolean net.minecraft.entity.EntityLiving.isEntityAlive ( )

Checks whether target entity is alive.

boolean net.minecraft.entity.EntityLiving.isEntityUndead ( )

Returns true if this entity is undead.

boolean net.minecraft.entity.EntityLiving.isMovementBlocked ( )
protected

Dead and sleeping entities cannot move

boolean net.minecraft.entity.EntityLiving.isOnLadder ( )

returns true if this entity is by a ladder, false otherwise

boolean net.minecraft.entity.EntityLiving.isPlayer ( )
protected

Only use is to identify if class is an instance of player for experience dropping

boolean net.minecraft.entity.EntityLiving.isPlayerSleeping ( )

Returns whether player is sleeping or not

boolean net.minecraft.entity.EntityLiving.isPotionActive ( int  par1)
boolean net.minecraft.entity.EntityLiving.isPotionActive ( Potion  par1Potion)
boolean net.minecraft.entity.EntityLiving.isPotionApplicable ( PotionEffect  par1PotionEffect)
boolean net.minecraft.entity.EntityLiving.isWithinHomeDistance ( int  par1,
int  par2,
int  par3 
)
boolean net.minecraft.entity.EntityLiving.isWithinHomeDistanceCurrentPosition ( )

Returns true if entity is within home distance from current position

void net.minecraft.entity.EntityLiving.jump ( )
protected

Causes this entity to do an upwards motion (jumping).

void net.minecraft.entity.EntityLiving.kill ( )
protected

sets the dead flag. Used when you fall off the bottom of the world.

void net.minecraft.entity.EntityLiving.knockBack ( Entity  par1Entity,
int  par2,
double  par3,
double  par5 
)

knocks back this entity

void net.minecraft.entity.EntityLiving.moveEntityWithHeading ( float  par1,
float  par2 
)

Moves the entity based on the specified heading. Args: strafe, forward

void net.minecraft.entity.EntityLiving.onChangedPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.EntityLiving.onDeath ( DamageSource  par1DamageSource)

Called when the mob's health reaches 0.

void net.minecraft.entity.EntityLiving.onDeathUpdate ( )
protected

handles entity death timer, experience orb and particle creation

void net.minecraft.entity.EntityLiving.onEntityUpdate ( )

Gets called every tick from main Entity class

void net.minecraft.entity.EntityLiving.onFinishedPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.EntityLiving.onItemPickup ( Entity  par1Entity,
int  par2 
)

Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize

void net.minecraft.entity.EntityLiving.onLivingUpdate ( )

Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.

void net.minecraft.entity.EntityLiving.onNewPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.EntityLiving.onUpdate ( )

Called to update the entity's position/logic.

void net.minecraft.entity.EntityLiving.performHurtAnimation ( )

Setups the entity to do the hurt animation. Only used by packets in multiplayer.

void net.minecraft.entity.EntityLiving.playLivingSound ( )

Plays living's sound at its position

MovingObjectPosition net.minecraft.entity.EntityLiving.rayTrace ( double  par1,
float  par3 
)

Performs a ray trace for the distance specified and using the partial tick time. Args: distance, partialTickTime

void net.minecraft.entity.EntityLiving.removePotionEffect ( int  par1)

Remove the specified potion effect from this entity.

void net.minecraft.entity.EntityLiving.removePotionEffectClient ( int  par1)

Remove the speified potion effect from this entity.

void net.minecraft.entity.EntityLiving.renderBrokenItemStack ( ItemStack  par1ItemStack)

Renders broken item particles using the given ItemStack

void net.minecraft.entity.EntityLiving.setAIMoveSpeed ( float  par1)

set the movespeed used for the new AI system

final void net.minecraft.entity.EntityLiving.setArrowCountInEntity ( int  par1)

sets the amount of arrows stuck in the entity. used for rendering those

void net.minecraft.entity.EntityLiving.setAttackTarget ( EntityLiving  par1EntityLiving)

Sets the active target the Task system uses for tracking

void net.minecraft.entity.EntityLiving.setCanPickUpLoot ( boolean  par1)
void net.minecraft.entity.EntityLiving.setCurrentItemOrArmor ( int  par1,
ItemStack  par2ItemStack 
)

Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot

void net.minecraft.entity.EntityLiving.setEntityHealth ( int  par1)
void net.minecraft.entity.EntityLiving.setHomeArea ( int  par1,
int  par2,
int  par3,
int  par4 
)
void net.minecraft.entity.EntityLiving.setJumping ( boolean  par1)
void net.minecraft.entity.EntityLiving.setLastAttackingEntity ( Entity  par1Entity)
void net.minecraft.entity.EntityLiving.setMoveForward ( float  par1)
void net.minecraft.entity.EntityLiving.setPositionAndRotation2 ( double  par1,
double  par3,
double  par5,
float  par7,
float  par8,
int  par9 
)

Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX, posY, posZ, yaw, pitch

void net.minecraft.entity.EntityLiving.setPositionAndUpdate ( double  par1,
double  par3,
double  par5 
)

Move the entity to the coordinates informed, but keep yaw/pitch values.

void net.minecraft.entity.EntityLiving.setRevengeTarget ( EntityLiving  par1EntityLiving)
void net.minecraft.entity.EntityLiving.setRotationYawHead ( float  par1)

Sets the head's yaw rotation of the entity.

boolean net.minecraft.entity.EntityLiving.shouldRiderFaceForward ( EntityPlayer  player)

Returns true if the entity's rider (EntityPlayer) should face forward when mounted. currently only used in vanilla code by pigs.

Parameters
playerThe player who is riding the entity.
Returns
If the player should orient the same direction as this entity.
void net.minecraft.entity.EntityLiving.spawnExplosionParticle ( )

Spawns an explosion particle around the Entity's location

void net.minecraft.entity.EntityLiving.swingItem ( )

Swings the item the player is holding.

void net.minecraft.entity.EntityLiving.updateAITasks ( )
protected
void net.minecraft.entity.EntityLiving.updateAITick ( )
protected

main AI tick function, replaces updateEntityActionState

void net.minecraft.entity.EntityLiving.updateArmSwingProgress ( )
protected

Updates the arm swing progress counters and animation progress

void net.minecraft.entity.EntityLiving.updateEntityActionState ( )
protected
void net.minecraft.entity.EntityLiving.updateFallState ( double  par1,
boolean  par3 
)
protected

Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance and deal fall damage if landing on the ground. Args: distanceFallenThisTick, onGround

void net.minecraft.entity.EntityLiving.updatePotionEffects ( )
protected
void net.minecraft.entity.EntityLiving.updateRidden ( )

Handles updating while being ridden by an entity

Member Data Documentation

HashMap net.minecraft.entity.EntityLiving.activePotionsMap = new HashMap()
protected
int net.minecraft.entity.EntityLiving.arrowHitTimer = 0
float net.minecraft.entity.EntityLiving.attackedAtYaw = 0.0F

The yaw at which this entity was last attacked from.

EntityPlayer net.minecraft.entity.EntityLiving.attackingPlayer = null
protected

The most recent player that has attacked this entity

int net.minecraft.entity.EntityLiving.attackTime = 0
float net.minecraft.entity.EntityLiving.cameraPitch
int net.minecraft.entity.EntityLiving.carryoverDamage

in each step in the damage calculations, this is set to the 'carryover' that would result if someone was damaged .25 hearts (for example), and added to the damage in the next step

boolean net.minecraft.entity.EntityLiving.dead = false
protected

This gets set on entity death, but never used. Looks like a duplicate of isDead

int net.minecraft.entity.EntityLiving.deathTime = 0

The amount of time remaining this entity should act 'dead', i.e. have a corpse in the world.

float net.minecraft.entity.EntityLiving.defaultPitch = 0.0F
protected
int net.minecraft.entity.EntityLiving.entityAge = 0
protected

Holds the living entity age, used to control the despawn.

String net.minecraft.entity.EntityLiving.entityType = null
protected

a string holding the type of entity it is currently only implemented in entityPlayer(as 'humanoid')

float [] net.minecraft.entity.EntityLiving.equipmentDropChances = new float[5]
protected

Chances for each equipment piece from dropping when this entity dies.

int net.minecraft.entity.EntityLiving.experienceValue

The experience points the Entity gives.

float net.minecraft.entity.EntityLiving.field_70730_aX = (float)(Math.random() * 0.8999999761581421D + 0.10000000149011612D)
int net.minecraft.entity.EntityLiving.field_70731_aW = -1
boolean net.minecraft.entity.EntityLiving.field_70740_aA = true
protected
float net.minecraft.entity.EntityLiving.field_70741_aB = 0.0F
protected
float net.minecraft.entity.EntityLiving.field_70743_aD = 1.0F
protected
float net.minecraft.entity.EntityLiving.field_70745_aF = 0.0F
protected
boolean net.minecraft.entity.EntityLiving.field_70753_ay = true
protected
float net.minecraft.entity.EntityLiving.field_70763_ax
protected
float net.minecraft.entity.EntityLiving.field_70764_aw
protected
float net.minecraft.entity.EntityLiving.field_70766_av
protected
float net.minecraft.entity.EntityLiving.field_70768_au
protected
float net.minecraft.entity.EntityLiving.field_70769_ao
float net.minecraft.entity.EntityLiving.field_70770_ap
final CombatTracker net.minecraft.entity.EntityLiving.field_94063_bt = new CombatTracker(this)
int net.minecraft.entity.EntityLiving.health = this.getMaxHealth()
protected
int net.minecraft.entity.EntityLiving.hurtTime

The amount of time remaining this entity should act 'hurt'. (Visual appearance of red tint)

boolean net.minecraft.entity.EntityLiving.isJumping = false

used to check whether entity is jumping.

boolean net.minecraft.entity.EntityLiving.isSwingInProgress = false

Whether an arm swing is currently in progress.

float net.minecraft.entity.EntityLiving.jumpMovementFactor = 0.02F

A factor used to determine how far this entity will move each tick if it is jumping or falling.

float net.minecraft.entity.EntityLiving.landMovementFactor = 0.1F

A factor used to determine how far this entity will move each tick if it is walking on land. Adjusted by speed, and slipperiness of the current block.

int net.minecraft.entity.EntityLiving.lastDamage = 0
protected

Amount of damage taken in last hit, in half-hearts

float net.minecraft.entity.EntityLiving.limbSwing

Only relevant when limbYaw is not 0(the entity is moving). Influences where in its swing legs and arms currently are.

float net.minecraft.entity.EntityLiving.limbYaw
int net.minecraft.entity.EntityLiving.livingSoundTime

Number of ticks since this EntityLiving last produced its sound

int net.minecraft.entity.EntityLiving.maxHurtResistantTime = 20
int net.minecraft.entity.EntityLiving.maxHurtTime

What the hurt time was max set to last.

float net.minecraft.entity.EntityLiving.moveForward
protected
float net.minecraft.entity.EntityLiving.moveSpeed = 0.7F
protected
float net.minecraft.entity.EntityLiving.moveStrafing
protected
int net.minecraft.entity.EntityLiving.newPosRotationIncrements
protected

The number of updates over which the new position and rotation are to be applied to the entity.

double net.minecraft.entity.EntityLiving.newPosX
protected

The new X position to be applied to the entity.

double net.minecraft.entity.EntityLiving.newPosY
protected

The new Y position to be applied to the entity.

double net.minecraft.entity.EntityLiving.newPosZ
protected

The new Z position to be applied to the entity.

double net.minecraft.entity.EntityLiving.newRotationPitch
protected

The new yaw rotation to be applied to the entity.

double net.minecraft.entity.EntityLiving.newRotationYaw
protected

The new yaw rotation to be applied to the entity.

int net.minecraft.entity.EntityLiving.numTicksToChaseTarget = 0
protected

How long to keep a specific target entity

final float [] net.minecraft.entity.EntityLiving.pickUpLootProability = new float[] {0.0F, 0.1F, 0.15F, 0.45F}
static

Probability to pick up loot

float net.minecraft.entity.EntityLiving.prevCameraPitch
int net.minecraft.entity.EntityLiving.prevHealth
float net.minecraft.entity.EntityLiving.prevLimbYaw
float net.minecraft.entity.EntityLiving.prevRenderYawOffset = 0.0F
float net.minecraft.entity.EntityLiving.prevRotationYawHead = 0.0F

Entity head rotation yaw at previous tick

float net.minecraft.entity.EntityLiving.prevSwingProgress
float net.minecraft.entity.EntityLiving.randomYawVelocity
protected
int net.minecraft.entity.EntityLiving.recentlyHit = 0
protected

Set to 60 when hit by the player or the player's wolf, then decrements. Used to determine whether the entity should drop items on death.

float net.minecraft.entity.EntityLiving.renderYawOffset = 0.0F
float net.minecraft.entity.EntityLiving.rotationYawHead = 0.0F

Entity head rotation yaw

int net.minecraft.entity.EntityLiving.scoreValue = 0
protected

The score value of the Mob, the amount of points the mob is worth.

float net.minecraft.entity.EntityLiving.swingProgress
int net.minecraft.entity.EntityLiving.swingProgressInt = 0
final EntityAITasks net.minecraft.entity.EntityLiving.targetTasks
final EntityAITasks net.minecraft.entity.EntityLiving.tasks
String net.minecraft.entity.EntityLiving.texture = "/mob/char.png"
protected

the path for the texture of this entityLiving


The documentation for this class was generated from the following file: