net.minecraft.entity

public abstract class LivingEntity

extends Entity implements Attackable, ServerWaypoint

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint

net.minecraft.world.entity.LivingEntity
net.minecraft.class_1309
net.minecraft.entity.LivingEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_36332
LOGGER
private static final String
TAG_ACTIVE_EFFECTS
field_45740
ACTIVE_EFFECTS_KEY
public static final String
TAG_ATTRIBUTES
field_51995
ATTRIBUTES_KEY
public static final String
TAG_SLEEPING_POS
field_60537
SLEEPING_POS_KEY
public static final String
TAG_EQUIPMENT
field_60538
EQUIPMENT_KEY
public static final String
TAG_BRAIN
field_60539
BRAIN_KEY
public static final String
TAG_FALL_FLYING
field_60540
FALL_FLYING_KEY
public static final String
TAG_HURT_TIME
field_60541
HURT_TIME_KEY
public static final String
TAG_DEATH_TIME
field_60542
DEATH_TIME_KEY
public static final String
TAG_HURT_BY_TIMESTAMP
field_60543
HURT_BY_TIMESTAMP_KEY
public static final String
TAG_HEALTH
field_60544
HEALTH_KEY
private static final Identifier
SPEED_MODIFIER_POWDER_SNOW_ID
field_27859
POWDER_SNOW_SPEED_MODIFIER_ID
private static final Identifier
SPRINTING_MODIFIER_ID
field_51996
SPRINTING_SPEED_MODIFIER_ID
private static final EntityAttributeModifier
SPEED_MODIFIER_SPRINTING
field_6231
SPRINTING_SPEED_BOOST
public static final int
EQUIPMENT_SLOT_OFFSET
field_30071
EQUIPMENT_SLOT_ID
public static final int
ARMOR_SLOT_OFFSET
field_30072
field_30072
public static final int
BODY_ARMOR_OFFSET
field_48827
field_48827
public static final int
SADDLE_OFFSET
field_55952
field_55952
public static final int
PLAYER_HURT_EXPERIENCE_TIME
field_30074
field_30074
private static final int
DAMAGE_SOURCE_TIMEOUT
field_30078
field_30078
public static final double
MIN_MOVEMENT_DISTANCE
field_30075
field_30075
public static final double
DEFAULT_BASE_GRAVITY
field_30076
GRAVITY
public static final int
DEATH_DURATION
field_30077
DEATH_TICKS
protected static final float
INPUT_FRICTION
field_56256
field_56256
private static final int
TICKS_PER_ELYTRA_FREE_FALL_EVENT
field_30080
field_30080
private static final int
FREE_FALL_EVENTS_PER_ELYTRA_BREAK
field_30081
field_30081
public static final float
BASE_JUMP_POWER
field_44874
field_44874
protected static final float
DEFAULT_KNOCKBACK
field_63293
field_63293
protected static final int
INVULNERABLE_DURATION
field_63294
field_63294
private static final double
MAX_LINE_OF_SIGHT_TEST_RANGE
field_33908
MAX_ENTITY_VIEWING_DISTANCE
protected static final int
LIVING_ENTITY_FLAG_IS_USING
field_30064
USING_ITEM_FLAG
protected static final int
LIVING_ENTITY_FLAG_OFF_HAND
field_30065
OFF_HAND_ACTIVE_FLAG
protected static final int
LIVING_ENTITY_FLAG_SPIN_ATTACK
field_30066
USING_RIPTIDE_FLAG
protected static final TrackedData<Byte>
DATA_LIVING_ENTITY_FLAGS
field_6257
LIVING_FLAGS
private static final TrackedData<Float>
DATA_HEALTH_ID
field_6247
HEALTH
private static final TrackedData<List<ParticleEffect>>
DATA_EFFECT_PARTICLES
field_49792
POTION_SWIRLS
private static final TrackedData<Boolean>
DATA_EFFECT_AMBIENCE_ID
field_6214
POTION_SWIRLS_AMBIENT
private static final TrackedData<Integer>
DATA_ARROW_COUNT_ID
field_6219
STUCK_ARROW_COUNT
private static final TrackedData<Integer>
DATA_STINGER_COUNT_ID
field_20348
STINGER_COUNT
private static final TrackedData<Optional<BlockPos>>
SLEEPING_POS_ID
field_18073
SLEEPING_POSITION
private static final int
PARTICLE_FREQUENCY_WHEN_INVISIBLE
field_49793
field_49793
protected static final EntityDimensions
SLEEPING_DIMENSIONS
field_18072
SLEEPING_DIMENSIONS
public static final float
EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT
field_30068
BABY_SCALE_FACTOR
public static final float
DEFAULT_BABY_SCALE
field_47756
field_47756
private static final float
WATER_FLOAT_IMPULSE
field_64133
field_64133
private static final int
CURRENT_IMPULSE_CONTEXT_RESET_GRACE_TIME_TICKS
field_1_845
field_1_845
private static final int
DEFAULT_CURRENT_IMPULSE_CONTEXT_RESET_GRACE_TIME
field_1_846
field_1_846
private int
currentImpulseContextResetGraceTime
field_1_848
currentImpulseContextResetGraceTime
public static final Predicate<LivingEntity>
PLAYER_NOT_WEARING_DISGUISE_ITEM
field_54564
NOT_WEARING_GAZE_DISGUISE_PREDICATE
private final AttributeContainer
attributes
field_6260
attributes
private final DamageTracker
combatTracker
field_6256
damageTracker
private final Map<RegistryEntry<StatusEffect>, StatusEffectInstance>
activeEffects
field_6280
activeStatusEffects
private final Map<EquipmentSlot, ItemStack>
lastEquipmentItems
field_55951
lastEquipmentStacks
public boolean
swinging
field_6252
handSwinging
private boolean
discardFriction
field_30082
noDrag
public Hand
swingingArm
field_6266
preferredHand
public int
swingTime
field_6279
handSwingTicks
public int
removeArrowTime
field_6218
stuckArrowTimer
public int
removeStingerTime
field_20347
stuckStingerTimer
public int
hurtTime
field_6235
hurtTime
public int
hurtDuration
field_6254
maxHurtTime
public int
deathTime
field_6213
deathTime
public float
oAttackAnim
field_6229
lastHandSwingProgress
public float
attackAnim
field_6251
handSwingProgress
protected int
attackStrengthTicker
field_6273
ticksSinceLastAttack
protected int
itemSwapTicker
field_63291
ticksSinceHandEquipping
public final LimbAnimator
walkAnimation
field_42108
limbAnimator
public float
yBodyRot
field_6283
bodyYaw
public float
yBodyRotO
field_6220
lastBodyYaw
public float
yHeadRot
field_6241
headYaw
public float
yHeadRotO
field_6259
lastHeadYaw
public final ElytraFlightController
elytraAnimationState
field_52447
elytraFlightController
protected LazyEntityReference<PlayerEntity>
lastHurtByPlayer
field_6258
attackingPlayer
protected int
lastHurtByPlayerMemoryTime
field_6238
playerHitTimer
protected boolean
dead
field_6272
dead
protected int
noActionTime
field_6278
despawnCounter
protected float
lastHurt
field_6253
lastDamageTaken
protected boolean
jumping
field_6282
jumping
public float
xxa
field_6212
sidewaysSpeed
public float
yya
field_6227
upwardSpeed
public float
zza
field_6250
forwardSpeed
protected final PositionInterpolator
interpolation
field_55675
interpolator
protected double
lerpYHeadRot
field_45123
serverHeadYaw
protected int
lerpHeadSteps
field_6265
headTrackingIncrements
private boolean
effectsDirty
field_6285
effectsChanged
private LazyEntityReference<LivingEntity>
lastHurtByMob
field_55674
attackerReference
private int
lastHurtByMobTimestamp
field_6230
lastAttackedTime
private LivingEntity
lastHurtMob
field_6236
attacking
private int
lastHurtMobTimestamp
field_6270
lastAttackTime
private float
speed
field_6287
movementSpeed
private int
noJumpDelay
field_6228
jumpingCooldown
private float
absorptionAmount
field_6246
absorptionAmount
protected ItemStack
useItem
field_6277
activeItemStack
protected int
useItemRemaining
field_6222
itemUseTimeLeft
protected int
fallFlyTicks
field_6239
glidingTicks
private long
lastKineticHitFeedbackTime
field_63950
lastKineticAttackTime
private BlockPos
lastPos
field_6268
lastBlockPos
private Optional<BlockPos>
lastClimbablePos
field_22418
climbingPos
private DamageSource
lastDamageSource
field_6276
lastDamageSource
private long
lastDamageStamp
field_6226
lastDamageTime
protected int
autoSpinAttackTicks
field_6261
riptideTicks
protected float
autoSpinAttackDmg
field_51569
riptideAttackDamage
protected ItemStack
autoSpinAttackItemStack
field_51570
riptideStack
protected it.unimi.dsi.fastutil.objects.Object2LongMap<Entity>
recentKineticEnemies
field_63292
piercingCooldowns
private float
swimAmount
field_6243
leaningPitch
private float
swimAmountO
field_6264
lastLeaningPitch
protected Brain<?>
brain
field_18321
brain
private boolean
skipDropExperience
field_37421
experienceDroppingDisabled
private final EnumMap<EquipmentSlot, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>>
activeLocationDependentEnchantments
field_51571
locationBasedEnchantmentEffects
protected final EntityEquipment
equipment
field_56535
equipment
private Waypoint$Config
locatorBarIcon
field_59669
waypointConfig
public Vec3d
currentImpulseImpactPos
field_1_849
currentExplosionImpactPos
public Entity
currentExplosionCause
field_1_847
currentExplosionEntity

Constructor summary

ModifierConstructor
protected (EntityType<? extends LivingEntity> type, World level)

Method summary

Modifier and TypeMethod
public LivingEntity
asLivingEntity()
method_72393()
getEntity()
protected EntityEquipment
createEquipment()
method_67518()
createEquipment()
public Brain<? extends LivingEntity>
getBrain()
method_18868()
getBrain()
protected Brain<? extends LivingEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State state)
public void
kill(ServerLevel level)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static DefaultAttributeContainer$Builder
createLivingAttributes()
method_26827()
createLivingAttributes()
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
canBreatheUnderwater()
method_6094()
canBreatheInWater()
public float
getSwimAmount(float a)
method_6024(float arg0)
getLeaningPitch(float tickProgress)
public boolean
hasLandedInLiquid()
method_59925()
hasLandedInFluid()
public void
baseTick()
method_5670()
baseTick()
protected boolean
shouldTakeDrowningDamage()
method_74092()
shouldDrown()
protected float
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
public float
getLuck()
method_7292()
getLuck()
protected void
removeFrost()
method_32324()
removePowderSnowSlow()
protected void
tryAddFrost()
method_32325()
addPowderSnowSlowIfNeeded()
protected void
onChangedBlock(ServerLevel level, BlockPos pos)
method_6126(class_3218 arg0, class_2338 arg1)
applyMovementEffects(ServerWorld world, BlockPos pos)
public boolean
isBaby()
method_6109()
isBaby()
public float
getAgeScale()
method_17825()
getScaleFactor()
public final float
getScale()
method_55693()
getScale()
protected float
sanitizeScale(float scale)
method_56077(float arg0)
clampScale(float scale)
public boolean
isAffectedByFluids()
method_29920()
shouldSwimInFluids()
protected void
tickDeath()
method_6108()
updatePostDeath()
public boolean
shouldDropExperience()
method_6054()
shouldDropExperience()
protected boolean
shouldDropLoot(ServerLevel level)
method_27071(class_3218 arg0)
shouldDropLoot(ServerWorld world)
protected int
decreaseAirSupply(int currentSupply)
method_6130(int arg0)
getNextAirUnderwater(int air)
protected int
increaseAirSupply(int currentSupply)
method_6064(int arg0)
getNextAirOnLand(int air)
public final int
getExperienceReward(ServerLevel level, Entity killer)
method_59923(class_3218 arg0, class_1297 arg1)
getExperienceToDrop(ServerWorld world, Entity attacker)
protected int
getBaseExperienceReward(ServerLevel level)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld world)
protected boolean
isAlwaysExperienceDropper()
method_6071()
shouldAlwaysDropExperience()
public LivingEntity
getLastHurtByMob()
method_6065()
getAttacker()
public PlayerEntity
getLastHurtByPlayer()
method_66280()
getAttackingPlayer()
public LivingEntity
getLastAttacker()
method_49107()
getLastAttacker()
public int
getLastHurtByMobTimestamp()
method_6117()
getLastAttackedTime()
public void
setLastHurtByPlayer(Player player, int timeToRemember)
method_66277(class_1657 arg0, int arg1)
setAttacking(PlayerEntity attackingPlayer, int playerHitTimer)
public void
setLastHurtByPlayer(UUID player, int timeToRemember)
method_66278(UUID arg0, int arg1)
setAttacking(UUID attackingPlayer, int playerHitTimer)
private void
setLastHurtByPlayer(EntityReference<Player> player, int timeToRemember)
method_29505(class_10583<class_1657> arg0, int arg1)
setAttacking(LazyEntityReference<PlayerEntity> attackingPlayer, int playerHitTimer)
public void
setLastHurtByMob(LivingEntity hurtBy)
method_6015(class_1309 arg0)
setAttacker(LivingEntity attacker)
public LivingEntity
getLastHurtMob()
method_6052()
getAttacking()
public int
getLastHurtMobTimestamp()
method_6083()
getLastAttackTime()
public void
setLastHurtMob(Entity target)
method_6114(class_1297 arg0)
onAttacking(Entity target)
public int
getNoActionTime()
method_6131()
getDespawnCounter()
public void
setNoActionTime(int noActionTime)
method_16826(int arg0)
setDespawnCounter(int despawnCounter)
public boolean
shouldDiscardFriction()
method_35053()
hasNoDrag()
public void
setDiscardFriction(boolean discardFriction)
method_35054(boolean arg0)
setNoDrag(boolean noDrag)
protected boolean
doesEmitEquipEvent(EquipmentSlot slot)
method_44201(class_1304 arg0)
isArmorSlot(EquipmentSlot slot)
public void
onEquipItem(EquipmentSlot slot, ItemStack oldStack, ItemStack stack)
method_6116(class_1304 arg0, class_1799 arg1, class_1799 arg2)
onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack)
protected RegistryEntry<SoundEvent>
getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable)
method_66667(class_1304 arg0, class_1799 arg1, class_10192 arg2)
getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent)
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
public void
onRemoval(Entity$RemovalReason reason)
method_64615(class_1297$class_5529 arg0)
onRemove(Entity$RemovalReason arg0)
protected void
triggerOnDeathMobEffects(ServerLevel level, Entity$RemovalReason reason)
method_60699(class_3218 arg0, class_1297$class_5529 arg1)
onRemoval(ServerWorld world, Entity$RemovalReason reason)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public ItemEntity
drop(ItemStack itemStack, boolean randomly, boolean thrownFromHand)
method_7329(class_1799 arg0, boolean arg1, boolean arg2)
dropItem(ItemStack stack, boolean dropAtSelf, boolean retainOwnership)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
updateDataBeforeSync()
method_75725()
beforePacketsSent()
protected void
tickEffects()
method_6050()
tickStatusEffects()
private void
updateDirtyEffects()
method_75126()
handleEffectsChanged()
protected void
updateInvisibilityStatus()
method_6027()
updatePotionVisibility()
private void
updateSynchronizedMobEffectParticles()
method_58150()
updatePotionSwirls()
private void
updateGlowingStatus()
method_36362()
updateGlowing()
public double
getVisibilityPercent(Entity targetingEntity)
method_18390(class_1297 arg0)
getAttackDistanceScalingFactor(Entity entity)
public boolean
canAttack(LivingEntity target)
method_18395(class_1309 arg0)
canTarget(LivingEntity target)
public boolean
canBeSeenAsEnemy()
method_33190()
canTakeDamage()
public boolean
canBeSeenByAnyone()
method_36608()
isPartOfGame()
public static boolean
areAllEffectsAmbient(Collection<MobEffectInstance> effects)
method_6089(Collection<class_1293> arg0)
containsOnlyAmbientEffects(Collection<StatusEffectInstance> effects)
protected void
removeEffectParticles()
method_6069()
clearPotionSwirls()
public boolean
removeAllEffects()
method_6012()
clearStatusEffects()
public Collection<StatusEffectInstance>
getActiveEffects()
method_6026()
getStatusEffects()
public Map<RegistryEntry<StatusEffect>, StatusEffectInstance>
getActiveEffectsMap()
method_6088()
getActiveStatusEffects()
public boolean
hasEffect(Holder<MobEffect> effect)
method_6059(class_6880<class_1291> arg0)
hasStatusEffect(RegistryEntry<StatusEffect> effect)
public StatusEffectInstance
getEffect(Holder<MobEffect> effect)
method_6112(class_6880<class_1291> arg0)
getStatusEffect(RegistryEntry<StatusEffect> effect)
public float
getEffectBlendFactor(Holder<MobEffect> effect, float partialTicks)
method_66279(class_6880<class_1291> arg0, float arg1)
getEffectFadeFactor(RegistryEntry<StatusEffect> effect, float tickProgress)
public final boolean
addEffect(MobEffectInstance newEffect)
method_6092(class_1293 arg0)
addStatusEffect(StatusEffectInstance effect)
public boolean
addEffect(MobEffectInstance newEffect, Entity source)
method_37222(class_1293 arg0, class_1297 arg1)
addStatusEffect(StatusEffectInstance effect, Entity source)
public boolean
canBeAffected(MobEffectInstance newEffect)
method_6049(class_1293 arg0)
canHaveStatusEffect(StatusEffectInstance effect)
public void
forceAddEffect(MobEffectInstance newEffect, Entity source)
method_26082(class_1293 arg0, class_1297 arg1)
setStatusEffect(StatusEffectInstance effect, Entity source)
public boolean
isInvertedHealAndHarm()
method_5999()
hasInvertedHealingAndHarm()
public final StatusEffectInstance
removeEffectNoUpdate(Holder<MobEffect> effect)
method_6111(class_6880<class_1291> arg0)
removeStatusEffectInternal(RegistryEntry<StatusEffect> effect)
public boolean
removeEffect(Holder<MobEffect> effect)
method_6016(class_6880<class_1291> arg0)
removeStatusEffect(RegistryEntry<StatusEffect> effect)
protected void
onEffectAdded(MobEffectInstance effect, Entity source)
method_6020(class_1293 arg0, class_1297 arg1)
onStatusEffectApplied(StatusEffectInstance effect, Entity source)
public void
sendEffectToPassengers(MobEffectInstance effect)
method_52197(class_1293 arg0)
sendEffectToControllingPlayer(StatusEffectInstance effect)
protected void
onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, Entity source)
method_6009(class_1293 arg0, boolean arg1, class_1297 arg2)
onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, Entity source)
protected void
onEffectsRemoved(Collection<MobEffectInstance> effects)
method_6129(Collection<class_1293> arg0)
onStatusEffectsRemoved(Collection<StatusEffectInstance> effects)
private void
refreshDirtyAttributes()
method_52543()
updateAttributes()
protected void
onAttributeUpdated(Holder<Attribute> attribute)
method_52540(class_6880<class_1320> arg0)
updateAttribute(RegistryEntry<EntityAttribute> attribute)
public void
heal(float heal)
method_6025(float arg0)
heal(float amount)
public float
getHealth()
method_6032()
getHealth()
public void
setHealth(float health)
method_6033(float arg0)
setHealth(float health)
public boolean
isDeadOrDying()
method_29504()
isDead()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public float
applyItemBlocking(ServerLevel level, DamageSource source, float damage)
method_67346(class_3218 arg0, class_1282 arg1, float arg2)
getDamageBlockedAmount(ServerWorld world, DamageSource source, float amount)
private void
playSecondaryHurtSound(DamageSource source)
method_66283(class_1282 arg0)
playThornsSound(DamageSource damageSource)
protected void
resolveMobResponsibleForDamage(DamageSource source)
method_65344(class_1282 arg0)
becomeAngry(DamageSource damageSource)
protected PlayerEntity
resolvePlayerResponsibleForDamage(DamageSource source)
method_65343(class_1282 arg0)
setAttackingPlayer(DamageSource damageSource)
protected void
blockUsingItem(ServerLevel level, LivingEntity attacker)
method_6090(class_3218 arg0, class_1309 arg1)
takeShieldHit(ServerWorld world, LivingEntity attacker)
protected void
blockedByItem(LivingEntity defender)
method_6060(class_1309 arg0)
knockback(LivingEntity target)
private boolean
checkTotemDeathProtection(DamageSource killingDamage)
method_6095(class_1282 arg0)
tryUseDeathProtector(DamageSource source)
public DamageSource
getLastDamageSource()
method_6081()
getRecentDamageSource()
protected void
playHurtSound(DamageSource source)
method_6013(class_1282 arg0)
playHurtSound(DamageSource damageSource)
public void
makeSound(SoundEvent sound)
method_56078(class_3414 arg0)
playSound(SoundEvent sound)
private void
breakItem(ItemStack itemStack)
method_6045(class_1799 arg0)
playEquipmentBreakEffects(ItemStack stack)
public void
die(DamageSource source)
method_6078(class_1282 arg0)
onDeath(DamageSource damageSource)
protected void
createWitherRose(LivingEntity killer)
method_23733(class_1309 arg0)
onKilledBy(LivingEntity adversary)
protected void
dropAllDeathLoot(ServerLevel level, DamageSource source)
method_16080(class_3218 arg0, class_1282 arg1)
drop(ServerWorld world, DamageSource damageSource)
protected void
dropEquipment(ServerLevel level)
method_16078(class_3218 arg0)
dropInventory(ServerWorld world)
protected void
dropExperience(ServerLevel level, Entity killer)
method_23883(class_3218 arg0, class_1297 arg1)
dropExperience(ServerWorld world, Entity attacker)
protected void
dropCustomDeathLoot(ServerLevel level, DamageSource source, boolean killedByPlayer)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
dropEquipment(ServerWorld world, DamageSource source, boolean causedByPlayer)
public long
getLootTableSeed()
method_51851()
getLootTableSeed()
protected float
getKnockback(Entity target, DamageSource damageSource)
method_59924(class_1297 arg0, class_1282 arg1)
getAttackKnockbackAgainst(Entity target, DamageSource damageSource)
protected void
dropFromLootTable(ServerLevel level, DamageSource source, boolean playerKilled)
method_16077(class_3218 arg0, class_1282 arg1, boolean arg2)
dropLoot(ServerWorld world, DamageSource damageSource, boolean causedByPlayer)
public void
dropFromLootTable(ServerLevel level, DamageSource source, boolean playerKilled, ResourceKey<LootTable> lootTable)
method_72395(class_3218 arg0, class_1282 arg1, boolean arg2, class_5321<class_52> arg3)
dropLoot(ServerWorld world, DamageSource damageSource, boolean causedByPlayer, RegistryKey<LootTable> lootTableKey)
public void
dropFromLootTable(ServerLevel level, DamageSource source, boolean playerKilled, ResourceKey<LootTable> lootTable, Consumer<ItemStack> itemStackConsumer)
method_72396(class_3218 arg0, class_1282 arg1, boolean arg2, class_5321<class_52> arg3, Consumer<class_1799> arg4)
generateLoot(ServerWorld world, DamageSource damageSource, boolean causedByPlayer, RegistryKey<LootTable> lootTableKey, Consumer<ItemStack> lootConsumer)
public boolean
dropFromEntityInteractLootTable(ServerLevel level, ResourceKey<LootTable> key, Entity interactingEntity, ItemInstance tool, BiConsumer<ServerLevel, ItemStack> consumer)
method_72394(class_3218 arg0, class_5321<class_52> arg1, class_1297 arg2, class_1_96 arg3, BiConsumer<class_3218, class_1799> arg4)
forEachBrushedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, Entity interactingEntity, ItemStackView tool, BiConsumer<ServerWorld, ItemStack> lootConsumer)
public boolean
dropFromGiftLootTable(ServerLevel level, ResourceKey<LootTable> key, BiConsumer<ServerLevel, ItemStack> consumer)
method_64169(class_3218 arg0, class_5321<class_52> arg1, BiConsumer<class_3218, class_1799> arg2)
forEachGiftedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, BiConsumer<ServerWorld, ItemStack> lootConsumer)
protected void
dropFromShearingLootTable(ServerLevel level, ResourceKey<LootTable> key, ItemInstance tool, BiConsumer<ServerLevel, ItemStack> consumer)
method_61419(class_3218 arg0, class_5321<class_52> arg1, class_1_96 arg2, BiConsumer<class_3218, class_1799> arg3)
forEachShearedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, ItemStackView tool, BiConsumer<ServerWorld, ItemStack> lootConsumer)
protected boolean
dropFromLootTable(ServerLevel level, ResourceKey<LootTable> key, Function<LootParams$Builder, LootParams> paramsBuilder, BiConsumer<ServerLevel, ItemStack> consumer)
method_64170(class_3218 arg0, class_5321<class_52> arg1, Function<class_8567$class_8568, class_8567> arg2, BiConsumer<class_3218, class_1799> arg3)
forEachGeneratedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, Function<LootWorldContext$Builder, LootWorldContext> lootContextParametersFactory, BiConsumer<ServerWorld, ItemStack> lootConsumer)
public void
knockback(double power, double xd, double zd)
method_6005(double arg0, double arg1, double arg2)
takeKnockback(double strength, double x, double z)
public void
indicateDamage(double xd, double zd)
method_48761(double arg0, double arg1)
tiltScreen(double deltaX, double deltaZ)
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource source)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
private SoundEvent
getFallDamageSound(int dmg)
method_6041(int arg0)
getFallSound(int distance)
public void
skipDropExperience()
method_41329()
disableExperienceDropping()
public boolean
wasExperienceConsumed()
method_41330()
isExperienceDroppingDisabled()
public float
getHurtDir()
method_48157()
getDamageTiltYaw()
protected Box
getHitbox()
method_53510()
getHitbox()
public Map<Enchantment, Set<EnchantmentLocationBasedEffect>>
activeLocationDependentEnchantments(EquipmentSlot slot)
method_59926(class_1304 arg0)
getLocationBasedEnchantmentEffects(EquipmentSlot slot)
public void
postPiercingAttack()
method_75125()
useAttackEnchantmentEffects()
public LivingEntity$FallSounds
getFallSounds()
method_39760()
getFallSounds()
public Optional<BlockPos>
getLastClimbablePos()
method_24832()
getClimbingPos()
public boolean
onClimbable()
method_6101()
isClimbing()
private boolean
trapdoorUsableAsLadder(BlockPos pos, BlockState state)
method_6077(class_2338 arg0, class_2680 arg1)
canEnterTrapdoor(BlockPos pos, BlockState state)
public boolean
isAlive()
method_5805()
isAlive()
public boolean
isLookingAtMe(LivingEntity target, double coneSize, boolean adjustForDistance, boolean seeThroughTransparentBlocks, double... gazeHeights)
method_64619(class_1309 arg0, double arg1, boolean arg2, boolean arg3, double... arg4)
isEntityLookingAtMe(LivingEntity entity, double tolerance, boolean scaleToleranceByDistance, boolean visualShape, double... checkedYs)
public int
getMaxFallDistance()
method_5850()
getSafeFallDistance()
protected final int
getComfortableFallDistance(float allowedDamage)
method_56993(float arg0)
getSafeFallDistance(float health)
public boolean
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double arg0, float arg1, DamageSource arg2)
public void
setIgnoreFallDamageFromCurrentImpulse(boolean ignoreFallDamage, Vec3 newImpulseImpactPos)
method_1_784(boolean arg0, class_243 arg1)
onReceiveImpulse(boolean wind, Vec3d pos)
public void
applyPostImpulseGraceTime(int ticks)
method_1_780(int arg0)
setImpulseContextResetGraceTime(int graceTime)
public boolean
isIgnoringFallDamageFromCurrentImpulse()
method_1_781()
isAffectedByImpulse()
public void
tryResetCurrentImpulseContext()
method_1_785()
resetImpulseDataIfGraceTimeReset()
public boolean
isInPostImpulseGraceTime()
method_1_782()
hasImpulseContextResetGraceTime()
public void
resetCurrentImpulseContext()
method_1_783()
resetImpulseData()
protected int
calculateFallDamage(double fallDistance, float damageModifier)
method_23329(double arg0, float arg1)
computeFallDamage(double fallDistance, float damagePerDistance)
private double
calculateFallPower(double fallDistance)
method_66669(double arg0)
getUnsafeFallDistance(double fallDistance)
protected void
playBlockFallSound()
method_23328()
playBlockFallSound()
public void
animateHurt(float yaw)
method_5879(float arg0)
animateDamage(float arg0)
public int
getArmorValue()
method_6096()
getArmor()
protected void
hurtArmor(DamageSource damageSource, float damage)
method_6105(class_1282 arg0, float arg1)
damageArmor(DamageSource source, float amount)
protected void
hurtHelmet(DamageSource damageSource, float damage)
method_36977(class_1282 arg0, float arg1)
damageHelmet(DamageSource source, float amount)
protected void
doHurtEquipment(DamageSource damageSource, float damage, EquipmentSlot... slots)
method_57292(class_1282 arg0, float arg1, class_1304... arg2)
damageEquipment(DamageSource source, float amount, EquipmentSlot... slots)
protected float
getDamageAfterArmorAbsorb(DamageSource damageSource, float damage)
method_6132(class_1282 arg0, float arg1)
applyArmorToDamage(DamageSource source, float amount)
protected float
getDamageAfterMagicAbsorb(DamageSource damageSource, float damage)
method_6036(class_1282 arg0, float arg1)
modifyAppliedDamage(DamageSource source, float amount)
protected void
actuallyHurt(ServerLevel level, DamageSource source, float dmg)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld world, DamageSource source, float amount)
public DamageTracker
getCombatTracker()
method_6066()
getDamageTracker()
public LivingEntity
getKillCredit()
method_6124()
getPrimeAdversary()
public final float
getMaxHealth()
method_6063()
getMaxHealth()
public final float
getMaxAbsorption()
method_52541()
getMaxAbsorption()
public final int
getArrowCount()
method_6022()
getStuckArrowCount()
public final void
setArrowCount(int count)
method_6097(int arg0)
setStuckArrowCount(int stuckArrowCount)
public final int
getStingerCount()
method_21753()
getStingerCount()
public final void
setStingerCount(int count)
method_21755(int arg0)
setStingerCount(int stingerCount)
private int
getCurrentSwingDuration()
method_6028()
getHandSwingDuration()
public void
swing(InteractionHand hand)
method_6104(class_1268 arg0)
swingHand(Hand hand)
public void
swing(InteractionHand hand, boolean sendToSwingingEntity)
method_23667(class_1268 arg0, boolean arg1)
swingHand(Hand hand, boolean fromServerPlayer)
public void
handleDamageEvent(DamageSource source)
method_48922(class_1282 arg0)
onDamaged(DamageSource arg0)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public float
getTicksSinceLastKineticHitFeedback(float partial)
method_75879(float arg0)
getTimeSinceLastKineticAttack(float tickProgress)
public void
makePoofParticles()
method_36549()
addDeathParticles()
private void
makeDrownParticles()
method_66276()
addBubbleParticles()
private void
onKineticHit()
method_76773()
playKineticHitSound()
private void
swapHandItems()
method_30127()
swapHandStacks()
protected void
onBelowWorld()
method_5825()
tickInVoid()
protected void
updateSwingTime()
method_6119()
tickHandSwing()
public EntityAttributeInstance
getAttribute(Holder<Attribute> attribute)
method_5996(class_6880<class_1320> arg0)
getAttributeInstance(RegistryEntry<EntityAttribute> attribute)
public double
getAttributeValue(Holder<Attribute> attribute)
method_45325(class_6880<class_1320> arg0)
getAttributeValue(RegistryEntry<EntityAttribute> attribute)
public double
getAttributeBaseValue(Holder<Attribute> attribute)
method_45326(class_6880<class_1320> arg0)
getAttributeBaseValue(RegistryEntry<EntityAttribute> attribute)
public AttributeContainer
getAttributes()
method_6127()
getAttributes()
public ItemStack
getMainHandItem()
method_6047()
getMainHandStack()
public ItemStack
getOffhandItem()
method_6079()
getOffHandStack()
public ItemStack
getItemHeldByArm(HumanoidArm arm)
method_61420(class_1306 arg0)
getStackInArm(Arm arm)
public ItemStack
getWeaponItem()
method_59958()
getWeaponStack()
public AttackRangeComponent
getAttackRangeWith(ItemStack weaponItem)
method_1_884(class_1799 arg0)
getAttackRange(ItemStack weapon)
public ItemStack
getActiveItem()
method_76694()
getActiveOrMainHandStack()
public boolean
isHolding(Item item)
method_24518(class_1792 arg0)
isHolding(Item item)
public boolean
isHolding(Predicate<ItemStack> itemPredicate)
method_24520(Predicate<class_1799> arg0)
isHolding(Predicate<ItemStack> predicate)
public ItemStack
getItemInHand(InteractionHand hand)
method_5998(class_1268 arg0)
getStackInHand(Hand hand)
public void
setItemInHand(InteractionHand hand, ItemStack itemStack)
method_6122(class_1268 arg0, class_1799 arg1)
setStackInHand(Hand hand, ItemStack stack)
public boolean
hasItemInSlot(EquipmentSlot slot)
method_6084(class_1304 arg0)
hasStackEquipped(EquipmentSlot slot)
public boolean
canUseSlot(EquipmentSlot slot)
method_56991(class_1304 arg0)
canUseSlot(EquipmentSlot slot)
public ItemStack
getItemBySlot(EquipmentSlot slot)
method_6118(class_1304 arg0)
getEquipment(EquipmentSlot slot)
public void
setItemSlot(EquipmentSlot slot, ItemStack itemStack)
method_5673(class_1304 arg0, class_1799 arg1)
setEquipment(EquipmentSlot slot, ItemStack stack)
public float
getArmorCoverPercentage()
method_18396()
getArmorVisibility()
public void
setSprinting(boolean isSprinting)
method_5728(boolean arg0)
setSprinting(boolean arg0)
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public float
getVoicePitch()
method_6017()
getSoundPitch()
protected boolean
isImmobile()
method_6062()
isImmobile()
public void
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
private void
dismountVehicle(Entity vehicle)
method_6038(class_1297 arg0)
onDismounted(Entity vehicle)
public boolean
shouldShowName()
method_5733()
shouldRenderName()
protected float
getJumpPower()
method_6106()
getJumpVelocity()
protected float
getJumpPower(float multiplier)
method_56994(float arg0)
getJumpVelocity(float strength)
public float
getJumpBoostPower()
method_37416()
getJumpBoostVelocityModifier()
public void
jumpFromGround()
method_6043()
jump()
protected void
goDownInWater()
method_6093()
knockDownwards()
protected void
jumpInLiquid(TagKey<Fluid> type)
method_6010(class_6862<class_3611> arg0)
swimUpward(TagKey<Fluid> fluid)
protected float
getWaterSlowDown()
method_6120()
getBaseWaterMovementSpeedMultiplier()
public boolean
canStandOnFluid(FluidState fluid)
method_26319(class_3610 arg0)
canWalkOnFluid(FluidState state)
protected double
getDefaultGravity()
method_7490()
getGravity()
protected double
getEffectiveGravity()
method_61426()
getEffectiveGravity()
public void
travel(Vec3 input)
method_6091(class_243 arg0)
travel(Vec3d movementInput)
public VoxelShape
getLiquidCollisionShape()
method_1_1166()
getFluidWalkingShape()
protected boolean
shouldTravelInFluid(FluidState fluidState)
method_76088(class_3610 arg0)
isTravellingInFluid(FluidState state)
protected void
travelFlying(Vec3 input, float speed)
method_70670(class_243 arg0, float arg1)
travelFlying(Vec3d movementInput, float speed)
protected void
travelFlying(Vec3 input, float waterSpeed, float lavaSpeed, float airSpeed)
method_70671(class_243 arg0, float arg1, float arg2, float arg3)
travelFlying(Vec3d movementInput, float inWaterSpeed, float inLavaSpeed, float regularSpeed)
private void
travelInAir(Vec3 input)
method_61428(class_243 arg0)
travelMidAir(Vec3d movementInput)
private void
travelInFluid(Vec3 input)
method_61429(class_243 arg0)
travelInFluid(Vec3d movementInput)
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76087(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInWater(Vec3d movementInput, double gravity, boolean falling, double y)
private void
travelInLava(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76089(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInLava(Vec3d movementInput, double gravity, boolean falling, double y)
private void
jumpOutOfFluid(double oldY)
method_76090(double arg0)
resetVerticalVelocityInFluid(double y)
private void
floatInWaterWhileRidden()
method_76086()
floatIfRidden()
private void
travelFallFlying(Vec3 input)
method_61417(class_243 arg0)
travelGliding(Vec3d movementInput)
public void
stopFallFlying()
method_66281()
stopGliding()
private Vec3d
updateFallFlyingMovement(Vec3 movement)
method_61430(class_243 arg0)
calcGlidingVelocity(Vec3d oldVelocity)
private void
handleFallFlyingCollisions(double moveHorLength, double newMoveHorLength)
method_61424(double arg0, double arg1)
checkGlidingCollision(double oldSpeed, double newSpeed)
private void
travelRidden(Player controller, Vec3 selfInput)
method_49483(class_1657 arg0, class_243 arg1)
travelControlled(PlayerEntity controllingPlayer, Vec3d movementInput)
protected void
tickRidden(Player controller, Vec3 riddenInput)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput)
protected Vec3d
getRiddenInput(Player controller, Vec3 selfInput)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput)
protected float
getRiddenSpeed(Player controller)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity controllingPlayer)
public void
calculateEntityAnimation(boolean useY)
method_29242(boolean arg0)
updateLimbs(boolean flutter)
protected void
updateWalkAnimation(float distance)
method_48565(float arg0)
updateLimbs(float posDelta)
private Vec3d
handleRelativeFrictionAndCalculateMovement(Vec3 input, float friction)
method_26318(class_243 arg0, float arg1)
applyMovementInput(Vec3d movementInput, float slipperiness)
public Vec3d
getFluidFallingAdjustedMovement(double baseGravity, boolean isFalling, Vec3 movement)
method_26317(double arg0, boolean arg1, class_243 arg2)
applyFluidMovingSpeed(double gravity, boolean falling, Vec3d motion)
private Vec3d
handleOnClimbable(Vec3 delta)
method_18801(class_243 arg0)
applyClimbingSpeed(Vec3d motion)
private float
getFrictionInfluencedSpeed(float blockFriction)
method_18802(float arg0)
getMovementSpeed(float slipperiness)
protected float
getFlyingSpeed()
method_49484()
getOffGroundSpeed()
public float
getSpeed()
method_6029()
getMovementSpeed()
public void
setSpeed(float speed)
method_6125(float arg0)
setMovementSpeed(float movementSpeed)
public boolean
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld world, Entity target)
public void
causeExtraKnockback(Entity target, float knockback, Vec3 oldMovement)
method_75122(class_1297 arg0, float arg1, class_243 arg2)
knockbackTarget(Entity target, float strength, Vec3d playerTargetVelocity)
protected void
playAttackSound()
method_59928()
playAttackSound()
public void
tick()
method_5773()
tick()
public boolean
wasRecentlyStabbed(Entity target, int allowedTime)
method_75118(class_1297 arg0, int arg1)
isInPiercingCooldown(Entity target, int cooldownTicks)
public void
rememberStabbedEntity(Entity target)
method_75119(class_1297 arg0)
startPiercingCooldown(Entity target)
public int
stabbedEntities(Predicate<Entity> filter)
method_76444(Predicate<class_1297> arg0)
getPiercedEntityCount(Predicate<Entity> predicate)
public boolean
stabAttack(EquipmentSlot weaponSlot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts)
method_75123(class_1304 arg0, class_1297 arg1, float arg2, boolean arg3, boolean arg4, boolean arg5)
pierce(EquipmentSlot slot, Entity target, float damage, boolean dealDamage, boolean knockback, boolean dismount)
public void
onAttack()
method_75124()
beforePlayerAttack()
private void
detectEquipmentUpdates()
method_30128()
sendEquipmentChanges()
private Map<EquipmentSlot, ItemStack>
collectEquipmentChanges()
method_30129()
getEquipmentChanges()
public boolean
equipmentHasChanged(ItemStack previous, ItemStack current)
method_45324(class_1799 arg0, class_1799 arg1)
areItemsDifferent(ItemStack stack, ItemStack stack2)
private void
handleHandSwap(Map<EquipmentSlot, ItemStack> changedItems)
method_30121(Map<class_1304, class_1799> arg0)
checkHandStackSwap(Map<EquipmentSlot, ItemStack> equipmentChanges)
private void
handleEquipmentChanges(Map<EquipmentSlot, ItemStack> changedItems)
method_30123(Map<class_1304, class_1799> arg0)
sendEquipmentChanges(Map<EquipmentSlot, ItemStack> equipmentChanges)
protected void
tickHeadTurn(float yBodyRotT)
method_6031(float arg0)
turnHead(float bodyRotation)
protected float
getMaxHeadRotationRelativeToBody()
method_53964()
getMaxRelativeHeadRotation()
public void
aiStep()
method_6007()
tickMovement()
protected void
applyInput()
method_66282()
tickMovementInput()
public boolean
isSensitiveToWater()
method_29503()
hurtByWater()
public boolean
isJumping()
method_70673()
isJumping()
protected void
updateFallFlying()
method_6053()
tickGliding()
protected boolean
canGlide()
method_63628()
canGlide()
protected void
serverAiStep()
method_6023()
tickNewAi()
protected void
pushEntities()
method_6070()
tickCramming()
protected void
checkAutoSpinAttack(AABB old, AABB current)
method_6035(class_238 arg0, class_238 arg1)
tickRiptide(Box a, Box b)
protected void
doPush(Entity entity)
method_6087(class_1297 arg0)
pushAway(Entity entity)
protected void
doAutoAttackOnTouch(LivingEntity entity)
method_5997(class_1309 arg0)
attackLivingEntity(LivingEntity target)
public boolean
isAutoSpinAttack()
method_6123()
isUsingRiptide()
public void
stopRiding()
method_5848()
stopRiding()
public void
rideTick()
method_5842()
tickRiding()
public PositionInterpolator
getInterpolation()
method_66233()
getInterpolator()
public void
lerpHeadTo(float yRot, int steps)
method_5683(float arg0, int arg1)
updateTrackedHeadRotation(float arg0, int arg1)
public void
setJumping(boolean jump)
method_6100(boolean arg0)
setJumping(boolean jumping)
public void
onItemPickup(ItemEntity entity)
method_29499(class_1542 arg0)
triggerItemPickedUpByEntityCriteria(ItemEntity item)
public void
take(Entity entity, int orgCount)
method_6103(class_1297 arg0, int arg1)
sendPickup(Entity item, int count)
public boolean
hasLineOfSight(Entity target)
method_6057(class_1297 arg0)
canSee(Entity entity)
public boolean
hasLineOfSight(Entity target, ClipContext$Block blockCollidingContext, ClipContext$Fluid fluidCollidingContext, double eyeHeight)
method_64618(class_1297 arg0, class_3959$class_3960 arg1, class_3959$class_242 arg2, double arg3)
canSee(Entity entity, RaycastContext$ShapeType shapeType, RaycastContext$FluidHandling fluidHandling, double entityY)
public float
getViewYRot(float a)
method_5705(float arg0)
getYaw(float arg0)
public float
getAttackAnim(float a)
method_6055(float arg0)
getHandSwingProgress(float tickProgress)
public boolean
isPickable()
method_5863()
canHit()
public boolean
isPushable()
method_5810()
isPushable()
public float
getYHeadRot()
method_5791()
getHeadYaw()
public void
setYHeadRot(float yHeadRot)
method_5847(float arg0)
setHeadYaw(float arg0)
public void
setYBodyRot(float yBodyRot)
method_5636(float arg0)
setBodyYaw(float arg0)
public Vec3d
getRelativePortalPosition(Direction$Axis axis, BlockUtil$FoundRectangle portalArea)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis arg0, BlockLocating$Rectangle arg1)
public static Vec3d
resetForwardDirectionOfRelativePortalPosition(Vec3 offsets)
method_31079(class_243 arg0)
positionInPortal(Vec3d pos)
public float
getAbsorptionAmount()
method_6067()
getAbsorptionAmount()
public final void
setAbsorptionAmount(float absorptionAmount)
method_6073(float arg0)
setAbsorptionAmount(float absorptionAmount)
protected void
internalSetAbsorptionAmount(float absorptionAmount)
method_52544(float arg0)
setAbsorptionAmountUnclamped(float absorptionAmount)
public void
onEnterCombat()
method_6000()
enterCombat()
public void
onLeaveCombat()
method_6044()
endCombat()
protected void
updateEffectVisibility()
method_6008()
markEffectsDirty()
public abstract Arm
getMainArm()
method_6068()
getMainArm()
public boolean
isUsingItem()
method_6115()
isUsingItem()
public Hand
getUsedItemHand()
method_6058()
getActiveHand()
private void
updatingUsingItem()
method_6076()
tickActiveItemStack()
private ItemEntity
createItemStackToDrop(ItemStack itemStack, boolean randomly, boolean thrownFromHand)
method_67517(class_1799 arg0, boolean arg1, boolean arg2)
createItemEntity(ItemStack stack, boolean atSelf, boolean retainOwnership)
protected void
updateUsingItem(ItemStack useItem)
method_37119(class_1799 arg0)
tickItemStackUsage(ItemStack stack)
private void
updateSwimAmount()
method_6072()
updateLeaningPitch()
protected void
setLivingEntityFlag(int flag, boolean value)
method_6085(int arg0, boolean arg1)
setLivingFlag(int mask, boolean value)
public void
startUsingItem(InteractionHand hand)
method_6019(class_1268 arg0)
setCurrentHand(Hand hand)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public void
lookAt(EntityAnchorArgument$Anchor anchor, Vec3 pos)
method_5702(class_2183$class_2184 arg0, class_243 arg1)
lookAt(EntityAnchorArgumentType$EntityAnchor arg0, Vec3d arg1)
public float
getPreciseBodyRotation(float partial)
method_60951(float arg0)
lerpYaw(float arg0)
public void
spawnItemParticles(ItemStack itemStack, int count)
method_6037(class_1799 arg0, int arg1)
spawnItemParticles(ItemStack stack, int count)
protected void
completeUsingItem()
method_6040()
consumeItem()
public void
handleExtraItemsCreatedOnUse(ItemStack extraCreatedRemainder)
method_64399(class_1799 arg0)
giveOrDropStack(ItemStack stack)
public ItemStack
getUseItem()
method_6030()
getActiveItem()
public int
getUseItemRemainingTicks()
method_6014()
getItemUseTimeLeft()
public int
getTicksUsingItem()
method_6048()
getItemUseTime()
public float
getTicksUsingItem(float partialTicks)
method_75120(float arg0)
getItemUseTime(float baseTime)
public void
releaseUsingItem()
method_6075()
stopUsingItem()
public void
stopUsingItem()
method_6021()
clearActiveItem()
public boolean
isBlocking()
method_6039()
isBlocking()
public ItemStack
getItemBlockingWith()
method_62821()
getBlockingItem()
public boolean
isSuppressingSlidingDownLadder()
method_21754()
isHoldingOntoLadder()
public boolean
isFallFlying()
method_6128()
isGliding()
public boolean
isVisuallySwimming()
method_20232()
isInSwimmingPose()
public int
getFallFlyingTicks()
method_6003()
getGlidingTicks()
public boolean
randomTeleport(double xx, double yy, double zz, boolean showParticles)
method_6082(double arg0, double arg1, double arg2, boolean arg3)
teleport(double x, double y, double z, boolean particleEffects)
public boolean
isAffectedByPotions()
method_6086()
isAffectedBySplashPotions()
public boolean
attackable()
method_6102()
isMobOrPlayer()
public void
setRecordPlayingNearby(BlockPos jukebox, boolean isPlaying)
method_6006(class_2338 arg0, boolean arg1)
setNearbySongPlaying(BlockPos songPosition, boolean playing)
public boolean
canPickUpLoot()
method_5936()
canPickUpLoot()
public final EntityDimensions
getDimensions(Pose pose)
method_18377(class_4050 arg0)
getDimensions(EntityPose arg0)
protected EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose pose)
public com.google.common.collect.ImmutableList<EntityPose>
getDismountPoses()
method_24831()
getPoses()
public Box
getLocalBoundsForPose(Pose pose)
method_24833(class_4050 arg0)
getBoundingBox(EntityPose pose)
protected boolean
wouldNotSuffocateAtTargetPose(Pose pose)
method_52542(class_4050 arg0)
wouldNotSuffocateInPose(EntityPose pose)
public boolean
canUsePortal(boolean ignorePassenger)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public Optional<BlockPos>
getSleepingPos()
method_18398()
getSleepingPosition()
public void
setSleepingPos(BlockPos bedPosition)
method_18402(class_2338 arg0)
setSleepingPosition(BlockPos pos)
public void
clearSleepingPos()
method_18399()
clearSleepingPosition()
public boolean
isSleeping()
method_6113()
isSleeping()
public void
startSleeping(BlockPos bedPosition)
method_18403(class_2338 arg0)
sleep(BlockPos pos)
private void
setPosToBed(BlockPos bedPosition)
method_18392(class_2338 arg0)
setPositionInBed(BlockPos pos)
private boolean
checkBedExists()
method_18406()
isSleepingInBed()
public void
stopSleeping()
method_18400()
wakeUp()
public Direction
getBedOrientation()
method_18401()
getSleepingDirection()
public boolean
isInWall()
method_5757()
isInsideWall()
public ItemStack
getProjectile(ItemStack heldWeapon)
method_18808(class_1799 arg0)
getProjectileType(ItemStack stack)
private static byte
entityEventForEquipmentBreak(EquipmentSlot equipmentSlot)
method_20237(class_1304 arg0)
getEquipmentBreakStatus(EquipmentSlot slot)
public void
onEquippedItemBroken(Item brokenItem, EquipmentSlot inSlot)
method_20235(class_1792 arg0, class_1304 arg1)
sendEquipmentBreakStatus(Item item, EquipmentSlot slot)
private void
stopLocationBasedEffects(ItemStack previous, EquipmentSlot inSlot, AttributeMap attributes)
method_61422(class_1799 arg0, class_1304 arg1, class_5131 arg2)
onEquipmentRemoved(ItemStack removedEquipment, EquipmentSlot slot, AttributeContainer container)
public final boolean
canEquipWithDispenser(ItemStack itemStack)
method_63625(class_1799 arg0)
canEquipFromDispenser(ItemStack stack)
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot slot)
public final EquipmentSlot
getEquipmentSlotForItem(ItemStack itemStack)
method_32326(class_1799 arg0)
getPreferredEquipmentSlot(ItemStack stack)
public final boolean
isEquippableInSlot(ItemStack itemStack, EquipmentSlot slot)
method_63623(class_1799 arg0, class_1304 arg1)
canEquip(ItemStack stack, EquipmentSlot slot)
private static StackReference
createEquipmentSlotAccess(LivingEntity entity, EquipmentSlot equipmentSlot)
method_32321(class_1309 arg0, class_1304 arg1)
getStackReference(LivingEntity entity, EquipmentSlot slot)
private static EquipmentSlot
getEquipmentSlot(int slot)
method_32322(int arg0)
getEquipmentSlot(int slotId)
public StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public boolean
canFreeze()
method_32316()
canFreeze()
public boolean
isCurrentlyGlowing()
method_5851()
isGlowing()
public float
getVisualRotationYInDegrees()
method_73188()
getBodyYaw()
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public float
getSecondsToDisableBlocking()
method_67125()
getWeaponDisableBlockingForSeconds()
public float
maxUpStep()
method_49476()
getStepHeight()
public Vec3d
getPassengerRidingPosition(Entity passenger)
method_52538(class_1297 arg0)
getPassengerRidingPos(Entity arg0)
protected void
lerpHeadRotationStep(int lerpHeadSteps, double targetYHeadRot)
method_52539(int arg0, double arg1)
lerpHeadYaw(int headTrackingIncrements, double serverHeadYaw)
public void
igniteForTicks(int numberOfTicks)
method_56073(int arg0)
setOnFireForTicks(int arg0)
public boolean
hasInfiniteMaterials()
method_56992()
isInCreativeMode()
public boolean
isInvulnerableTo(ServerLevel level, DamageSource source)
method_5679(class_3218 arg0, class_1282 arg1)
isInvulnerableTo(ServerWorld world, DamageSource source)
public static boolean
canGlideUsing(ItemStack itemStack, EquipmentSlot slot)
method_63624(class_1799 arg0, class_1304 arg1)
canGlideWith(ItemStack stack, EquipmentSlot slot)
public int
getLastHurtByPlayerMemoryTime()
method_63627()
getPlayerHitTimer()
public boolean
isTransmittingWaypoint()
method_70674()
hasWaypoint()
public Optional<ServerWaypoint$WaypointTracker>
makeWaypointConnectionWith(ServerPlayer player)
method_70672(class_3222 arg0)
createTracker(ServerPlayerEntity arg0)
public Waypoint$Config
waypointIcon()
method_70675()
getWaypointConfig()
private static boolean
lambda$createEquipmentSlotAccess$0(LivingEntity arg0, EquipmentSlot arg1, ItemStack arg2)
method_32323(class_1309 arg0, class_1304 arg1, class_1799 arg2)
method_32323(LivingEntity arg0, EquipmentSlot arg1, ItemStack stack)
private static void
lambda$stopLocationBasedEffects$0(AttributeMap arg0, Holder arg1, AttributeModifier arg2)
method_61421(class_5131 arg0, class_6880 arg1, class_1322 arg2)
method_61421(AttributeContainer arg0, RegistryEntry attribute, EntityAttributeModifier modifier)
private void
lambda$stopSleeping$0(BlockPos arg0)
method_18404(class_2338 arg0)
method_18404(BlockPos pos)
private static Vec3d
lambda$stopSleeping$1(BlockPos arg0)
method_20477(class_2338 arg0)
method_20477(BlockPos arg0)
private Boolean
lambda$checkBedExists$0(BlockPos arg0)
method_18405(class_2338 arg0)
method_18405(BlockPos pos)
private boolean
lambda$updateFallFlying$0(EquipmentSlot arg0)
method_63629(class_1304 arg0)
method_63629(EquipmentSlot slot)
private void
lambda$handleEquipmentChanges$0(List arg0, EquipmentSlot arg1, ItemStack arg2)
method_66668(List arg0, class_1304 arg1, class_1799 arg2)
method_66668(List arg0, EquipmentSlot slot, ItemStack stack)
private void
lambda$collectEquipmentChanges$0(Holder arg0, AttributeModifier arg1)
method_61423(class_6880 arg0, class_1322 arg1)
method_61423(RegistryEntry attribute, EntityAttributeModifier modifier)
private DamageSource
lambda$stabAttack$0()
method_75121()
method_75121()
private static Vec3d
lambda$dismountVehicle$0(double arg0, Vec3 arg1)
method_61418(double arg0, class_243 arg1)
method_61418(double arg0, Vec3d pos)
private static boolean
lambda$isHolding$0(Item arg0, ItemStack arg1)
method_24519(class_1792 arg0, class_1799 arg1)
method_24519(Item arg0, ItemStack stack)
private static it.unimi.dsi.fastutil.objects.Reference2ObjectMap
lambda$activeLocationDependentEnchantments$0(EquipmentSlot arg0)
method_61427(class_1304 arg0)
method_61427(EquipmentSlot slotx)
private static void
lambda$dropFromLootTable$1(BiConsumer arg0, ServerLevel arg1, ItemStack arg2)
method_64448(BiConsumer arg0, class_3218 arg1, class_1799 arg2)
method_64448(BiConsumer arg0, ServerWorld arg1, ItemStack stack)
private LootWorldContext
lambda$dropFromShearingLootTable$0(ItemInstance arg0, LootParams$Builder arg1)
method_64171(class_1_96 arg0, class_8567$class_8568 arg1)
method_64171(ItemStackView arg0, LootWorldContext$Builder parameterSetBuilder)
private LootWorldContext
lambda$dropFromGiftLootTable$0(LootParams$Builder arg0)
method_64172(class_8567$class_8568 arg0)
method_64172(LootWorldContext$Builder parameterSetBuilder)
private LootWorldContext
lambda$dropFromEntityInteractLootTable$0(Entity arg0, ItemInstance arg1, LootParams$Builder arg2)
method_72397(class_1297 arg0, class_1_96 arg1, class_8567$class_8568 arg2)
method_72397(Entity arg0, ItemStackView arg1, LootWorldContext$Builder parameterSetBuilder)
private void
lambda$dropFromLootTable$0(ServerLevel arg0, ItemStack arg1)
method_64449(class_3218 arg0, class_1799 arg1)
method_64449(ServerWorld arg0, ItemStack stack)
private static Boolean
lambda$applyItemBlocking$0(DamageSource arg0, HolderSet arg1)
method_1_2938(class_1282 arg0, class_6885 arg1)
method_1_2938(DamageSource arg0, RegistryEntryList arg1)
private void
lambda$tickEffects$0(MobEffectInstance arg0)
method_24311(class_1293 arg0)
method_24311(StatusEffectInstance arg0)
private void
lambda$readAdditionalSaveData$2(Brain$Packed arg0)
method_71377(class_4095$class_1_142 arg0)
method_71377(Brain$State state)
private void
lambda$readAdditionalSaveData$1(BlockPos arg0)
method_67650(class_2338 arg0)
method_67650(BlockPos pos)
private void
lambda$readAdditionalSaveData$0(String arg0)
method_68264(String arg0)
method_68264(String team)
private static void
lambda$addAdditionalSaveData$0(ValueOutput arg0, BlockPos arg1)
method_71375(class_11372 arg0, class_2338 arg1)
method_71375(WriteView arg0, BlockPos pos)
private static ItemStack
lambda$new$0(EquipmentSlot arg0)
method_66670(class_1304 arg0)
method_66670(EquipmentSlot slot)
private static boolean
lambda$static$0(LivingEntity arg0)
method_64620(class_1309 arg0)
method_64620(LivingEntity entity)