public abstract class EntityLiving extends EntityLivingBase
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityLiving.SpawnPlacementType |
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
equipmentDropChances |
protected int |
experienceValue |
protected EntityJumpHelper |
jumpHelper |
int |
livingSoundTime |
protected EntityMoveHelper |
moveHelper |
protected PathNavigate |
navigator |
EntityAITasks |
targetTasks |
EntityAITasks |
tasks |
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, 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 |
|---|
EntityLiving(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLeashing() |
protected void |
applyEntityAttributes() |
boolean |
canAttackClass(java.lang.Class p_70686_1_) |
boolean |
canBeSteered() |
protected boolean |
canDespawn() |
boolean |
canPickUpLoot() |
void |
clearLeashed(boolean p_110160_1_,
boolean p_110160_2_) |
protected void |
despawnEntity() |
protected void |
dropEquipment(boolean p_82160_1_,
int p_82160_2_) |
protected void |
dropFewItems(boolean p_70628_1_,
int p_70628_2_) |
void |
eatGrassBonus() |
void |
enablePersistence() |
protected void |
entityInit() |
void |
faceEntity(Entity p_70625_1_,
float p_70625_2_,
float p_70625_3_) |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
protected void |
func_175445_a(EntityItem p_175445_1_) |
protected PathNavigate |
func_175447_b(World worldIn) |
protected boolean |
func_175448_a(ItemStack p_175448_1_) |
protected void |
func_180481_a(DifficultyInstance p_180481_1_) |
IEntityLivingData |
func_180482_a(DifficultyInstance p_180482_1_,
IEntityLivingData p_180482_2_) |
protected void |
func_180483_b(DifficultyInstance p_180483_1_) |
static Item |
getArmorItemForSlot(int armorSlot,
int itemTier) |
static int |
getArmorPosition(ItemStack p_82159_0_) |
EntityLivingBase |
getAttackTarget() |
boolean |
getCanSpawnHere() |
ItemStack |
getCurrentArmor(int slotIn) |
protected Item |
getDropItem() |
EntitySenses |
getEntitySenses() |
ItemStack |
getEquipmentInSlot(int slotIn) |
protected int |
getExperiencePoints(EntityPlayer player) |
ItemStack |
getHeldItem() |
ItemStack[] |
getInventory() |
EntityJumpHelper |
getJumpHelper() |
boolean |
getLeashed() |
Entity |
getLeashedToEntity() |
protected java.lang.String |
getLivingSound() |
EntityLookHelper |
getLookHelper() |
int |
getMaxFallHeight() |
int |
getMaxSpawnedInChunk() |
EntityMoveHelper |
getMoveHelper() |
PathNavigate |
getNavigator() |
float |
getRenderSizeModifier() |
int |
getTalkInterval() |
int |
getVerticalFaceSpeed() |
void |
handleHealthUpdate(byte p_70103_1_) |
boolean |
handleLavaMovement() |
protected boolean |
interact(EntityPlayer player) |
boolean |
interactFirst(EntityPlayer playerIn) |
boolean |
isNoDespawnRequired() |
boolean |
isServerWorld() |
void |
onEntityUpdate() |
void |
onLivingUpdate() |
void |
onUpdate() |
void |
playLivingSound() |
void |
readEntityFromNBT(NBTTagCompound tagCompund) |
boolean |
replaceItemInInventory(int p_174820_1_,
ItemStack p_174820_2_) |
void |
setAIMoveSpeed(float p_70659_1_) |
void |
setAttackTarget(EntityLivingBase p_70624_1_) |
void |
setCanPickUpLoot(boolean p_98053_1_) |
void |
setCurrentItemOrArmor(int slotIn,
ItemStack stack) |
void |
setEquipmentDropChance(int p_96120_1_,
float p_96120_2_) |
void |
setLeashedToEntity(Entity entityIn,
boolean sendAttachNotification) |
void |
setMoveForward(float p_70657_1_) |
protected void |
setNoAI(boolean p_94061_1_) |
void |
spawnExplosionParticle() |
protected void |
updateAITasks() |
protected void |
updateEntityActionState() |
protected void |
updateLeashedState() |
void |
writeEntityToNBT(NBTTagCompound tagCompound) |
addPotionEffect, addRandomArmor, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, attackEntityFrom, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_146066_aG, func_152111_bt, func_152112_bu, func_175133_bi, func_175134_bD, func_175135_B, func_175136_bO, func_180426_a, func_180433_a, func_180466_bG, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getDeathSound, getEntityAttribute, getFallSoundString, getHealth, getHurtSound, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updatePotionEffects, updateRiddenaddChatMessage, 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, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, 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, 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, writeToNBTOptionalpublic int livingSoundTime
protected int experienceValue
protected EntityMoveHelper moveHelper
protected EntityJumpHelper jumpHelper
protected PathNavigate navigator
public final EntityAITasks tasks
public final EntityAITasks targetTasks
protected float[] equipmentDropChances
public EntityLiving(World worldIn)
protected void applyEntityAttributes()
applyEntityAttributes in class EntityLivingBaseprotected PathNavigate func_175447_b(World worldIn)
public EntityLookHelper getLookHelper()
public EntityMoveHelper getMoveHelper()
public EntityJumpHelper getJumpHelper()
public PathNavigate getNavigator()
public EntitySenses getEntitySenses()
public EntityLivingBase getAttackTarget()
public void setAttackTarget(EntityLivingBase p_70624_1_)
public boolean canAttackClass(java.lang.Class p_70686_1_)
public void eatGrassBonus()
protected void entityInit()
entityInit in class EntityLivingBasepublic int getTalkInterval()
public void playLivingSound()
public void onEntityUpdate()
onEntityUpdate in class EntityLivingBaseprotected int getExperiencePoints(EntityPlayer player)
getExperiencePoints in class EntityLivingBasepublic void spawnExplosionParticle()
public void handleHealthUpdate(byte p_70103_1_)
handleHealthUpdate in class EntityLivingBasepublic void onUpdate()
onUpdate in class EntityLivingBaseprotected float func_110146_f(float p_110146_1_,
float p_110146_2_)
func_110146_f in class EntityLivingBaseprotected java.lang.String getLivingSound()
protected Item getDropItem()
protected void dropFewItems(boolean p_70628_1_,
int p_70628_2_)
dropFewItems in class EntityLivingBasepublic void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityLivingBasepublic void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityLivingBasepublic void setMoveForward(float p_70657_1_)
public void setAIMoveSpeed(float p_70659_1_)
setAIMoveSpeed in class EntityLivingBasepublic void onLivingUpdate()
onLivingUpdate in class EntityLivingBaseprotected void func_175445_a(EntityItem p_175445_1_)
protected boolean func_175448_a(ItemStack p_175448_1_)
protected boolean canDespawn()
protected void despawnEntity()
protected final void updateEntityActionState()
updateEntityActionState in class EntityLivingBaseprotected void updateAITasks()
public int getVerticalFaceSpeed()
public void faceEntity(Entity p_70625_1_, float p_70625_2_, float p_70625_3_)
public boolean getCanSpawnHere()
public boolean handleLavaMovement()
public float getRenderSizeModifier()
public int getMaxSpawnedInChunk()
public int getMaxFallHeight()
getMaxFallHeight in class Entitypublic ItemStack getHeldItem()
getHeldItem in class EntityLivingBasepublic ItemStack getEquipmentInSlot(int slotIn)
getEquipmentInSlot in class EntityLivingBasepublic ItemStack getCurrentArmor(int slotIn)
getCurrentArmor in class EntityLivingBasepublic void setCurrentItemOrArmor(int slotIn,
ItemStack stack)
setCurrentItemOrArmor in class EntityLivingBasepublic ItemStack[] getInventory()
getInventory in class EntityLivingBaseprotected void dropEquipment(boolean p_82160_1_,
int p_82160_2_)
dropEquipment in class EntityLivingBaseprotected void func_180481_a(DifficultyInstance p_180481_1_)
public static int getArmorPosition(ItemStack p_82159_0_)
public static Item getArmorItemForSlot(int armorSlot, int itemTier)
protected void func_180483_b(DifficultyInstance p_180483_1_)
public IEntityLivingData func_180482_a(DifficultyInstance p_180482_1_, IEntityLivingData p_180482_2_)
public boolean canBeSteered()
public void enablePersistence()
public void setEquipmentDropChance(int p_96120_1_,
float p_96120_2_)
public boolean canPickUpLoot()
public void setCanPickUpLoot(boolean p_98053_1_)
public boolean isNoDespawnRequired()
public final boolean interactFirst(EntityPlayer playerIn)
interactFirst in class Entityprotected boolean interact(EntityPlayer player)
protected void updateLeashedState()
public void clearLeashed(boolean p_110160_1_,
boolean p_110160_2_)
public boolean allowLeashing()
public boolean getLeashed()
public Entity getLeashedToEntity()
public void setLeashedToEntity(Entity entityIn, boolean sendAttachNotification)
public boolean replaceItemInInventory(int p_174820_1_,
ItemStack p_174820_2_)
replaceItemInInventory in class Entitypublic boolean isServerWorld()
isServerWorld in class EntityLivingBaseprotected void setNoAI(boolean p_94061_1_)