public abstract class EntityLiving extends EntityLivingBase
Modifier and Type | Field and Description |
---|---|
int |
experienceValue
The experience points the Entity gives.
|
int |
livingSoundTime
Number of ticks since this EntityLiving last produced its sound
|
EntityAITasks |
targetTasks |
EntityAITasks |
tasks |
arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, deathTime, field_110158_av, field_70769_ao, field_70770_ap, hurtTime, isSwingInProgress, jumpMovementFactor, limbSwing, limbYaw, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, prevCameraPitch, prevHealth, prevLimbYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_98038_p, fireResistance, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntityLiving(World par1World) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAttackClass(Class par1Class)
Returns true if this entity can attack entities of the specified class.
|
boolean |
canBeSteered()
returns true if all the conditions for steering the entity are met.
|
boolean |
canPickUpLoot() |
void |
eatGrassBonus()
This function applies the benefits of growing back wool and faster growing up to the acting entity.
|
void |
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.
|
boolean |
func_104002_bU() |
void |
func_110160_i(boolean par1) |
EntityLivingData |
func_110161_a(EntityLivingData par1EntityLivingData) |
void |
func_110162_b(Entity par1Entity,
boolean par2) |
void |
func_110163_bv() |
boolean |
func_110164_bC() |
Entity |
func_110166_bE() |
boolean |
func_110167_bD() |
boolean |
func_130002_c(EntityPlayer par1EntityPlayer) |
int |
func_82143_as() |
boolean |
func_94056_bM() |
String |
func_94057_bL() |
void |
func_94058_c(String par1Str) |
boolean |
func_94059_bO() |
void |
func_94061_f(boolean par1) |
boolean |
func_94062_bN() |
void |
func_96120_a(int par1,
float par2) |
static Item |
getArmorItemForSlot(int par0,
int par1)
Params: Armor slot, Item tier
|
static int |
getArmorPosition(ItemStack par0ItemStack) |
EntityLivingBase |
getAttackTarget()
Gets the active target the Task system uses for tracking
|
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity.
|
ItemStack |
getCurrentArmor(int par1) |
ItemStack |
getCurrentItemOrArmor(int par1)
0 = item, 1-n is armor
|
String |
getEntityName()
Gets the username of the entity.
|
EntitySenses |
getEntitySenses()
returns the EntitySenses Object for the EntityLiving
|
ItemStack |
getHeldItem()
Returns the item that this EntityLiving is holding, if any.
|
EntityJumpHelper |
getJumpHelper() |
ItemStack[] |
getLastActiveItems() |
EntityLookHelper |
getLookHelper() |
int |
getMaxSpawnedInChunk()
Will return how many at most can spawn in a chunk at once.
|
EntityMoveHelper |
getMoveHelper() |
PathNavigate |
getNavigator() |
float |
getRenderSizeModifier()
Returns render size modifier
|
int |
getTalkInterval()
Get number of ticks, at least during which the living entity will be silent.
|
int |
getVerticalFaceSpeed()
The speed it takes to move the entityliving's rotationPitch through the faceEntity method.
|
void |
onEntityUpdate()
Gets called every tick from main Entity class
|
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 |
playLivingSound()
Plays living's sound at its position
|
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setAIMoveSpeed(float par1)
set the movespeed used for the new AI system
|
void |
setAttackTarget(EntityLivingBase par1EntityLivingBase)
Sets the active target the Task system uses for tracking
|
void |
setCanPickUpLoot(boolean par1) |
void |
setCurrentItemOrArmor(int par1,
ItemStack par2ItemStack)
Sets the held item, or an armor slot.
|
void |
setMoveForward(float par1) |
void |
spawnExplosionParticle()
Spawns an explosion particle around the Entity's location
|
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addPotionEffect, attackEntityAsMob, attackEntityFrom, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, func_110138_aP, func_110139_bj, func_110140_aT, func_110142_aN, func_110143_aJ, func_110144_aD, func_110145_l, func_110148_a, func_110149_m, func_130011_c, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArrowCountInEntity, getCreatureAttribute, getEyeHeight, getItemIcon, getLook, getLookVec, getPosition, getRNG, getRotationYawHead, getSwingProgress, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, knockBack, moveEntityWithHeading, onDeath, onItemPickup, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setArrowCountInEntity, setEntityHealth, setJumping, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateRidden
addEntityID, addNotRiddenEntityID, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_110123_P, func_110124_au, func_82146_a, func_82149_j, func_85029_a, func_85031_j, func_96091_a, func_96092_aw, func_98034_c, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getShadowSize, getTeleportDirection, getTranslatedEntityName, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setDead, setEating, setFire, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, updateRiderPosition, writeToNBT
public int livingSoundTime
public int experienceValue
public final EntityAITasks tasks
public final EntityAITasks targetTasks
public EntityLiving(World par1World)
public EntityLookHelper getLookHelper()
public EntityMoveHelper getMoveHelper()
public EntityJumpHelper getJumpHelper()
public PathNavigate getNavigator()
public EntitySenses getEntitySenses()
public EntityLivingBase getAttackTarget()
public void setAttackTarget(EntityLivingBase par1EntityLivingBase)
public boolean canAttackClass(Class par1Class)
public void eatGrassBonus()
public int getTalkInterval()
public void playLivingSound()
public void onEntityUpdate()
onEntityUpdate
in class EntityLivingBase
public void spawnExplosionParticle()
public void onUpdate()
onUpdate
in class EntityLivingBase
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityLivingBase
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityLivingBase
public void setMoveForward(float par1)
public void setAIMoveSpeed(float par1)
setAIMoveSpeed
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityLivingBase
public int getVerticalFaceSpeed()
public void faceEntity(Entity par1Entity, float par2, float par3)
public boolean getCanSpawnHere()
public float getRenderSizeModifier()
public int getMaxSpawnedInChunk()
public int func_82143_as()
func_82143_as
in class Entity
public ItemStack getHeldItem()
getHeldItem
in class EntityLivingBase
public ItemStack getCurrentItemOrArmor(int par1)
getCurrentItemOrArmor
in class EntityLivingBase
public ItemStack getCurrentArmor(int par1)
public void setCurrentItemOrArmor(int par1, ItemStack par2ItemStack)
setCurrentItemOrArmor
in class EntityLivingBase
public ItemStack[] getLastActiveItems()
getLastActiveItems
in class EntityLivingBase
public static int getArmorPosition(ItemStack par0ItemStack)
public static Item getArmorItemForSlot(int par0, int par1)
public EntityLivingData func_110161_a(EntityLivingData par1EntityLivingData)
public boolean canBeSteered()
public String getEntityName()
getEntityName
in class Entity
public void func_110163_bv()
public void func_94058_c(String par1Str)
public String func_94057_bL()
public boolean func_94056_bM()
public void func_94061_f(boolean par1)
public boolean func_94062_bN()
public boolean func_94059_bO()
func_94059_bO
in class EntityLivingBase
public void func_96120_a(int par1, float par2)
public boolean canPickUpLoot()
public void setCanPickUpLoot(boolean par1)
public boolean func_104002_bU()
public final boolean func_130002_c(EntityPlayer par1EntityPlayer)
func_130002_c
in class Entity
public void func_110160_i(boolean par1)
public boolean func_110164_bC()
public boolean func_110167_bD()
public Entity func_110166_bE()
public void func_110162_b(Entity par1Entity, boolean par2)