net.minecraft.entity.living

public abstract class LivingEntity

extends Entity

All mapped superinterfaces:

CommandSource

sa
net.minecraft.class_1699
net.minecraft.entity.living.LivingEntity
net.minecraft.entity.EntityLivingBase

Field summary

Modifier and TypeField
private static final UUID
a
field_6775
SPRINTING_SPEED_MODIFIER_ID
SPRINTING_SPEED_BOOST_ID
private static final AttributeModifier
b
field_6794
SPRINTING_SPEED_MODIFIER
SPRINTING_SPEED_BOOST
protected static final DataAttribute<Byte>
at
field_14543
LIVING_ENTITY_FLAGS
HAND_STATES
private static final DataAttribute<Float>
c
field_14550
HEALTH
HEALTH
private static final DataAttribute<Integer>
f
field_14551
EFFECT_PARTICLES_COLOR
POTION_EFFECTS
private static final DataAttribute<Boolean>
g
field_14552
EFFECT_PARTICLES_AMBIENT
HIDE_PARTICLES
private static final DataAttribute<Integer>
h
field_14553
STUCK_ARROWS
ARROW_COUNT_IN_ENTITY
private AbstractEntityAttributeContainer
bq
field_6795
attributes
attributeMap
private final DamageTracker
br
field_6796
damageTracker
_combatTracker
private final Map<StatusEffect, StatusEffectInstance>
bs
field_11913
statusEffects
activePotionsMap
private final ItemStack[]
bt
field_6798
itemsInHands
handInventory
private final ItemStack[]
bu
field_14549
armor
armorArray
public boolean
au
field_6769
armSwinging
isSwingInProgress
public InteractionHand
av
field_14544
swingingArm
swingingHand
public int
aw
field_6770
armSwingingTicks
swingProgressInt
public int
ax
field_6771
arrowDespawnTimer
arrowHitTimer
public int
ay
field_6773
damagedTimer
hurtTime
public int
az
field_6774
damagedTime
maxHurtTime
public float
aA
field_6743
damagedSwingDir
attackedAtYaw
public int
aB
field_6744
deathTicks
deathTime
public float
aC
field_6746
lastAttackAnimationProgress
prevSwingProgress
public float
aD
field_6747
attackAnimationProgress
swingProgress
protected int
aE
field_14542
lastAttackedTicks
ticksSinceLastSwing
public float
aF
field_6748
lastWalkAnimationSpeed
prevLimbSwingAmount
public float
aG
field_6749
walkAnimationSpeed
limbSwingAmount
public float
aH
field_6750
walkAnimationProgress
limbSwing
public int
aI
field_6751
invulnerableTicks
maxHurtResistantTime
public float
aJ
field_6752
lastTilt
prevCameraPitch
public float
aK
field_6753
tilt
cameraPitch
public float
aL
field_6754
f_26584770
randomUnused2
public float
aM
field_6755
f_75186175
randomUnused1
public float
aN
field_6756
bodyYaw
renderYawOffset
public float
aO
field_6757
lastBodyYaw
prevRenderYawOffset
public float
aP
field_6758
headYaw
rotationYawHead
public float
aQ
field_6759
lastHeadYaw
prevRotationYawHead
public float
aR
field_6760
speedInAir
jumpMovementFactor
protected PlayerEntity
aS
field_6761
attackingPlayer
attackingPlayer
protected int
aT
field_6762
playerHitTimer
recentlyHit
protected boolean
aU
field_6763
dead
dead
protected int
aV
field_6764
farFromPlayerTicks
entityAge
protected float
aW
field_6765
lastWalkProgress
prevOnGroundSpeedFactor
protected float
aX
field_6766
walkProgress
onGroundSpeedFactor
protected float
aY
field_6767
totalWalkDistance
movedDistance
protected float
aZ
field_6768
lastTotalWalkDistance
prevMovedDistance
protected float
ba
field_6776
rotationOffset
unused180
protected int
bb
field_6777
score
scoreValue
protected float
bc
field_6778
lastDamageTaken
lastDamage
protected boolean
bd
field_6779
jumping
isJumping
public float
be
field_6780
sidewaysSpeed
moveStrafing
public float
bf
field_6781
forwardSpeed
moveForward
public float
bg
field_6782
rotationSpeed
randomYawVelocity
protected int
bh
field_6783
lerpSteps
newPosRotationIncrements
protected double
bi
field_6788
lerpX
interpTargetX
protected double
bj
field_6785
lerpY
interpTargetY
protected double
bk
field_6786
lerpZ
interpTargetZ
protected double
bl
field_6787
lerpYaw
interpTargetYaw
protected double
bm
field_6784
lerpPitch
interpTargetPitch
private boolean
bv
field_6799
effectsChanged
potionsNeedUpdate
private LivingEntity
bw
field_6800
attacker
entityLivingToAttack
private int
bx
field_6801
lastAttackedTime
revengeTimer
private LivingEntity
by
field_6789
lastAttackedMob
lastAttacker
private int
bz
field_6790
lastAttackTime
lastAttackerTime
private float
bA
field_6791
speed
landMovementFactor
private int
bB
field_6792
jumpingCooldown
jumpTicks
private float
bC
field_6793
absorption
absorptionAmount
protected ItemStack
bn
field_14546
itemInUse
activeItemStack
protected int
bo
field_14547
itemInUseDuration
activeItemStackUseCount
protected int
bp
field_14548
flyingTicks
ticksElytraFlying
private BlockPos
bD
field_14545
pos
prevBlockpos

Constructor summary

ModifierConstructor
public (World arg0)

Method summary

Modifier and TypeMethod
public void
Q()
method_10927()
discard()
onKillCommand()
protected void
i()
method_2484()
registerSyncedData()
entityInit()
protected void
bB()
method_6129()
initAttributes()
applyEntityAttributes()
protected void
a(double arg0, boolean arg1, ard arg2, cl arg3)
method_2489(double arg0, boolean arg1, class_2232 arg2, class_2552 arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
updateFallState(double arg0, boolean arg1, IBlockState arg2, BlockPos arg3)
public boolean
bC()
method_2607()
canBreatheUnderwater()
canBreatheUnderwater()
public void
U()
method_2564()
baseTick()
onEntityUpdate()
protected void
b(cl arg0)
method_13046(class_2552 arg0)
applyMovementEffects(BlockPos pos)
frostWalk(BlockPos pos)
public boolean
m_()
method_2662()
isBaby()
isChild()
protected void
bD()
method_2596()
tickPostDeath()
onDeathUpdate()
protected boolean
bE()
method_8369()
isGrownUp()
canDropLoot()
protected int
d(int arg0)
method_2664(int arg0)
updateBreathUnderwater(int breath)
decreaseAirSupply(int air)
protected int
b(zj arg0)
method_2585(class_988 arg0)
getXpDrop(PlayerEntity playerEntity)
getExperiencePoints(EntityPlayer player)
protected boolean
bF()
method_2597()
shouldDropXp()
isPlayer()
public Random
bG()
method_6112()
getRandom()
getRNG()
public LivingEntity
bH()
method_6113()
getAttacker()
getAITarget()
public int
bI()
method_6114()
getLastAttackedTime()
getRevengeTimer()
public void
a(sa arg0)
method_6132(class_1699 arg0)
setAttacker(LivingEntity attacker)
setRevengeTarget(EntityLivingBase livingBase)
public LivingEntity
bJ()
method_6115()
getLastAttackedMob()
getLastAttacker()
public int
bK()
method_6116()
getLastAttackTime()
getLastAttackerTime()
public void
z(rr arg0)
method_6150(class_864 arg0)
setLastAttackedMob(Entity entity)
setLastAttacker(Entity entityIn)
public int
bL()
method_6117()
getDespawnTimer()
getAge()
protected void
a_(adq arg0)
method_13045(class_1071 arg0)
playEquipSound(ItemStack item)
playEquipSound(ItemStack stack)
public void
b(dq arg0)
method_2528(class_322 arg0)
writeCustomNbt(NbtCompound arg0)
writeEntityToNBT(NBTTagCompound arg0)
public void
a(dq arg0)
method_2498(class_322 arg0)
readCustomNbt(NbtCompound arg0)
readEntityFromNBT(NBTTagCompound arg0)
protected void
bM()
method_6118()
tickStatusEffects()
updatePotionEffects()
protected void
F()
method_10977()
updateVisibility()
updatePotionMetadata()
public static boolean
a(Collection<rl> arg0)
method_13040(Collection<class_861> arg0)
areAllEffectsAmbient(Collection<StatusEffectInstance> effects)
areAllPotionsAmbient(Collection<PotionEffect> potionEffects)
protected void
bN()
method_10981()
clearEffectParticles()
resetPotionEffectMetadata()
public void
bO()
method_6119()
clearStatusEffects()
clearActivePotions()
public Collection<StatusEffectInstance>
bP()
method_6120()
getStatusEffects()
getActivePotionEffects()
public boolean
a(rk arg0)
method_6107(class_860 arg0)
hasStatusEffect(StatusEffect effect)
isPotionActive(Potion potionIn)
public StatusEffectInstance
b(rk arg0)
method_6131(class_860 arg0)
getEffectInstance(StatusEffect effect)
getActivePotionEffect(Potion potionIn)
public void
c(rl arg0)
method_2654(class_861 arg0)
addStatusEffect(StatusEffectInstance instance)
addPotionEffect(PotionEffect potioneffectIn)
public boolean
d(rl arg0)
method_2658(class_861 arg0)
canHaveStatusEffect(StatusEffectInstance effect)
isPotionApplicable(PotionEffect potioneffectIn)
public boolean
bQ()
method_6121()
isAffectedBySmite()
isEntityUndead()
public StatusEffectInstance
c(rk arg0)
method_13052(class_860 arg0)
removeEffect(StatusEffect effect)
removeActivePotionEffect(Potion potioneffectin)
public void
d(rk arg0)
method_13069(class_860 arg0)
removeStatusEffect(StatusEffect arg0)
removePotionEffect(Potion potionIn)
protected void
a(rl arg0)
method_2582(class_861 arg0)
onStatusEffectApplied(StatusEffectInstance instance)
onNewPotionEffect(PotionEffect id)
protected void
a(rl arg0, boolean arg1)
method_6108(class_861 arg0, boolean arg1)
onStatusEffectUpgraded(StatusEffectInstance instance, boolean timerRanOut)
onChangedPotionEffect(PotionEffect id, boolean arg1)
protected void
b(rl arg0)
method_2649(class_861 arg0)
onStatusEffectRemoved(StatusEffectInstance effect)
onFinishedPotionEffect(PotionEffect effect)
public void
b(float arg0)
method_6139(float arg0)
heal(float amount)
heal(float healAmount)
public final float
bR()
method_6122()
getHealth()
getHealth()
public void
c(float arg0)
method_6142(float arg0)
setHealth(float amount)
setHealth(float health)
public boolean
a(rc arg0, float arg1)
method_2499(class_856 arg0, float arg1)
takeDamage(DamageSource arg0, float arg1)
attackEntityFrom(DamageSource arg0, float arg1)
protected void
c(rc arg0)
method_13051(class_856 arg0)
playHurtSound(DamageSource source)
playHurtSound(DamageSource source)
private boolean
d(rc arg0)
method_13068(class_856 arg0)
bypassesShield(DamageSource source)
canBlockDamageSource(DamageSource damageSourceIn)
public void
b(adq arg0)
method_6111(class_1071 arg0)
onBrokenItem(ItemStack item)
renderBrokenItemStack(ItemStack stack)
public void
a(rc arg0)
method_2580(class_856 arg0)
die(DamageSource source)
onDeath(DamageSource cause)
protected void
a(boolean arg0, int arg1, rc arg2)
method_13044(boolean arg0, int arg1, class_856 arg2)
dropItemsFromLootTable(boolean player, int lootingLevel, DamageSource source)
dropLoot(boolean wasRecentlyHit, int lootingModifier, DamageSource source)
protected void
a(boolean arg0, int arg1)
method_4472(boolean arg0, int arg1)
dropEquipment(boolean hitByPlayer, int lootingLevel)
dropEquipment(boolean wasRecentlyHit, int lootingModifier)
public void
a(rr arg0, float arg1, double arg2, double arg3)
method_6109(class_864 arg0, float arg1, double arg2, double arg3)
applyKnockback(Entity entity, float amount, double velocityX, double velocityZ)
knockBack(Entity entityIn, float strenght, double xRatio, double zRatio)
protected SoundEvent
bS()
method_13048()
getHurtSound()
getHurtSound()
protected SoundEvent
bT()
method_13049()
getDeathSound()
getDeathSound()
protected SoundEvent
e(int arg0)
method_13070(int arg0)
getFallSound(int fallDistance)
getFallSound(int heightIn)
protected void
b(boolean arg0, int arg1)
method_2587(boolean arg0, int arg1)
dropItems(boolean loot, int lootingMultiplier)
dropFewItems(boolean wasRecentlyHit, int lootingModifier)
public boolean
n_()
method_2660()
isClimbing()
isOnLadder()
private boolean
a(cl arg0, ard arg1)
method_13039(class_2552 arg0, class_2232 arg1)
canClimbTrapdoor(BlockPos pos, BlockState state)
canGoThroughtTrapDoorOnLadder(BlockPos pos, IBlockState state)
public boolean
au()
method_2476()
isAlive()
isEntityAlive()
public void
e(float arg0, float arg1)
method_2490(float arg0, float arg1)
takeFallDamage(float arg0, float arg1)
fall(float arg0, float arg1)
public int
bU()
method_2601()
getArmorProtection()
getTotalArmorValue()
protected void
j(float arg0)
method_6144(float arg0)
damageArmor(float damage)
damageArmor(float damage)
protected void
k(float arg0)
method_13072(float arg0)
damageShield(float damage)
damageShield(float damage)
protected float
b(rc arg0, float arg1)
method_6130(class_856 arg0, float arg1)
getDamageAfterArmor(DamageSource source, float damage)
applyArmorCalculations(DamageSource source, float damage)
protected float
c(rc arg0, float arg1)
method_6136(class_856 arg0, float arg1)
getDamageAfterEffectsAndEnchantments(DamageSource source, float damage)
applyPotionDamageCalculations(DamageSource source, float damage)
protected void
d(rc arg0, float arg1)
method_6138(class_856 arg0, float arg1)
applyDamage(DamageSource source, float damage)
damageEntity(DamageSource damageSrc, float damageAmount)
public DamageTracker
bV()
method_6123()
getDamageTracker()
getCombatTracker()
public LivingEntity
bW()
method_6124()
getLastAttacker()
getAttackingEntity()
public final float
bX()
method_6125()
getMaxHealth()
getMaxHealth()
public final int
bY()
method_6126()
getStuckArrows()
getArrowCountInEntity()
public final void
k(int arg0)
method_6154(int arg0)
setStuckArrows(int arrows)
setArrowCountInEntity(int count)
private int
o()
method_6143()
getArmSwingDuration()
getArmSwingAnimationEnd()
public void
a(qm arg0)
method_13041(class_2961 arg0)
swingArm(InteractionHand hand)
swingArm(EnumHand hand)
protected void
Y()
method_2462()
voidTick()
kill()
protected void
bZ()
method_6127()
updateArmSwing()
updateArmSwingProgress()
public EntityAttributeInstance
a(sl arg0)
method_6110(class_1702 arg0)
getAttribute(EntityAttribute attribute)
getEntityAttribute(IAttribute attribute)
public AbstractEntityAttributeContainer
ca()
method_6128()
getAttributes()
getAttributeMap()
public MobType
cb()
method_2647()
getMobType()
getCreatureAttribute()
public ItemStack
cc()
method_13058()
getItemInMainHand()
getHeldItemMainhand()
public ItemStack
cd()
method_13059()
getItemInOffHand()
getHeldItemOffhand()
public ItemStack
b(qm arg0)
method_13047(class_2961 arg0)
getItemInHand(InteractionHand hand)
getHeldItem(EnumHand hand)
public void
a(qm arg0, adq arg1)
method_13042(class_2961 arg0, class_1071 arg1)
setItemInHand(InteractionHand hand, ItemStack item)
setHeldItem(EnumHand hand, ItemStack stack)
public abstract Iterable<ItemStack>
aF()
method_12978()
getArmor()
getArmorInventoryList()
public abstract ItemStack
a(rw arg0)
method_13043(class_2968 arg0)
getEquipment(EquipmentSlot slot)
getItemStackFromSlot(EntityEquipmentSlot slotIn)
public abstract void
a(rw arg0, adq arg1)
method_2527(class_2968 arg0, class_1071 arg1)
setEquipment(EquipmentSlot arg0, ItemStack arg1)
setItemStackToSlot(EntityEquipmentSlot arg0, ItemStack arg1)
public void
e(boolean arg0)
method_2529(boolean arg0)
setSprinting(boolean arg0)
setSprinting(boolean arg0)
protected float
ce()
method_2602()
getSoundVolume()
getSoundVolume()
protected float
cf()
method_2665()
getSoundPitch()
getSoundPitch()
protected boolean
cg()
method_2610()
isDead()
isMovementBlocked()
public void
A(rr arg0)
method_6152(class_864 arg0)
dismountRider(Entity entity)
dismountEntity(Entity entityIn)
protected float
ch()
method_10978()
getJumpStrength()
getJumpUpwardsMotion()
protected void
ci()
method_2612()
jump()
jump()
protected void
cj()
method_2634()
jumpInWater()
handleJumpWater()
protected void
ck()
method_10979()
jumpInLava()
handleJumpLava()
public void
g(float arg0, float arg1)
method_2657(float arg0, float arg1)
moveRelative(float sideways, float forwards)
moveEntityWithHeading(float strafe, float forward)
public float
cl()
method_6133()
getSpeed()
getAIMoveSpeed()
public void
l(float arg0)
method_2656(float arg0)
setSpeed(float speed)
setAIMoveSpeed(float speedIn)
public boolean
B(rr arg0)
method_2671(class_864 arg0)
tryDamage(Entity target)
attackEntityAsMob(Entity entityIn)
public boolean
cm()
method_2641()
isSleeping()
isPlayerSleeping()
public void
m()
method_2558()
tick()
onUpdate()
protected float
h(float arg0, float arg1)
method_6140(float arg0, float arg1)
bodyMovement(float yaw, float movement)
updateDistance(float arg0, float arg1)
public void
n()
method_2651()
mobTick()
onLivingUpdate()
private void
r()
method_13073()
flyingTick()
updateElytra()
protected void
cn()
method_2635()
serverTickAi()
updateEntityActionState()
protected void
co()
method_4478()
pushAwayCollidingEntities()
collideWithNearbyEntities()
protected void
C(rr arg0)
method_4483(class_864 arg0)
pushAway(Entity entity)
collideWithEntity(Entity entityIn)
public void
p()
method_13014()
stopRiding()
dismountRidingEntity()
public void
aw()
method_2478()
rideTick()
updateRidden()
public void
k(boolean arg0)
method_6141(boolean arg0)
setJumping(boolean jumping)
setJumping(boolean jumping)
public void
a(rr arg0, int arg1)
method_3162(class_864 arg0, int arg1)
sendPickup(Entity entity, int count)
onItemPickup(Entity entityIn, int quantity)
public boolean
D(rr arg0)
method_6155(class_864 arg0)
canSee(Entity entity)
canEntityBeSeen(Entity entityIn)
public Vec3d
aB()
method_2483()
getLookVector()
getLookVec()
public Vec3d
f(float arg0)
method_6146(float arg0)
getRotationVector(float arg0)
getLook(float arg0)
public boolean
cp()
method_2609()
isLocallyControlled()
isServerWorld()
public boolean
ap()
method_2471()
hasCollision()
canBeCollidedWith()
public boolean
aq()
method_2472()
isPushable()
canBePushed()
protected void
ao()
method_2470()
markDamaged()
setBeenAttacked()
public float
aS()
method_2520()
getHeadYaw()
getRotationYawHead()
public void
h(float arg0)
method_2540(float arg0)
setHeadYaw(float arg0)
setRotationYawHead(float arg0)
public void
i(float arg0)
method_10960(float arg0)
setBodyYaw(float arg0)
setRenderYawOffset(float arg0)
public float
cq()
method_6134()
getAbsorption()
getAbsorptionAmount()
public void
n(float arg0)
method_6153(float arg0)
setAbsorption(float absorption)
setAbsorptionAmount(float amount)
public void
j()
method_8370()
enterCombat()
sendEnterCombat()
public void
k()
method_8371()
endCombat()
sendEndCombat()
protected void
cr()
method_10980()
markEffects()
markPotionsDirty()
public abstract Arm
cs()
method_13060()
getMainArm()
getPrimaryHand()
public boolean
ct()
method_13061()
isUsingItem()
isHandActive()
public InteractionHand
cu()
method_13062()
getActiveHand()
getActiveHand()
protected void
cv()
method_13063()
tickUsingItem()
updateActiveHand()
public void
c(qm arg0)
method_13050(class_2961 arg0)
setActiveHand(InteractionHand hand)
setActiveHand(EnumHand hand)
public void
a(kf<?> arg0)
method_12974(class_2921<?> arg0)
onDataValueChanged(DataAttribute<?> arg0)
notifyDataManagerChange(DataParameter<?> arg0)
protected void
a(adq arg0, int arg1)
method_13038(class_1071 arg0, int arg1)
addItemUseParticles(ItemStack itemInUse, int amount)
updateItemUse(ItemStack stack, int eatingParticleCount)
protected void
v()
method_3217()
consumeItem()
onItemUseFinish()
public ItemStack
cw()
method_13064()
getItemInUse()
getActiveItemStack()
public int
cx()
method_13065()
getItemInUseDuration()
getItemInUseCount()
public int
cy()
method_13066()
getTicksUsingItem()
getItemInUseMaxCount()
public void
cz()
method_13067()
stopUsingItem()
stopActiveHand()
public void
cA()
method_13053()
clearItemInUse()
resetActiveHand()
public boolean
cB()
method_13054()
isBlockingWithShield()
isActiveItemStackBlocking()
public boolean
cC()
method_13055()
isFallFlying()
isElytraFlying()
public boolean
k(double arg0, double arg1, double arg2)
method_13071(double arg0, double arg1, double arg2)
tryTeleport(double x, double y, double z)
attemptTeleport(double x, double y, double z)
public boolean
cE()
method_13057()
isAffectedBySplashPotions()
canBeHitWithPotion()
public void
aD()
method_2509()
animateDamage()
performHurtAnimation()
public void
a(byte arg0)
method_2485(byte arg0)
doEvent(byte arg0)
handleStatusUpdate(byte arg0)
public boolean
bi()
method_5394()
shouldShowNameTag()
getAlwaysRenderNameTagForRender()
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5, boolean arg6)
method_2488(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5, boolean arg6)
lerpPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5, boolean arg6)
setPositionAndRotationDirect(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5, boolean arg6)
public float
m(float arg0)
method_6148(float arg0)
getAttackAnimationProgress(float tickDelta)
getSwingProgress(float partialTickTime)
public int
cD()
method_13056()
getFlyingTicks()
getTicksElytraFlying()