Package net.minecraft.world.entity
Class LivingEntity
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- net.minecraft.world.entity.LivingEntity
-
-
Field Summary
Fields Modifier and Type Field Description it.unimi.dsi.fastutil.ints.Int2ObjectMap<PotionEffect>
activePotionsMap
int
arrowHitTempCounter
int
arrowHitTimer
float
attackedAtYaw
protected Player
attackingPlayer
int
attackTime
float
cameraPitch
protected int
carryoverDamage
protected boolean
dead
int
deathTime
protected float
defaultPitch
protected int
entityAge
protected java.lang.String
entityType
protected int
experienceValue
float
field_703_S
float
field_704_R
float
field_705_Q
float
field_9325_U
int
field_9326_T
protected float
field_9345_F
protected float
field_9349_D
protected float
field_9353_B
protected boolean
field_9355_A
protected boolean
field_9358_y
protected float
field_9359_x
protected float
field_9360_w
protected float
field_9361_v
protected float
field_9362_u
float
field_9363_r
float
field_9365_p
int
health
int
heartsHalvesLife
int
hurtTime
protected boolean
isJumping
float
jumpMovementFactor
float
landMovementFactor
int
maxHurtTime
protected float
moveForward
protected float
moveSpeed
protected float
moveStrafing
protected int
naturalArmorRating
protected int
newPosRotationIncrements
protected double
newPosX
protected double
newPosY
protected double
newPosZ
protected double
newRotationPitch
protected double
newRotationYaw
protected int
numTicksToChaseTarget
float
prevCameraPitch
int
prevHealth
float
prevRenderYawOffset
float
prevRotationYawHead
float
prevSwingProgress
protected float
randomYawVelocity
protected int
recentlyHit
float
renderYawOffset
float
rotationYawHead
protected int
scoreValue
float
swingProgress
protected EntityAITasks
targetTasks
protected EntityAITasks
tasks
protected java.lang.String
texture
-
Fields inherited from class net.minecraft.world.entity.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, isJesusColliding, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, playerNameForSkin, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, slim, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
-
-
Constructor Summary
Constructors Constructor Description LivingEntity(World var1)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPotionEffect(PotionEffect var1)
protected int
applyArmorCalculations(DamageSource var1, int var2)
protected int
applyPotionDamageCalculations(DamageSource var1, int var2)
boolean
attackEntityAsMob(Entity var1)
boolean
attackEntityFrom(DamageSource var1, int var2)
boolean
canBeCollidedWith()
boolean
canBePushed()
boolean
canBreatheUnderwater()
protected boolean
canDespawn()
boolean
canEntityBeSeen(Entity var1)
void
clearActivePotions()
protected void
damageArmor(int i)
protected void
damageEntity(DamageSource var1, int var2)
protected int
decreaseAirSupply(int var1)
protected void
despawnEntity()
void
detachHome()
protected void
dropFewItems(boolean var1, int var2)
protected void
dropRareDrop(int i)
void
eatGrassBonus()
protected void
entityInit()
void
faceEntity(Entity var1, float var2, float var3)
protected void
fall(float var1)
void
func_48079_f(float var1)
EntitySenses
func_48090_aM()
void
func_48098_g(float var1)
boolean
func_48100_a(java.lang.Class var1)
float
func_48101_aR()
PotionEffect
getActivePotionEffect(Potion var1)
java.util.Collection<PotionEffect>
getActivePotionEffects()
int
getAge()
LivingEntity
getAITarget()
LivingEntity
getAttackTarget()
boolean
getCanSpawnHere()
EnumCreatureAttribute
getCreatureAttribute()
protected java.lang.String
getDeathSound()
protected int
getDropItemId()
int
getEffectiveHealth()
protected int
getExperiencePoints(Player var1)
float
getEyeHeight()
float
getHeadYaw()
int
getHealth()
@Client ItemStack
getHeldItem()
ChunkCoordinates
getHomePosition()
protected java.lang.String
getHurtSound()
@net.minecraft.modding.api.Side.Client int
getItemIcon(ItemStack var1, int var2)
EntityJumpHelper
getJumpHelper()
LivingEntity
getLastAttackingEntity()
protected java.lang.String
getLivingSound()
Vec3D
getLook(float var1)
EntityLookHelper
getLookHelper()
Vec3D
getLookVec()
abstract int
getMaxHealth()
float
getMaximumHomeDistance()
int
getMaxSpawnedInChunk()
EntityMoveHelper
getMoveHelper()
PathNavigate
getNavigator()
@Client Vec3D
getPosition(float var1)
@net.minecraft.modding.api.Side.Client float
getRenderSizeModifier()
java.util.Random
getRNG()
protected float
getSoundVolume()
protected float
getSpeedModifier()
@net.minecraft.modding.api.Side.Client float
getSwingProgress(float var1)
int
getTalkInterval()
@Client java.lang.String
getTexture()
int
getTotalArmorValue()
int
getVerticalFaceSpeed()
void
handleHealthUpdate(byte var1)
boolean
hasHome()
void
heal(int var1)
protected boolean
isAIEnabled()
boolean
isBlocking()
boolean
isChild()
protected boolean
isClientWorld()
boolean
isEntityAlive()
boolean
isEntityUndead()
protected boolean
isMovementBlocked()
boolean
isOnLadder()
protected boolean
isPlayer()
boolean
isPlayerSleeping()
boolean
isPotionActive(Potion var1)
boolean
isPotionApplicable(PotionEffect var1)
boolean
isWithinHomeDistance(int var1, int var2, int var3)
boolean
isWithinHomeDistanceCurrentPosition()
protected void
jump()
protected void
kill()
void
knockBack(Entity var1, int var2, double var3, double var5)
void
moveEntityWithHeading(float var1, float var2)
protected void
onChangedPotionEffect(PotionEffect var1)
void
onDeath(DamageSource var1)
protected void
onDeathUpdate()
void
onEntityDeath()
void
onEntityUpdate()
protected void
onFinishedPotionEffect(PotionEffect var1)
void
onLivingUpdate()
protected void
onNewPotionEffect(PotionEffect var1)
void
onUpdate()
void
performHurtAnimation()
void
playLivingSound()
@Client MovingObjectPosition
rayTrace(double var1, float var3)
void
readEntityFromNBT(NBTTagCompound var1)
void
removePotionEffect(int var1)
void
renderBrokenItemStack(ItemStack var1)
void
setAttackTarget(LivingEntity var1)
void
setEntityHealth(int var1)
void
setHomeArea(int var1, int var2, int var3, int var4)
void
setJumping(boolean var1)
void
setLastAttackingEntity(Entity var1)
void
setMoveForward(float var1)
void
setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
void
setPositionAndUpdate(double var1, double var3, double var5)
void
setRevengeTarget(LivingEntity var1)
protected void
setSize(float var1, float var2)
void
spawnExplosionParticle()
protected void
updateAITasks()
protected void
updateAITick()
protected void
updateEntityActionState()
protected void
updatePotionEffects()
void
updateRidden()
void
writeEntityToNBT(NBTTagCompound var1)
-
Methods inherited from class net.minecraft.world.entity.Entity
addEntityID, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canTriggerWalking, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCurrentBiomeName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getInventory, getMountedYOffset, getParts, getShadowSize, getUsername, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isSubmergedInAnyFluid, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onKillEntity, onStruckByLightning, outfitWithItem, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setDead, setEating, setFire, setFlag, setInPortal, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setSprinting, setVelocity, setWorld, toString, updateFallState, updateRiderPosition, writeToNBT
-
-
-
-
Field Detail
-
heartsHalvesLife
public int heartsHalvesLife
-
field_9365_p
public float field_9365_p
-
field_9363_r
public float field_9363_r
-
renderYawOffset
public float renderYawOffset
-
prevRenderYawOffset
public float prevRenderYawOffset
-
rotationYawHead
public float rotationYawHead
-
prevRotationYawHead
public float prevRotationYawHead
-
field_9362_u
protected float field_9362_u
-
field_9361_v
protected float field_9361_v
-
field_9360_w
protected float field_9360_w
-
field_9359_x
protected float field_9359_x
-
field_9358_y
protected boolean field_9358_y
-
texture
protected java.lang.String texture
-
field_9355_A
protected boolean field_9355_A
-
field_9353_B
protected float field_9353_B
-
entityType
protected java.lang.String entityType
-
field_9349_D
protected float field_9349_D
-
scoreValue
protected int scoreValue
-
field_9345_F
protected float field_9345_F
-
landMovementFactor
public float landMovementFactor
-
jumpMovementFactor
public float jumpMovementFactor
-
prevSwingProgress
public float prevSwingProgress
-
swingProgress
public float swingProgress
-
health
public int health
-
prevHealth
public int prevHealth
-
carryoverDamage
protected int carryoverDamage
-
hurtTime
public int hurtTime
-
maxHurtTime
public int maxHurtTime
-
attackedAtYaw
public float attackedAtYaw
-
deathTime
public int deathTime
-
attackTime
public int attackTime
-
prevCameraPitch
public float prevCameraPitch
-
cameraPitch
public float cameraPitch
-
dead
protected boolean dead
-
experienceValue
protected int experienceValue
-
field_9326_T
public int field_9326_T
-
field_9325_U
public float field_9325_U
-
field_705_Q
public float field_705_Q
-
field_704_R
public float field_704_R
-
field_703_S
public float field_703_S
-
attackingPlayer
protected Player attackingPlayer
-
recentlyHit
protected int recentlyHit
-
arrowHitTempCounter
public int arrowHitTempCounter
-
arrowHitTimer
public int arrowHitTimer
-
activePotionsMap
public it.unimi.dsi.fastutil.ints.Int2ObjectMap<PotionEffect> activePotionsMap
-
tasks
protected EntityAITasks tasks
-
targetTasks
protected EntityAITasks targetTasks
-
newPosRotationIncrements
protected int newPosRotationIncrements
-
newPosX
protected double newPosX
-
newPosY
protected double newPosY
-
newPosZ
protected double newPosZ
-
newRotationYaw
protected double newRotationYaw
-
newRotationPitch
protected double newRotationPitch
-
naturalArmorRating
protected int naturalArmorRating
-
entityAge
protected int entityAge
-
moveStrafing
protected float moveStrafing
-
moveForward
protected float moveForward
-
randomYawVelocity
protected float randomYawVelocity
-
isJumping
protected boolean isJumping
-
defaultPitch
protected float defaultPitch
-
moveSpeed
protected float moveSpeed
-
numTicksToChaseTarget
protected int numTicksToChaseTarget
-
-
Constructor Detail
-
LivingEntity
public LivingEntity(World var1)
-
-
Method Detail
-
getHeadYaw
public float getHeadYaw()
- Overrides:
getHeadYaw
in classEntity
-
getLookHelper
public EntityLookHelper getLookHelper()
-
getMoveHelper
public EntityMoveHelper getMoveHelper()
-
getJumpHelper
public EntityJumpHelper getJumpHelper()
-
getNavigator
public PathNavigate getNavigator()
-
func_48090_aM
public EntitySenses func_48090_aM()
-
getRNG
public java.util.Random getRNG()
-
getAITarget
public LivingEntity getAITarget()
-
getLastAttackingEntity
public LivingEntity getLastAttackingEntity()
-
setLastAttackingEntity
public void setLastAttackingEntity(Entity var1)
-
getAge
public int getAge()
-
func_48079_f
public void func_48079_f(float var1)
- Overrides:
func_48079_f
in classEntity
-
func_48101_aR
public float func_48101_aR()
-
func_48098_g
public void func_48098_g(float var1)
-
attackEntityAsMob
public boolean attackEntityAsMob(Entity var1)
-
getAttackTarget
public LivingEntity getAttackTarget()
-
setAttackTarget
public void setAttackTarget(LivingEntity var1)
-
func_48100_a
public boolean func_48100_a(java.lang.Class var1)
-
eatGrassBonus
public void eatGrassBonus()
-
isWithinHomeDistanceCurrentPosition
public boolean isWithinHomeDistanceCurrentPosition()
-
isWithinHomeDistance
public boolean isWithinHomeDistance(int var1, int var2, int var3)
-
setHomeArea
public void setHomeArea(int var1, int var2, int var3, int var4)
-
getHomePosition
public ChunkCoordinates getHomePosition()
-
getMaximumHomeDistance
public float getMaximumHomeDistance()
-
detachHome
public void detachHome()
-
hasHome
public boolean hasHome()
-
setRevengeTarget
public void setRevengeTarget(LivingEntity var1)
-
entityInit
protected void entityInit()
- Specified by:
entityInit
in classEntity
-
canEntityBeSeen
public boolean canEntityBeSeen(Entity var1)
-
getTexture
@Client public @Client java.lang.String getTexture()
- Overrides:
getTexture
in classEntity
-
canBeCollidedWith
public boolean canBeCollidedWith()
- Overrides:
canBeCollidedWith
in classEntity
-
canBePushed
public boolean canBePushed()
- Overrides:
canBePushed
in classEntity
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeight
in classEntity
-
getTalkInterval
public int getTalkInterval()
-
playLivingSound
public void playLivingSound()
-
onEntityUpdate
public void onEntityUpdate()
- Overrides:
onEntityUpdate
in classEntity
-
getEffectiveHealth
public int getEffectiveHealth()
-
onDeathUpdate
protected void onDeathUpdate()
-
decreaseAirSupply
protected int decreaseAirSupply(int var1)
-
getExperiencePoints
protected int getExperiencePoints(Player var1)
-
isPlayer
protected boolean isPlayer()
-
spawnExplosionParticle
public void spawnExplosionParticle()
-
updateRidden
public void updateRidden()
- Overrides:
updateRidden
in classEntity
-
setPositionAndRotation2
@Client public void setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
- Overrides:
setPositionAndRotation2
in classEntity
-
heal
public void heal(int var1)
-
getMaxHealth
public abstract int getMaxHealth()
-
getHealth
public int getHealth()
-
setEntityHealth
public void setEntityHealth(int var1)
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource var1, int var2)
- Overrides:
attackEntityFrom
in classEntity
-
performHurtAnimation
@Client public void performHurtAnimation()
- Overrides:
performHurtAnimation
in classEntity
-
getTotalArmorValue
public int getTotalArmorValue()
-
damageArmor
protected void damageArmor(int i)
-
applyArmorCalculations
protected int applyArmorCalculations(DamageSource var1, int var2)
-
applyPotionDamageCalculations
protected int applyPotionDamageCalculations(DamageSource var1, int var2)
-
damageEntity
protected void damageEntity(DamageSource var1, int var2)
-
getSoundVolume
protected float getSoundVolume()
-
getLivingSound
protected java.lang.String getLivingSound()
-
getHurtSound
protected java.lang.String getHurtSound()
-
getDeathSound
protected java.lang.String getDeathSound()
-
knockBack
public void knockBack(Entity var1, int var2, double var3, double var5)
-
onDeath
public void onDeath(DamageSource var1)
-
dropRareDrop
protected void dropRareDrop(int i)
-
dropFewItems
protected void dropFewItems(boolean var1, int var2)
-
getDropItemId
protected int getDropItemId()
-
moveEntityWithHeading
public void moveEntityWithHeading(float var1, float var2)
-
isOnLadder
public boolean isOnLadder()
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound var1)
- Specified by:
writeEntityToNBT
in classEntity
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound var1)
- Specified by:
readEntityFromNBT
in classEntity
-
isEntityAlive
public boolean isEntityAlive()
- Overrides:
isEntityAlive
in classEntity
-
canBreatheUnderwater
public boolean canBreatheUnderwater()
-
setMoveForward
public void setMoveForward(float var1)
-
setJumping
public void setJumping(boolean var1)
-
onLivingUpdate
public void onLivingUpdate()
-
isAIEnabled
protected boolean isAIEnabled()
-
isClientWorld
protected boolean isClientWorld()
-
isMovementBlocked
protected boolean isMovementBlocked()
-
isBlocking
public boolean isBlocking()
-
jump
protected void jump()
-
canDespawn
protected boolean canDespawn()
-
despawnEntity
protected void despawnEntity()
-
updateAITasks
protected void updateAITasks()
-
updateAITick
protected void updateAITick()
-
updateEntityActionState
protected void updateEntityActionState()
-
getVerticalFaceSpeed
public int getVerticalFaceSpeed()
-
faceEntity
public void faceEntity(Entity var1, float var2, float var3)
-
onEntityDeath
public void onEntityDeath()
-
getCanSpawnHere
public boolean getCanSpawnHere()
-
getSwingProgress
@Client public @net.minecraft.modding.api.Side.Client float getSwingProgress(float var1)
-
getLookVec
public Vec3D getLookVec()
- Overrides:
getLookVec
in classEntity
-
getLook
public Vec3D getLook(float var1)
-
getRenderSizeModifier
@Client public @net.minecraft.modding.api.Side.Client float getRenderSizeModifier()
-
rayTrace
@Client public @Client MovingObjectPosition rayTrace(double var1, float var3)
-
getMaxSpawnedInChunk
public int getMaxSpawnedInChunk()
-
handleHealthUpdate
@Client public void handleHealthUpdate(byte var1)
- Overrides:
handleHealthUpdate
in classEntity
-
isPlayerSleeping
public boolean isPlayerSleeping()
-
getItemIcon
@Client public @net.minecraft.modding.api.Side.Client int getItemIcon(ItemStack var1, int var2)
-
updatePotionEffects
protected void updatePotionEffects()
-
clearActivePotions
public void clearActivePotions()
-
getActivePotionEffects
public java.util.Collection<PotionEffect> getActivePotionEffects()
-
isPotionActive
public boolean isPotionActive(Potion var1)
-
getActivePotionEffect
public PotionEffect getActivePotionEffect(Potion var1)
-
addPotionEffect
public void addPotionEffect(PotionEffect var1)
-
isPotionApplicable
public boolean isPotionApplicable(PotionEffect var1)
-
isEntityUndead
public boolean isEntityUndead()
-
removePotionEffect
@Client public void removePotionEffect(int var1)
-
onNewPotionEffect
protected void onNewPotionEffect(PotionEffect var1)
-
onChangedPotionEffect
protected void onChangedPotionEffect(PotionEffect var1)
-
onFinishedPotionEffect
protected void onFinishedPotionEffect(PotionEffect var1)
-
getSpeedModifier
protected float getSpeedModifier()
-
setPositionAndUpdate
public void setPositionAndUpdate(double var1, double var3, double var5)
-
isChild
public boolean isChild()
-
getCreatureAttribute
public EnumCreatureAttribute getCreatureAttribute()
-
renderBrokenItemStack
public void renderBrokenItemStack(ItemStack var1)
-
-