Uses of Class
net.minecraft.world.entity.LivingEntity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of LivingEntity in net.minecraft.advancements.critereon
-
Uses of LivingEntity in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate int
Gui.getVehicleMaxHearts
(LivingEntity p_93023_) void
GuiGraphics.renderItem
(LivingEntity p_282154_, ItemStack p_282777_, int p_282110_, int p_281371_, int p_283572_) private void
GuiGraphics.renderItem
(LivingEntity p_283524_, Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) private void
GuiGraphics.renderItem
(LivingEntity p_282619_, Level p_281754_, ItemStack p_281675_, int p_281271_, int p_282210_, int p_283260_, int p_281995_) -
Uses of LivingEntity in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionstatic void
InventoryScreen.renderEntityInInventory
(GuiGraphics p_282665_, float p_296361_, float p_294489_, float p_319934_, org.joml.Vector3f p_295026_, org.joml.Quaternionf p_281880_, org.joml.Quaternionf p_282882_, LivingEntity p_282466_) static void
InventoryScreen.renderEntityInInventoryFollowsAngle
(GuiGraphics p_282802_, int p_275688_, int p_275245_, int p_275535_, int p_294406_, int p_294663_, float p_275604_, float angleXComponent, float angleYComponent, LivingEntity p_275689_) static void
InventoryScreen.renderEntityInInventoryFollowsMouse
(GuiGraphics p_282802_, int p_275688_, int p_275245_, int p_275535_, int p_294406_, int p_294663_, float p_275604_, float p_275546_, float p_295352_, LivingEntity p_275689_) -
Uses of LivingEntity in net.minecraft.client.model
Modifier and TypeClassDescriptionclass
ElytraModel<T extends LivingEntity>
class
EndermanModel<T extends LivingEntity>
class
HumanoidArmorModel<T extends LivingEntity>
class
HumanoidModel<T extends LivingEntity>
class
PlayerModel<T extends LivingEntity>
Modifier and TypeMethodDescription<T extends LivingEntity>
voidHumanoidModel.ArmPose.applyTransform
(HumanoidModel<T> model, T entity, HumanoidArm arm) Modifier and TypeMethodDescriptionstatic void
AnimationUtils.animateCrossbowCharge
(ModelPart p_102087_, ModelPart p_102088_, LivingEntity p_102089_, boolean p_102090_) -
Uses of LivingEntity in net.minecraft.client.player
-
Uses of LivingEntity in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionprivate float
LightTexture.calculateDarknessScale
(LivingEntity p_234313_, float p_234314_, float p_234315_) float
FogRenderer.DarknessFogFunction.getModifiedVoidDarkness
(LivingEntity p_234189_, MobEffectInstance p_234190_, float p_234191_, float p_234192_) default float
FogRenderer.MobEffectFogFunction.getModifiedVoidDarkness
(LivingEntity p_234208_, MobEffectInstance p_234209_, float p_234210_, float p_234211_) static float
GameRenderer.getNightVisionScale
(LivingEntity p_109109_, float p_109110_) default boolean
FogRenderer.MobEffectFogFunction.isEnabled
(LivingEntity p_234206_, float p_234207_) void
ItemInHandRenderer.renderItem
(LivingEntity p_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, boolean p_270203_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) void
FogRenderer.BlindnessFogFunction.setupFog
(FogRenderer.FogData p_234181_, LivingEntity p_234182_, MobEffectInstance p_234183_, float p_234184_, float p_234185_) void
FogRenderer.DarknessFogFunction.setupFog
(FogRenderer.FogData p_234194_, LivingEntity p_234195_, MobEffectInstance p_234196_, float p_234197_, float p_234198_) void
FogRenderer.MobEffectFogFunction.setupFog
(FogRenderer.FogData p_234212_, LivingEntity p_234213_, MobEffectInstance p_234214_, float p_234215_, float p_234216_) -
Uses of LivingEntity in net.minecraft.client.renderer.block.model
Modifier and TypeMethodDescriptionItemOverrides.resolve
(BakedModel p_173465_, ItemStack p_173466_, ClientLevel p_173467_, LivingEntity p_173468_, int p_173469_) -
Uses of LivingEntity in net.minecraft.client.renderer.entity
Modifier and TypeClassDescriptionclass
LivingEntityRenderer<T extends LivingEntity,
M extends EntityModel<T>> Modifier and TypeMethodDescriptionItemRenderer.getModel
(ItemStack p_174265_, Level p_174266_, LivingEntity p_174267_, int p_174268_) static int
LivingEntityRenderer.getOverlayCoords
(LivingEntity p_115339_, float p_115340_) private Vec3
GuardianRenderer.getPosition
(LivingEntity p_114803_, double p_114804_, float p_114805_) static boolean
LivingEntityRenderer.isEntityUpsideDown
(LivingEntity p_194454_) void
ItemRenderer.renderStatic
(LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, boolean p_270434_, PoseStack p_270230_, MultiBufferSource p_270411_, Level p_270641_, int p_270595_, int p_270927_, int p_270845_) -
Uses of LivingEntity in net.minecraft.client.renderer.entity.layers
Modifier and TypeClassDescriptionclass
ArrowLayer<T extends LivingEntity,
M extends PlayerModel<T>> class
BeeStingerLayer<T extends LivingEntity,
M extends PlayerModel<T>> class
CrossedArmsItemLayer<T extends LivingEntity,
M extends EntityModel<T>> class
CustomHeadLayer<T extends LivingEntity,
M extends EntityModel<T> & HeadedModel> class
ElytraLayer<T extends LivingEntity,
M extends EntityModel<T>> class
EnderEyesLayer<T extends LivingEntity>
class
HumanoidArmorLayer<T extends LivingEntity,
M extends HumanoidModel<T>, A extends HumanoidModel<T>> class
ItemInHandLayer<T extends LivingEntity,
M extends EntityModel<T> & ArmedModel> class
SlimeOuterLayer<T extends LivingEntity>
class
SpinAttackEffectLayer<T extends LivingEntity>
class
StuckInBodyLayer<T extends LivingEntity,
M extends PlayerModel<T>> class
VillagerProfessionLayer<T extends LivingEntity & VillagerDataHolder,
M extends EntityModel<T> & VillagerHeadModel> class
WitchItemLayer<T extends LivingEntity>
Modifier and TypeMethodDescriptionprotected static <T extends LivingEntity>
voidRenderLayer.coloredCutoutModelCopyLayerRender
(EntityModel<T> p_117360_, EntityModel<T> p_117361_, ResourceLocation p_117362_, PoseStack p_117363_, MultiBufferSource p_117364_, int p_117365_, T p_117366_, float p_117367_, float p_117368_, float p_117369_, float p_117370_, float p_117371_, float p_117372_, float p_117373_, float p_117374_, float p_117375_) protected static <T extends LivingEntity>
voidRenderLayer.renderColoredCutoutModel
(EntityModel<T> p_117377_, ResourceLocation p_117378_, PoseStack p_117379_, MultiBufferSource p_117380_, int p_117381_, T p_117382_, float p_117383_, float p_117384_, float p_117385_) Modifier and TypeMethodDescriptionprotected void
ItemInHandLayer.renderArmWithItem
(LivingEntity p_117185_, ItemStack p_117186_, ItemDisplayContext p_270970_, HumanoidArm p_117188_, PoseStack p_117189_, MultiBufferSource p_117190_, int p_117191_) protected void
PlayerItemInHandLayer.renderArmWithItem
(LivingEntity p_270884_, ItemStack p_270379_, ItemDisplayContext p_270607_, HumanoidArm p_270324_, PoseStack p_270124_, MultiBufferSource p_270414_, int p_270295_) private void
PlayerItemInHandLayer.renderArmWithSpyglass
(LivingEntity p_174518_, ItemStack p_174519_, HumanoidArm p_174520_, PoseStack p_174521_, MultiBufferSource p_174522_, int p_174523_) -
Uses of LivingEntity in net.minecraft.client.renderer.item
Modifier and TypeMethodDescriptiondefault float
ClampedItemPropertyFunction.call
(ItemStack p_174560_, ClientLevel p_174561_, LivingEntity p_174562_, int p_174563_) Deprecated.float
ItemPropertyFunction.call
(ItemStack p_174676_, ClientLevel p_174677_, LivingEntity p_174678_, int p_174679_) Deprecated.float
ClampedItemPropertyFunction.unclampedCall
(ItemStack p_174564_, ClientLevel p_174565_, LivingEntity p_174566_, int p_174567_) float
CompassItemPropertyFunction.unclampedCall
(ItemStack p_234960_, ClientLevel p_234961_, LivingEntity p_234962_, int p_234963_) -
Uses of LivingEntity in net.minecraft.gametest.framework
Modifier and TypeMethodDescription<E extends LivingEntity>
voidGameTestHelper.assertEntityIsHolding
(BlockPos p_263501_, EntityType<E> p_263510_, Item p_263517_) Modifier and TypeMethodDescriptionGameTestHelper.makeAboutToDrown
(LivingEntity p_177184_) GameTestHelper.withLowHealth
(LivingEntity p_286794_) Modifier and TypeMethodDescriptionvoid
GameTestHelper.assertLivingEntityHasMobEffect
(LivingEntity p_296040_, Holder<MobEffect> p_316528_, int p_294266_) GameTestHelper.makeAboutToDrown
(LivingEntity p_177184_) GameTestHelper.withLowHealth
(LivingEntity p_286794_) -
Uses of LivingEntity in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionDebugPackets.getMemoryDescriptions
(LivingEntity p_179496_, long p_179497_) static void
DebugPackets.sendEntityBrain
(LivingEntity p_133696_) -
Uses of LivingEntity in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity p_252105_, Holder<Attribute> p_248921_) private static LivingEntity
AttributeCommand.getLivingEntity
(Entity p_136440_) -
Uses of LivingEntity in net.minecraft.server.level
-
Uses of LivingEntity in net.minecraft.world.damagesource
Modifier and TypeMethodDescriptionstatic FallLocation
FallLocation.getCurrentFallLocation
(LivingEntity p_289566_) DamageSource.getLocalizedDeathMessage
(LivingEntity p_19343_) DamageSources.mobAttack
(LivingEntity p_270357_) DamageSources.mobProjectile
(Entity p_270210_, LivingEntity p_270757_) DamageSources.noAggroMobAttack
(LivingEntity p_270502_) DamageSources.spit
(Entity p_316508_, LivingEntity p_316581_) DamageSources.sting
(LivingEntity p_270689_) DamageSources.windCharge
(Entity p_316454_, LivingEntity p_316891_) -
Uses of LivingEntity in net.minecraft.world.effect
Modifier and TypeMethodDescriptionboolean
AbsorptionMobEffect.applyEffectTick
(LivingEntity p_294484_, int p_294672_) boolean
BadOmenMobEffect.applyEffectTick
(LivingEntity p_296327_, int p_294357_) boolean
HealOrHarmMobEffect.applyEffectTick
(LivingEntity p_295255_, int p_295147_) boolean
HungerMobEffect.applyEffectTick
(LivingEntity p_296407_, int p_296356_) boolean
MobEffect.applyEffectTick
(LivingEntity p_19467_, int p_19468_) boolean
PoisonMobEffect.applyEffectTick
(LivingEntity p_296276_, int p_296233_) boolean
RaidOmenMobEffect.applyEffectTick
(LivingEntity p_338728_, int p_338249_) boolean
RegenerationMobEffect.applyEffectTick
(LivingEntity p_295924_, int p_296417_) boolean
SaturationMobEffect.applyEffectTick
(LivingEntity p_295892_, int p_296026_) boolean
WitherMobEffect.applyEffectTick
(LivingEntity p_296279_, int p_294798_) void
HealOrHarmMobEffect.applyInstantenousEffect
(Entity p_294574_, Entity p_295692_, LivingEntity p_296483_, int p_296095_, double p_295178_) void
MobEffect.applyInstantenousEffect
(Entity p_19462_, Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) float
MobEffectInstance.getBlendFactor
(LivingEntity p_316410_, float p_316194_) static int
MobEffectUtil.getDigSpeedAmplification
(LivingEntity p_19587_) float
MobEffectInstance.BlendState.getFactor
(LivingEntity p_316317_, float p_316789_) static boolean
MobEffectUtil.hasDigSpeed
(LivingEntity p_19585_) static boolean
MobEffectUtil.hasWaterBreathing
(LivingEntity p_19589_) void
MobEffect.onEffectAdded
(LivingEntity p_338333_, int p_338715_) void
MobEffectInstance.onEffectAdded
(LivingEntity p_338286_) void
AbsorptionMobEffect.onEffectStarted
(LivingEntity p_294820_, int p_295222_) void
MobEffect.onEffectStarted
(LivingEntity p_296490_, int p_296147_) void
MobEffectInstance.onEffectStarted
(LivingEntity p_295220_) void
InfestedMobEffect.onMobHurt
(LivingEntity p_338481_, int p_338438_, DamageSource p_338894_, float p_338367_) void
MobEffect.onMobHurt
(LivingEntity p_338186_, int p_338204_, DamageSource p_338393_, float p_338618_) void
MobEffectInstance.onMobHurt
(LivingEntity p_338201_, DamageSource p_338572_, float p_338779_) void
MobEffect.onMobRemoved
(LivingEntity p_338500_, int p_338476_, Entity.RemovalReason p_338373_) void
MobEffectInstance.onMobRemoved
(LivingEntity p_338566_, Entity.RemovalReason p_338384_) void
OozingMobEffect.onMobRemoved
(LivingEntity p_338339_, int p_338421_, Entity.RemovalReason p_338677_) void
WeavingMobEffect.onMobRemoved
(LivingEntity p_338209_, int p_338446_, Entity.RemovalReason p_338624_) void
WindChargedMobEffect.onMobRemoved
(LivingEntity p_338439_, int p_338875_, Entity.RemovalReason p_338258_) private void
InfestedMobEffect.spawnSilverfish
(Level p_338804_, LivingEntity p_341023_, double p_338557_, double p_338848_, double p_338562_) boolean
MobEffectInstance.tick
(LivingEntity p_19553_, Runnable p_19554_) -
Uses of LivingEntity in net.minecraft.world.entity
Modifier and TypeClassDescriptionclass
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate LivingEntity
LivingEntity.lastHurtByMob
private LivingEntity
LivingEntity.lastHurtMob
private LivingEntity
AreaEffectCloud.owner
private LivingEntity
Mob.target
Modifier and TypeMethodDescriptionEntity.getControllingPassenger()
Mob.getControllingPassenger()
LivingEntity.getKillCredit()
Attackable.getLastAttacker()
Interaction.getLastAttacker()
LivingEntity.getLastAttacker()
LivingEntity.getLastHurtByMob()
NeutralMob.getLastHurtByMob()
LivingEntity.getLastHurtMob()
AreaEffectCloud.getOwner()
default LivingEntity
OwnableEntity.getOwner()
Interaction.getTarget()
Mob.getTarget()
NeutralMob.getTarget()
Targeting.getTarget()
protected final LivingEntity
Mob.getTargetFromBrain()
Modifier and TypeMethodDescriptionprotected void
LivingEntity.blockedByShield
(LivingEntity p_21246_) protected void
LivingEntity.blockUsingShield
(LivingEntity p_21200_) boolean
LivingEntity.canAttack
(LivingEntity p_21171_) boolean
LivingEntity.canAttack
(LivingEntity p_21041_, TargetingConditions p_21042_) boolean
NeutralMob.canAttack
(LivingEntity p_181126_) boolean
TamableAnimal.canAttack
(LivingEntity p_21822_) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity p_147196_, EquipmentSlot p_147197_) protected void
LivingEntity.createWitherRose
(LivingEntity p_21269_) protected void
LivingEntity.doAutoAttackOnTouch
(LivingEntity p_21277_) void
Entity.doEnchantDamageEffects
(LivingEntity p_19971_, Entity p_19972_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147300_, EquipmentSlot p_147301_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147303_, EquipmentSlot p_147304_, Predicate<ItemStack> p_147305_) Entity.getDismountLocationForPassenger
(LivingEntity p_20123_) default boolean
NeutralMob.isAngryAt
(LivingEntity p_21675_) boolean
TamableAnimal.isOwnedBy
(LivingEntity p_21831_) boolean
Mob.isWithinMeleeAttackRange
(LivingEntity p_217067_) boolean
Entity.killedEntity
(ServerLevel p_216988_, LivingEntity p_216989_) void
LivingEntity.setLastHurtByMob
(LivingEntity p_21039_) void
NeutralMob.setLastHurtByMob
(LivingEntity p_21669_) void
AreaEffectCloud.setOwner
(LivingEntity p_19719_) void
Mob.setTarget
(LivingEntity p_21544_) void
NeutralMob.setTarget
(LivingEntity p_21681_) boolean
TamableAnimal.wantsToAttack
(LivingEntity p_21810_, LivingEntity p_21811_) Modifier and TypeMethodDescriptionstatic boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> p_217018_, ServerLevelAccessor p_217019_, MobSpawnType p_217020_, BlockPos p_217021_, RandomSource p_217022_) ModifierConstructorDescriptionprotected
LivingEntity
(EntityType<? extends LivingEntity> p_20966_, Level p_20967_) -
Uses of LivingEntity in net.minecraft.world.entity.ai
Modifier and TypeClassDescriptionclass
Brain<E extends LivingEntity>
static final class
Brain.Provider<E extends LivingEntity>
Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
com.mojang.serialization.Codec<Brain<E>> Brain.codec
(Collection<? extends MemoryModuleType<?>> p_21947_, Collection<? extends SensorType<? extends Sensor<? super E>>> p_21948_) static <E extends LivingEntity>
Brain.Provider<E> Brain.provider
(Collection<? extends MemoryModuleType<?>> p_21924_, Collection<? extends SensorType<? extends Sensor<? super E>>> p_21925_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.attributes
Modifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends LivingEntity>, AttributeSupplier> DefaultAttributes.SUPPLIERS
Modifier and TypeMethodDescriptionstatic AttributeSupplier
DefaultAttributes.getSupplier
(EntityType<? extends LivingEntity> p_22298_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior
Modifier and TypeClassDescriptionclass
Behavior<E extends LivingEntity>
interface
BehaviorControl<E extends LivingEntity>
class
CrossbowAttack<E extends Mob & CrossbowAttackMob,
T extends LivingEntity> class
GateBehavior<E extends LivingEntity>
class
GoAndGiveItemsToTarget<E extends LivingEntity & InventoryCarrier>
class
OneShot<E extends LivingEntity>
class
RunOne<E extends LivingEntity>
Modifier and TypeFieldDescription(package private) final LivingEntity
PrepareRamNearestTarget.RamCandidate.target
Modifier and TypeFieldDescriptionprivate final Function
<LivingEntity, Double> FollowTemptation.closeEnoughDistance
private final Function
<LivingEntity, Float> FollowTemptation.speedModifier
private final Function
<LivingEntity, Optional<PositionTracker>> GoAndGiveItemsToTarget.targetPositionGetter
Modifier and TypeMethodDescriptionabstract <E extends LivingEntity>
voidGateBehavior.RunningPolicy.apply
(Stream<BehaviorControl<? super E>> p_147532_, ServerLevel p_147533_, E p_147534_, long p_147535_) static <E extends LivingEntity,
T>
BehaviorControl<E> CopyMemoryWithExpiry.create
(Predicate<E> p_260270_, MemoryModuleType<? extends T> p_260344_, MemoryModuleType<T> p_260014_, UniformInt p_259596_) static <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create
(int p_259945_, BiPredicate<E, Entity> p_259837_) static <E extends LivingEntity>
BehaviorControl<E> EraseMemoryIf.create
(Predicate<E> p_260241_, MemoryModuleType<?> p_259406_) static <E extends LivingEntity>
BehaviorControl<E> static <E extends LivingEntity,
T extends LivingEntity>
BehaviorControl<E> InteractWith.of
(EntityType<? extends T> p_259366_, int p_259564_, Predicate<E> p_259570_, Predicate<T> p_260254_, MemoryModuleType<T> p_260229_, float p_259369_, int p_259065_) static <E extends LivingEntity,
T extends LivingEntity>
BehaviorControl<E> InteractWith.of
(EntityType<? extends T> p_259366_, int p_259564_, Predicate<E> p_259570_, Predicate<T> p_260254_, MemoryModuleType<T> p_260229_, float p_259369_, int p_259065_) static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of
(EntityType<? extends T> p_259703_, int p_260224_, MemoryModuleType<T> p_259995_, float p_259991_, int p_259933_) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate
(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> p_259442_, GateBehavior.OrderPolicy p_259823_, GateBehavior.RunningPolicy p_259632_) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerOneShuffled
(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> p_259551_) Modifier and TypeMethodDescriptionprivate static LivingEntity
CrossbowAttack.getAttackTarget
(LivingEntity p_22785_) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity p_22626_, Optional<LivingEntity> p_22627_, LivingEntity p_22628_) PrepareRamNearestTarget.RamCandidate.getTarget()
static LivingEntity
BehaviorUtils.getTargetNearestMe
(LivingEntity p_22607_, LivingEntity p_22608_, LivingEntity p_22609_) private LivingEntity
ShowTradesToPlayer.lookAtTarget
(Villager p_24138_) private static LivingEntity
PlayTagWithOtherKids.whoAreYouChasing
(LivingEntity p_23640_) Modifier and TypeMethodDescriptionprivate static Map
<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas
(List<LivingEntity> p_259989_) static BehaviorControl
<LivingEntity> BecomePassiveIfMemoryPresent.create
(MemoryModuleType<?> p_259988_, int p_260143_) static BehaviorControl
<LivingEntity> GoToWantedItem.create
(float p_260027_, boolean p_259769_, int p_259671_) static BehaviorControl
<LivingEntity> InteractWithDoor.create()
static OneShot
<LivingEntity> LocateHidingPlace.create
(int p_259202_, float p_259881_, int p_259982_) static BehaviorControl
<LivingEntity> Mount.create
(float p_259363_) static OneShot
<LivingEntity> MoveToSkySeeingSpot.create
(float p_259860_) static BehaviorControl
<LivingEntity> ReactToBell.create()
static BehaviorControl
<LivingEntity> ResetRaidStatus.create()
static BehaviorControl
<LivingEntity> RingBell.create()
static OneShot
<LivingEntity> SetEntityLookTarget.create
(float p_259830_) static OneShot
<LivingEntity> SetEntityLookTarget.create
(Predicate<LivingEntity> p_260088_, float p_259747_) static OneShot
<LivingEntity> SetEntityLookTarget.create
(EntityType<?> p_260318_, float p_259522_) static BehaviorControl
<LivingEntity> SetEntityLookTarget.create
(MobCategory p_259154_, float p_260240_) static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float p_259047_, UniformInt p_260065_) Deprecated.private static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float p_260336_, UniformInt p_259266_, Predicate<LivingEntity> p_260173_) Deprecated.static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(EntityType<?> p_259588_, float p_259105_, UniformInt p_259422_) Deprecated.static BehaviorControl
<LivingEntity> SetHiddenState.create
(int p_259244_, int p_260263_) static BehaviorControl
<LivingEntity> SetLookAndInteract.create
(EntityType<?> p_259642_, int p_259805_) static BehaviorControl
<LivingEntity> SetRaidStatus.create()
static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(float p_259702_, int p_259510_) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> p_260341_, Function<LivingEntity, Float> p_260269_, int p_259192_) static OneShot
<LivingEntity> SocializeAtBell.create()
static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int p_259238_, BiPredicate<LivingEntity, LivingEntity> p_259102_) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> p_272871_, Predicate<LivingEntity> p_273150_, int p_273536_, int p_273107_, float p_273745_) static BehaviorControl
<LivingEntity> StopBeingAngryIfTargetDead.create()
static BehaviorControl
<LivingEntity> static BehaviorControl
<LivingEntity> UpdateActivityFromSchedule.create()
static BehaviorControl
<LivingEntity> ValidateNearbyPoi.create
(Predicate<Holder<PoiType>> p_259460_, MemoryModuleType<GlobalPos> p_259635_) static BehaviorControl
<LivingEntity> VillagerCalmDown.create()
static BehaviorControl
<LivingEntity> WakeUp.create()
private static Optional
<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased
(List<LivingEntity> p_259655_) private static com.mojang.datafixers.util.Pair
<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getFullLookBehavior()
static Optional
<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory
(LivingEntity p_22611_, MemoryModuleType<UUID> p_22612_) private static com.mojang.datafixers.util.Pair
<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getMinimalLookBehavior()
static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of
(EntityType<? extends T> p_259703_, int p_260224_, MemoryModuleType<T> p_259995_, float p_259991_, int p_259933_) Modifier and TypeMethodDescriptionprivate static boolean
InteractWithDoor.areOtherMobsComingThroughDoor
(LivingEntity p_260091_, BlockPos p_259764_, Optional<List<LivingEntity>> p_259365_) private static boolean
ValidateNearbyPoi.bedIsOccupied
(ServerLevel p_24531_, BlockPos p_24532_, LivingEntity p_24533_) PrepareRamNearestTarget.calculateRammingStartPosition
(PathfinderMob p_147743_, LivingEntity p_147744_) static boolean
BehaviorUtils.canSee
(LivingEntity p_22668_, LivingEntity p_22669_) protected boolean
CountDownCooldownTicks.canStillUse
(ServerLevel p_147468_, LivingEntity p_147469_, long p_147470_) protected boolean
SleepInBed.canStillUse
(ServerLevel p_24161_, LivingEntity p_24162_, long p_24163_) private static void
PlayTagWithOtherKids.chaseKid
(MemoryAccessor<?, LivingEntity> p_259811_, MemoryAccessor<?, PositionTracker> p_259299_, MemoryAccessor<?, WalkTarget> p_260056_, LivingEntity p_259463_) protected boolean
SleepInBed.checkExtraStartConditions
(ServerLevel p_24154_, LivingEntity p_24155_) private void
PrepareRamNearestTarget.chooseRamPosition
(PathfinderMob p_147766_, LivingEntity p_147767_) static void
InteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel p_260343_, LivingEntity p_259371_, Node p_259408_, Node p_260013_, Set<GlobalPos> p_259401_, Optional<List<LivingEntity>> p_260015_) private void
CrossbowAttack.crossbowAttack
(E p_22787_, LivingEntity p_22788_) final void
DoNothing.doStop
(ServerLevel p_260265_, LivingEntity p_259336_, long p_259826_) static boolean
BehaviorUtils.entityIsVisible
(Brain<?> p_22637_, LivingEntity p_22638_) private void
ShowTradesToPlayer.findItemsToDisplay
(LivingEntity p_24113_, Villager p_24114_) private static LivingEntity
CrossbowAttack.getAttackTarget
(LivingEntity p_22785_) CountDownCooldownTicks.getCooldownTickMemory
(LivingEntity p_147466_) static Optional
<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory
(LivingEntity p_22611_, MemoryModuleType<UUID> p_22612_) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity p_22626_, Optional<LivingEntity> p_22627_, LivingEntity p_22628_) private static Vec3
MoveToSkySeeingSpot.getOutdoorPosition
(ServerLevel p_23565_, LivingEntity p_23566_) static LivingEntity
BehaviorUtils.getTargetNearestMe
(LivingEntity p_22607_, LivingEntity p_22608_, LivingEntity p_22609_) static boolean
VillagerPanicTrigger.hasHostile
(LivingEntity p_24688_) static boolean
MoveToSkySeeingSpot.hasNoBlocksAbove
(ServerLevel p_23559_, LivingEntity p_23560_, BlockPos p_23561_) static boolean
BehaviorUtils.isBreeding
(LivingEntity p_217127_) private static boolean
PlayTagWithOtherKids.isChasingSomeone
(LivingEntity p_23668_) private static boolean
InteractWithDoor.isDoorTooFarAway
(ServerLevel p_23308_, LivingEntity p_23309_, GlobalPos p_23310_) private static boolean
PlayTagWithOtherKids.isFriendChasingMe
(LivingEntity p_23642_, LivingEntity p_23643_) static boolean
VillagerPanicTrigger.isHurt
(LivingEntity p_24698_) static boolean
BehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget
(LivingEntity p_22599_, LivingEntity p_22600_, double p_22601_) private static boolean
StopAttackingIfTargetInvalid.isTiredOfTryingToReachTarget
(LivingEntity p_259416_, Optional<Long> p_259377_) private static boolean
DismountOrSkipMounting.isVehicleValid
(LivingEntity p_259293_, Entity p_260023_, int p_259048_) boolean
BlockPosTracker.isVisibleBy
(LivingEntity p_22679_) boolean
EntityTracker.isVisibleBy
(LivingEntity p_22853_) boolean
PositionTracker.isVisibleBy
(LivingEntity p_23739_) static boolean
BehaviorUtils.isWithinAttackRange
(Mob p_22633_, LivingEntity p_22634_, int p_22635_) static void
BehaviorUtils.lockGazeAndWalkToEachOther
(LivingEntity p_22603_, LivingEntity p_22604_, float p_22605_, int p_320174_) private static void
BehaviorUtils.lookAtEachOther
(LivingEntity p_22671_, LivingEntity p_22672_) static void
BehaviorUtils.lookAtEntity
(LivingEntity p_22596_, LivingEntity p_22597_) private void
CrossbowAttack.lookAtTarget
(Mob p_22798_, LivingEntity p_22799_) private static boolean
VillagerGoalPackages.raidExistsAndActive
(ServerLevel p_260274_, LivingEntity p_260163_) private static boolean
VillagerGoalPackages.raidExistsAndNotVictory
(ServerLevel p_259939_, LivingEntity p_259384_) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity p_22618_, BlockPos p_22619_, float p_22620_, int p_22621_) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity p_217129_, PositionTracker p_217130_, float p_217131_, int p_217132_) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity p_22591_, Entity p_22592_, float p_22593_, int p_22594_) private static void
BehaviorUtils.setWalkAndLookTargetMemoriesToEachOther
(LivingEntity p_22661_, LivingEntity p_22662_, float p_22663_, int p_319876_) protected void
SleepInBed.start
(ServerLevel p_24157_, LivingEntity p_24158_, long p_24159_) protected void
CountDownCooldownTicks.stop
(ServerLevel p_147472_, LivingEntity p_147473_, long p_147474_) protected void
SleepInBed.stop
(ServerLevel p_24165_, LivingEntity p_24166_, long p_24167_) private void
GiveGiftToHero.throwGift
(Villager p_23012_, LivingEntity p_23013_) private static void
TradeWithVillager.throwHalfStack
(Villager p_24426_, Set<Item> p_24427_, LivingEntity p_24428_) static void
BehaviorUtils.throwItem
(LivingEntity p_22614_, ItemStack p_22615_, Vec3 p_22616_) static void
BehaviorUtils.throwItem
(LivingEntity p_217134_, ItemStack p_217135_, Vec3 p_217136_, Vec3 p_217137_, float p_217138_) static void
GoAndGiveItemsToTarget.throwItem
(LivingEntity p_217208_, ItemStack p_217209_, Vec3 p_217210_) protected void
CountDownCooldownTicks.tick
(ServerLevel p_147476_, LivingEntity p_147477_, long p_147478_) final void
DoNothing.tickOrStop
(ServerLevel p_259225_, LivingEntity p_259218_, long p_259803_) final boolean
DoNothing.tryStart
(ServerLevel p_259135_, LivingEntity p_259195_, long p_259189_) private static LivingEntity
PlayTagWithOtherKids.whoAreYouChasing
(LivingEntity p_23640_) Modifier and TypeMethodDescriptionprivate static boolean
InteractWithDoor.areOtherMobsComingThroughDoor
(LivingEntity p_260091_, BlockPos p_259764_, Optional<List<LivingEntity>> p_259365_) private static void
PlayTagWithOtherKids.chaseKid
(MemoryAccessor<?, LivingEntity> p_259811_, MemoryAccessor<?, PositionTracker> p_259299_, MemoryAccessor<?, WalkTarget> p_260056_, LivingEntity p_259463_) private static Map
<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas
(List<LivingEntity> p_259989_) static void
InteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel p_260343_, LivingEntity p_259371_, Node p_259408_, Node p_260013_, Set<GlobalPos> p_259401_, Optional<List<LivingEntity>> p_260015_) static OneShot
<AgeableMob> BabyFollowAdult.create
(UniformInt p_259321_, Function<LivingEntity, Float> p_259190_) static OneShot
<LivingEntity> SetEntityLookTarget.create
(Predicate<LivingEntity> p_260088_, float p_259747_) private static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float p_260336_, UniformInt p_259266_, Predicate<LivingEntity> p_260173_) Deprecated.static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(Function<LivingEntity, Float> p_259507_) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> p_260341_, Function<LivingEntity, Float> p_260269_, int p_259192_) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> p_260341_, Function<LivingEntity, Float> p_260269_, int p_259192_) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(Function<E, Optional<? extends LivingEntity>> p_259868_) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(Predicate<E> p_259618_, Function<E, Optional<? extends LivingEntity>> p_259435_) static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int p_259238_, BiPredicate<LivingEntity, LivingEntity> p_259102_) static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int p_259238_, BiPredicate<LivingEntity, LivingEntity> p_259102_) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> p_272871_, Predicate<LivingEntity> p_273150_, int p_273536_, int p_273107_, float p_273745_) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> p_272871_, Predicate<LivingEntity> p_273150_, int p_273536_, int p_273107_, float p_273745_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(BiConsumer<E, LivingEntity> p_260165_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(Predicate<LivingEntity> p_259762_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(Predicate<LivingEntity> p_260357_, BiConsumer<E, LivingEntity> p_259568_, boolean p_260319_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(Predicate<LivingEntity> p_260357_, BiConsumer<E, LivingEntity> p_259568_, boolean p_260319_) private static Optional
<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased
(List<LivingEntity> p_259655_) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity p_22626_, Optional<LivingEntity> p_22627_, LivingEntity p_22628_) private static boolean
BehaviorUtils.targetIsValid
(Brain<?> p_22644_, MemoryModuleType<? extends LivingEntity> p_22645_, Predicate<LivingEntity> p_22646_) private static boolean
BehaviorUtils.targetIsValid
(Brain<?> p_22644_, MemoryModuleType<? extends LivingEntity> p_22645_, Predicate<LivingEntity> p_22646_) static boolean
BehaviorUtils.targetIsValid
(Brain<?> p_22640_, MemoryModuleType<? extends LivingEntity> p_22641_, EntityType<?> p_22642_) ModifierConstructorDescriptionRamCandidate
(BlockPos p_147794_, BlockPos p_147795_, LivingEntity p_147796_) ModifierConstructorDescriptionFollowTemptation
(Function<LivingEntity, Float> p_147486_) FollowTemptation
(Function<LivingEntity, Float> p_288997_, Function<LivingEntity, Double> p_288972_) GoAndGiveItemsToTarget
(Function<LivingEntity, Optional<PositionTracker>> p_249894_, float p_249937_, int p_249620_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.declarative
Modifier and TypeClassDescriptionclass
BehaviorBuilder<E extends LivingEntity,
M> (package private) static final class
BehaviorBuilder.Constant<E extends LivingEntity,
A> static final class
BehaviorBuilder.Instance<E extends LivingEntity>
(package private) static final class
BehaviorBuilder.Instance.Mu<E extends LivingEntity>
static final class
BehaviorBuilder.Mu<E extends LivingEntity>
(package private) static final class
BehaviorBuilder.PureMemory<E extends LivingEntity,
F extends com.mojang.datafixers.kinds.K1, Value> (package private) static interface
BehaviorBuilder.TriggerWithResult<E extends LivingEntity,
R> (package private) static final class
BehaviorBuilder.TriggerWrapper<E extends LivingEntity>
interface
Trigger<E extends LivingEntity>
Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
OneShot<E> BehaviorBuilder.create
(Function<BehaviorBuilder.Instance<E>, ? extends com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, Trigger<E>>> p_259386_) (package private) static <E extends LivingEntity,
M>
BehaviorBuilder<E, M> BehaviorBuilder.create
(BehaviorBuilder.TriggerWithResult<E, M> p_259575_) (package private) static <E extends LivingEntity,
M>
BehaviorBuilder.TriggerWithResult<E, M> BehaviorBuilder.get
(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259615_) static <E extends LivingEntity>
BehaviorBuilder.Instance<E> BehaviorBuilder.instance()
static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> BehaviorBuilder.triggerIf
(BiPredicate<ServerLevel, E> p_259227_) static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity,
M>
BehaviorBuilder<E, M> BehaviorBuilder.unbox
(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259593_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.warden
Modifier and TypeMethodDescriptionstatic BehaviorControl
<LivingEntity> SetWardenLookTarget.create()
static BehaviorControl
<LivingEntity> TryToSniff.create()
Modifier and TypeMethodDescriptionprotected boolean
ForceUnmount.checkExtraStartConditions
(ServerLevel p_238424_, LivingEntity p_238425_) static void
SonicBoom.setCooldown
(LivingEntity p_217699_, int p_217700_) protected void
ForceUnmount.start
(ServerLevel p_238410_, LivingEntity p_238411_, long p_238412_) Modifier and TypeMethodDescriptionstatic <E extends Warden>
BehaviorControl<E> SetRoarTarget.create
(Function<E, Optional<? extends LivingEntity>> p_260275_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal
Modifier and TypeFieldDescriptionprivate LivingEntity
FollowOwnerGoal.owner
private LivingEntity
LeapAtTargetGoal.target
private LivingEntity
MoveTowardsTargetGoal.target
private LivingEntity
OcelotAttackGoal.target
private LivingEntity
RangedAttackGoal.target
private LivingEntity
SwellGoal.target
protected T
AvoidEntityGoal.toAvoid
Modifier and TypeFieldDescriptionprotected final Predicate
<LivingEntity> AvoidEntityGoal.avoidPredicate
protected final Class
<? extends LivingEntity> LookAtPlayerGoal.lookAtType
protected final Predicate
<LivingEntity> AvoidEntityGoal.predicateOnAvoidEntity
Modifier and TypeMethodDescriptionprotected boolean
MeleeAttackGoal.canPerformAttack
(LivingEntity p_301299_) protected void
MeleeAttackGoal.checkAndPerformAttack
(LivingEntity p_25557_) private boolean
TemptGoal.shouldFollow
(LivingEntity p_148139_) ModifierConstructorDescriptionAvoidEntityGoal
(PathfinderMob p_25033_, Class<T> p_25034_, float p_25035_, double p_25036_, double p_25037_, Predicate<LivingEntity> p_25038_) AvoidEntityGoal
(PathfinderMob p_25040_, Class<T> p_25041_, Predicate<LivingEntity> p_25042_, float p_25043_, double p_25044_, double p_25045_, Predicate<LivingEntity> p_25046_) InteractGoal
(Mob p_148111_, Class<? extends LivingEntity> p_148112_, float p_148113_) InteractGoal
(Mob p_25415_, Class<? extends LivingEntity> p_25416_, float p_25417_, float p_25418_) LookAtPlayerGoal
(Mob p_25520_, Class<? extends LivingEntity> p_25521_, float p_25522_) LookAtPlayerGoal
(Mob p_25524_, Class<? extends LivingEntity> p_25525_, float p_25526_, float p_25527_) LookAtPlayerGoal
(Mob p_148118_, Class<? extends LivingEntity> p_148119_, float p_148120_, float p_148121_, boolean p_148122_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal.target
Modifier and TypeClassDescriptionclass
NearestAttackableTargetGoal<T extends LivingEntity>
class
NearestAttackableWitchTargetGoal<T extends LivingEntity>
class
NearestHealableRaiderTargetGoal<T extends LivingEntity>
class
NonTameRandomTargetGoal<T extends LivingEntity>
Modifier and TypeFieldDescriptionprivate LivingEntity
OwnerHurtTargetGoal.ownerLastHurt
private LivingEntity
OwnerHurtByTargetGoal.ownerLastHurtBy
private LivingEntity
DefendVillageTargetGoal.potentialTarget
protected LivingEntity
NearestAttackableTargetGoal.target
protected LivingEntity
TargetGoal.targetMob
Modifier and TypeMethodDescriptionprotected void
HurtByTargetGoal.alertOther
(Mob p_26042_, LivingEntity p_26043_) protected boolean
TargetGoal.canAttack
(LivingEntity p_26151_, TargetingConditions p_26152_) private boolean
TargetGoal.canReach
(LivingEntity p_26149_) void
NearestAttackableTargetGoal.setTarget
(LivingEntity p_26071_) ModifierConstructorDescriptionNearestAttackableTargetGoal
(Mob p_199891_, Class<T> p_199892_, boolean p_199893_, Predicate<LivingEntity> p_199894_) NearestAttackableTargetGoal
(Mob p_26053_, Class<T> p_26054_, int p_26055_, boolean p_26056_, boolean p_26057_, Predicate<LivingEntity> p_26058_) NearestAttackableWitchTargetGoal
(Raider p_26076_, Class<T> p_26077_, int p_26078_, boolean p_26079_, boolean p_26080_, Predicate<LivingEntity> p_26081_) NearestHealableRaiderTargetGoal
(Raider p_26087_, Class<T> p_26088_, boolean p_26089_, Predicate<LivingEntity> p_26090_) NonTameRandomTargetGoal
(TamableAnimal p_26097_, Class<T> p_26098_, boolean p_26099_, Predicate<LivingEntity> p_26100_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<LivingEntity> MemoryModuleType.ATTACK_TARGET
static final MemoryModuleType
<LivingEntity> MemoryModuleType.AVOID_TARGET
static final MemoryModuleType
<LivingEntity> MemoryModuleType.HURT_BY_ENTITY
static final MemoryModuleType
<LivingEntity> MemoryModuleType.INTERACTION_TARGET
private final Predicate
<LivingEntity> NearestVisibleLivingEntities.lineOfSightTest
private final List
<LivingEntity> NearestVisibleLivingEntities.nearbyEntities
static final MemoryModuleType
<LivingEntity> MemoryModuleType.NEAREST_ATTACKABLE
static final MemoryModuleType
<LivingEntity> MemoryModuleType.NEAREST_HOSTILE
static final MemoryModuleType
<List<LivingEntity>> MemoryModuleType.NEAREST_LIVING_ENTITIES
static final MemoryModuleType
<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ZOMBIFIED
static final MemoryModuleType
<LivingEntity> MemoryModuleType.ROAR_TARGET
static final MemoryModuleType
<List<LivingEntity>> MemoryModuleType.VISIBLE_VILLAGER_BABIES
Modifier and TypeMethodDescriptionNearestVisibleLivingEntities.find
(Predicate<LivingEntity> p_186129_) NearestVisibleLivingEntities.findAll
(Predicate<LivingEntity> p_186124_) NearestVisibleLivingEntities.findClosest
(Predicate<LivingEntity> p_186117_) Modifier and TypeMethodDescriptionboolean
NearestVisibleLivingEntities.contains
(LivingEntity p_186108_) Modifier and TypeMethodDescriptionboolean
NearestVisibleLivingEntities.contains
(Predicate<LivingEntity> p_186131_) NearestVisibleLivingEntities.find
(Predicate<LivingEntity> p_186129_) NearestVisibleLivingEntities.findAll
(Predicate<LivingEntity> p_186124_) NearestVisibleLivingEntities.findClosest
(Predicate<LivingEntity> p_186117_) ModifierConstructorDescriptionNearestVisibleLivingEntities
(LivingEntity p_186104_, List<LivingEntity> p_186105_) ModifierConstructorDescriptionNearestVisibleLivingEntities
(LivingEntity p_186104_, List<LivingEntity> p_186105_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.sensing
Modifier and TypeClassDescriptionclass
MobSensor<T extends LivingEntity>
class
NearestLivingEntitySensor<T extends LivingEntity>
class
Sensor<E extends LivingEntity>
Modifier and TypeFieldDescriptionprivate final BiPredicate
<T, LivingEntity> MobSensor.mobTest
static final SensorType
<NearestLivingEntitySensor<LivingEntity>> SensorType.NEAREST_LIVING_ENTITIES
Modifier and TypeMethodDescriptionprivate static Optional
<LivingEntity> WardenEntitySensor.getClosest
(Warden p_217843_, Predicate<LivingEntity> p_217844_) protected MemoryModuleType
<LivingEntity> AxolotlAttackablesSensor.getMemory()
protected MemoryModuleType
<LivingEntity> FrogAttackablesSensor.getMemory()
protected abstract MemoryModuleType
<LivingEntity> NearestVisibleLivingEntitySensor.getMemory()
protected MemoryModuleType
<LivingEntity> VillagerHostilesSensor.getMemory()
private Optional
<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity
(LivingEntity p_148298_) private List
<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies
(LivingEntity p_26837_) Modifier and TypeMethodDescriptionstatic void
GolemSensor.checkForNearbyGolem
(LivingEntity p_26648_) protected void
DummySensor.doTick
(ServerLevel p_26638_, LivingEntity p_26639_) protected void
GolemSensor.doTick
(ServerLevel p_26645_, LivingEntity p_26646_) protected void
HurtBySensor.doTick
(ServerLevel p_26670_, LivingEntity p_26671_) protected void
IsInWaterSensor.doTick
(ServerLevel p_217816_, LivingEntity p_217817_) protected void
NearestVisibleLivingEntitySensor.doTick
(ServerLevel p_148288_, LivingEntity p_148289_) protected void
PiglinBruteSpecificSensor.doTick
(ServerLevel p_26721_, LivingEntity p_26722_) protected void
PiglinSpecificSensor.doTick
(ServerLevel p_26726_, LivingEntity p_26727_) protected void
PlayerSensor.doTick
(ServerLevel p_26740_, LivingEntity p_26741_) protected void
VillagerBabiesSensor.doTick
(ServerLevel p_26834_, LivingEntity p_26835_) PiglinSpecificSensor.findNearestRepellent
(ServerLevel p_26735_, LivingEntity p_26736_) private Optional
<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity
(LivingEntity p_148298_) private List
<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies
(LivingEntity p_26837_) protected Optional
<NearestVisibleLivingEntities> NearestVisibleLivingEntitySensor.getVisibleEntities
(LivingEntity p_148291_) private NearestVisibleLivingEntities
VillagerBabiesSensor.getVisibleEntities
(LivingEntity p_186204_) static void
GolemSensor.golemDetected
(LivingEntity p_26650_) private boolean
AxolotlAttackablesSensor.isClose
(LivingEntity p_148275_, LivingEntity p_148276_) private boolean
VillagerHostilesSensor.isClose
(LivingEntity p_26861_, LivingEntity p_26862_) static boolean
Sensor.isEntityAttackable
(LivingEntity p_148313_, LivingEntity p_148314_) static boolean
Sensor.isEntityAttackableIgnoringLineOfSight
(LivingEntity p_182378_, LivingEntity p_182379_) static boolean
Sensor.isEntityTargetable
(LivingEntity p_26804_, LivingEntity p_26805_) private boolean
VillagerHostilesSensor.isHostile
(LivingEntity p_26868_) private boolean
AxolotlAttackablesSensor.isHostileTarget
(LivingEntity p_148270_) private boolean
AxolotlAttackablesSensor.isHuntTarget
(LivingEntity p_148272_, LivingEntity p_148273_) protected boolean
AxolotlAttackablesSensor.isMatchingEntity
(LivingEntity p_148266_, LivingEntity p_148267_) protected boolean
FrogAttackablesSensor.isMatchingEntity
(LivingEntity p_217810_, LivingEntity p_217811_) protected abstract boolean
NearestVisibleLivingEntitySensor.isMatchingEntity
(LivingEntity p_148292_, LivingEntity p_148293_) protected boolean
VillagerHostilesSensor.isMatchingEntity
(LivingEntity p_148344_, LivingEntity p_148345_) private boolean
FrogAttackablesSensor.isUnreachableAttackTarget
(LivingEntity p_238336_, LivingEntity p_238337_) private boolean
VillagerBabiesSensor.isVillagerBaby
(LivingEntity p_26839_) Modifier and TypeMethodDescriptionprivate static Optional
<LivingEntity> WardenEntitySensor.getClosest
(Warden p_217843_, Predicate<LivingEntity> p_217844_) ModifierConstructorDescriptionMobSensor
(int p_316590_, BiPredicate<T, LivingEntity> p_316273_, Predicate<T> p_316373_, MemoryModuleType<Boolean> p_316764_, int p_316209_) -
Uses of LivingEntity in net.minecraft.world.entity.ai.targeting
Modifier and TypeMethodDescriptionboolean
TargetingConditions.test
(LivingEntity p_26886_, LivingEntity p_26887_) -
Uses of LivingEntity in net.minecraft.world.entity.ambient
-
Uses of LivingEntity in net.minecraft.world.entity.animal
Modifier and TypeClassDescription(package private) static class
Cat.CatAvoidEntityGoal<T extends LivingEntity>
(package private) static class
Ocelot.OcelotAvoidEntityGoal<T extends LivingEntity>
(package private) static class
Panda.PandaAvoidGoal<T extends LivingEntity>
(package private) static class
Rabbit.RabbitAvoidEntityGoal<T extends LivingEntity>
(package private) class
Wolf.WolfAvoidEntityGoal<T extends LivingEntity>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate LivingEntity
Fox.DefendTrustedTargetGoal.trustedLastHurt
private LivingEntity
Fox.DefendTrustedTargetGoal.trustedLastHurtBy
Modifier and TypeFieldDescriptionstatic final Predicate
<LivingEntity> Turtle.BABY_ON_LAND_SELECTOR
static final Predicate
<LivingEntity> Wolf.PREY_SELECTOR
private static final Predicate
<LivingEntity> Pufferfish.SCARY_MOB
Modifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player p_148829_, InteractionHand p_148830_, T p_148831_) Modifier and TypeMethodDescriptionprotected void
Bee.BeeHurtByOtherGoal.alertOther
(Mob p_28035_, LivingEntity p_28036_) protected void
Panda.PandaHurtByTargetGoal.alertOther
(Mob p_29295_, LivingEntity p_29296_) protected void
PolarBear.PolarBearHurtByTargetGoal.alertOther
(Mob p_29580_, LivingEntity p_29581_) protected void
Fox.FoxMeleeAttackGoal.checkAndPerformAttack
(LivingEntity p_28724_) protected void
PolarBear.PolarBearMeleeAttackGoal.checkAndPerformAttack
(LivingEntity p_29589_) Pig.getDismountLocationForPassenger
(LivingEntity p_29487_) static boolean
Fox.isPathClear
(Fox p_28472_, LivingEntity p_28473_) void
SnowGolem.performRangedAttack
(LivingEntity p_29912_, float p_29913_) void
Fox.setTarget
(LivingEntity p_28574_) void
Panda.PandaLookAtPlayerGoal.setTarget
(LivingEntity p_29313_) boolean
Fox.FoxAlertableEntitiesSelector.test
(LivingEntity p_28653_) boolean
Wolf.wantsToAttack
(LivingEntity p_30389_, LivingEntity p_30390_) ModifierConstructorDescriptionDefendTrustedTargetGoal
(Class<LivingEntity> p_28634_, boolean p_28635_, boolean p_28636_, Predicate<LivingEntity> p_28637_) DefendTrustedTargetGoal
(Class<LivingEntity> p_28634_, boolean p_28635_, boolean p_28636_, Predicate<LivingEntity> p_28637_) FoxLookAtPlayerGoal
(Mob p_28707_, Class<? extends LivingEntity> p_28708_, float p_28709_) PandaLookAtPlayerGoal
(Panda p_29308_, Class<? extends LivingEntity> p_29309_, float p_29310_) -
Uses of LivingEntity in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionprivate static Optional
<PositionTracker> AllayAi.getItemDepositPosition
(LivingEntity p_218424_) static Optional
<ServerPlayer> AllayAi.getLikedPlayer
(LivingEntity p_218411_) private static Optional
<PositionTracker> AllayAi.getLikedPlayerPositionTracker
(LivingEntity p_218430_) private static boolean
AllayAi.hasWantedItem
(LivingEntity p_273346_) static void
AllayAi.hearNoteblock
(LivingEntity p_218417_, BlockPos p_218418_) private static boolean
AllayAi.shouldDepositItemsAtLikedNoteblock
(LivingEntity p_218413_, Brain<?> p_218414_, GlobalPos p_218415_) -
Uses of LivingEntity in net.minecraft.world.entity.animal.armadillo
-
Uses of LivingEntity in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionstatic BehaviorControl
<LivingEntity> ValidatePlayDead.create()
private static Optional
<? extends LivingEntity> AxolotlAi.findNearestValidAttackTarget
(Axolotl p_149299_) Modifier and TypeMethodDescriptionprivate static boolean
AxolotlAi.canSetWalkTargetFromLookTarget
(LivingEntity p_182381_) private static float
AxolotlAi.getSpeedModifier
(LivingEntity p_149301_) private static float
AxolotlAi.getSpeedModifierChasing
(LivingEntity p_149289_) private static float
AxolotlAi.getSpeedModifierFollowingAdult
(LivingEntity p_149295_) static void
Axolotl.onStopAttacking
(Axolotl p_218444_, LivingEntity p_218445_) Modifier and TypeMethodDescriptionstatic boolean
Axolotl.checkAxolotlSpawnRules
(EntityType<? extends LivingEntity> p_218438_, ServerLevelAccessor p_218439_, MobSpawnType p_218440_, BlockPos p_218441_, RandomSource p_218442_) -
Uses of LivingEntity in net.minecraft.world.entity.animal.camel
-
Uses of LivingEntity in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionprivate void
ShootTongue.addUnreachableTargetToMemory
(Frog p_238444_, LivingEntity p_243335_) static boolean
Frog.canEat
(LivingEntity p_218533_) private boolean
ShootTongue.canPathfindToTarget
(Frog p_238359_, LivingEntity p_238360_) -
Uses of LivingEntity in net.minecraft.world.entity.animal.goat
-
Uses of LivingEntity in net.minecraft.world.entity.animal.horse
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate LivingEntity
TraderLlama.TraderLlamaDefendWanderingTraderGoal.ownerLastHurtBy
Modifier and TypeFieldDescriptionprivate static final Predicate
<LivingEntity> AbstractHorse.PARENT_HORSE_SELECTOR
Modifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger
(LivingEntity p_30576_) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 p_30562_, LivingEntity p_30563_) protected Vec2
AbstractHorse.getRiddenRotation
(LivingEntity p_275502_) void
Llama.performRangedAttack
(LivingEntity p_30762_, float p_30763_) private void
Llama.spit
(LivingEntity p_30828_) -
Uses of LivingEntity in net.minecraft.world.entity.animal.sniffer
-
Uses of LivingEntity in net.minecraft.world.entity.boss.enderdragon
-
Uses of LivingEntity in net.minecraft.world.entity.boss.enderdragon.phases
-
Uses of LivingEntity in net.minecraft.world.entity.boss.wither
Modifier and TypeFieldDescriptionprivate static final Predicate
<LivingEntity> WitherBoss.LIVING_ENTITY_SELECTOR
Modifier and TypeMethodDescriptionprivate void
WitherBoss.performRangedAttack
(int p_31458_, LivingEntity p_31459_) void
WitherBoss.performRangedAttack
(LivingEntity p_31468_, float p_31469_) -
Uses of LivingEntity in net.minecraft.world.entity.decoration
-
Uses of LivingEntity in net.minecraft.world.entity.item
ModifierConstructorDescriptionPrimedTnt
(Level p_32079_, double p_32080_, double p_32081_, double p_32082_, LivingEntity p_32083_) -
Uses of LivingEntity in net.minecraft.world.entity.monster
Modifier and TypeClassDescription(package private) static class
Spider.SpiderTargetGoal<T extends LivingEntity>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate LivingEntity
Guardian.clientSideCachedAttackTarget
private LivingEntity
EnderMan.EndermanFreezeWhenLookedAt.target
Modifier and TypeFieldDescriptionprivate final Predicate
<LivingEntity> EnderMan.EndermanLookForPlayerGoal.isAngerInducing
Modifier and TypeMethodDescriptionGuardian.getActiveAttackTarget()
Strider.getControllingPassenger()
CrossbowAttackMob.getTarget()
Zoglin.getTarget()
Modifier and TypeMethodDescriptionprivate Optional
<? extends LivingEntity> Zoglin.findNearestValidAttackTarget()
Modifier and TypeMethodDescriptionprotected void
Ravager.blockedByShield
(LivingEntity p_33361_) protected void
Zoglin.blockedByShield
(LivingEntity p_34246_) boolean
AbstractIllager.canAttack
(LivingEntity p_186270_) protected void
Slime.dealDamage
(LivingEntity p_33638_) Strider.getDismountLocationForPassenger
(LivingEntity p_33908_) private boolean
Zoglin.isTargetable
(LivingEntity p_34253_) boolean
Zombie.killedEntity
(ServerLevel p_219160_, LivingEntity p_219161_) boolean
Drowned.okTarget
(LivingEntity p_32396_) default void
CrossbowAttackMob.performCrossbowAttack
(LivingEntity p_32337_, float p_32338_) void
AbstractSkeleton.performRangedAttack
(LivingEntity p_32141_, float p_32142_) void
Drowned.performRangedAttack
(LivingEntity p_32356_, float p_32357_) void
Illusioner.performRangedAttack
(LivingEntity p_32918_, float p_32919_) void
Pillager.performRangedAttack
(LivingEntity p_33272_, float p_33273_) void
RangedAttackMob.performRangedAttack
(LivingEntity p_33317_, float p_33318_) void
Witch.performRangedAttack
(LivingEntity p_34143_, float p_34144_) private void
Zoglin.setAttackTarget
(LivingEntity p_34255_) void
Creeper.setTarget
(LivingEntity p_149691_) void
EnderMan.setTarget
(LivingEntity p_32537_) void
ZombifiedPiglin.setTarget
(LivingEntity p_34478_) boolean
Guardian.GuardianAttackSelector.test
(LivingEntity p_32881_) ModifierConstructorDescriptionEndermanLookForPlayerGoal
(EnderMan p_32573_, Predicate<LivingEntity> p_32574_) -
Uses of LivingEntity in net.minecraft.world.entity.monster.breeze
Modifier and TypeMethodDescriptionstatic boolean
Shoot.isFacingTarget
(Breeze p_311845_, LivingEntity p_312453_) private static boolean
Shoot.isTargetWithinRange
(Breeze p_312114_, LivingEntity p_312647_) private static boolean
LongJump.outOfAggroRange
(Breeze p_312045_, LivingEntity p_312043_) static Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity p_316886_, RandomSource p_316867_) private static Vec3
Slide.randomPointInMiddleCircle
(Breeze p_311931_, LivingEntity p_312413_) private static BlockPos
LongJump.snapToSurface
(LivingEntity p_311909_, Vec3 p_312597_) private static boolean
LongJump.tooCloseForJump
(Breeze p_312356_, LivingEntity p_312654_) -
Uses of LivingEntity in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionprivate static Optional
<? extends LivingEntity> HoglinAi.findNearestValidAttackTarget
(Hoglin p_34611_) Modifier and TypeMethodDescriptionprotected void
Hoglin.blockedByShield
(LivingEntity p_34550_) private static void
HoglinAi.broadcastAttackTarget
(Hoglin p_34635_, LivingEntity p_34636_) private static void
HoglinAi.broadcastRetreat
(Hoglin p_34606_, LivingEntity p_34607_) static boolean
HoglinBase.hurtAndThrowTarget
(LivingEntity p_34643_, LivingEntity p_34644_) private static void
HoglinAi.maybeRetaliate
(Hoglin p_34625_, LivingEntity p_34626_) protected static void
HoglinAi.onHitTarget
(Hoglin p_34580_, LivingEntity p_34581_) private static void
HoglinAi.retreatFromNearestTarget
(Hoglin p_34613_, LivingEntity p_34614_) private static void
HoglinAi.setAttackTarget
(Hoglin p_34630_, LivingEntity p_34631_) private static void
HoglinAi.setAttackTargetIfCloserThanCurrent
(Hoglin p_34640_, LivingEntity p_34641_) private static void
HoglinAi.setAvoidTarget
(Hoglin p_34620_, LivingEntity p_34621_) static void
HoglinBase.throwTarget
(LivingEntity p_34646_, LivingEntity p_34647_) protected static void
HoglinAi.wasHurtBy
(Hoglin p_34596_, LivingEntity p_34597_) -
Uses of LivingEntity in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprivate static BehaviorControl
<LivingEntity> PiglinAi.babySometimesRideBabyHoglin()
static BehaviorControl
<LivingEntity> RememberIfHoglinWasKilled.create()
static BehaviorControl
<LivingEntity> StartAdmiringItemIfSeen.create
(int p_259418_) static BehaviorControl
<LivingEntity> StopAdmiringIfItemTooFarAway.create
(int p_259415_) static BehaviorControl
<LivingEntity> StopAdmiringIfTiredOfTryingToReachItem.create
(int p_259110_, int p_259200_) private static RunOne
<LivingEntity> PiglinAi.createIdleLookBehaviors()
private static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> PiglinAi.createLookBehaviors()
private static Optional
<? extends LivingEntity> PiglinAi.findNearestValidAttackTarget
(Piglin p_35001_) private static Optional
<? extends LivingEntity> PiglinBruteAi.findNearestValidAttackTarget
(AbstractPiglin p_35087_) private static Optional
<LivingEntity> PiglinAi.getAngerTarget
(AbstractPiglin p_34976_) static Optional
<LivingEntity> PiglinAi.getAvoidTarget
(Piglin p_34987_) private static Optional
<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange
(AbstractPiglin p_35092_, MemoryModuleType<? extends LivingEntity> p_35093_) Modifier and TypeMethodDescriptionprivate static void
PiglinAi.admireGoldItem
(LivingEntity p_34939_) protected static void
PiglinAi.broadcastAngerTarget
(AbstractPiglin p_34896_, LivingEntity p_34897_) private static void
PiglinAi.broadcastRetreat
(Piglin p_34930_, LivingEntity p_34931_) private static boolean
PiglinAi.doesntSeeAnyPlayerHoldingLovedItem
(LivingEntity p_34983_) private static boolean
PiglinAi.hasCrossbow
(LivingEntity p_34919_) private static boolean
PiglinAi.isNearestValidAttackTarget
(Piglin p_34901_, LivingEntity p_34902_) private static boolean
PiglinBruteAi.isNearestValidAttackTarget
(AbstractPiglin p_35089_, LivingEntity p_35090_) static boolean
PiglinAi.isPlayerHoldingLovedItem
(LivingEntity p_34884_) static boolean
PiglinAi.isWearingGold
(LivingEntity p_34809_) protected static void
PiglinAi.maybeRetaliate
(AbstractPiglin p_34827_, LivingEntity p_34828_) void
Piglin.performRangedAttack
(LivingEntity p_34704_, float p_34705_) private static void
PiglinAi.retreatFromNearestTarget
(Piglin p_34950_, LivingEntity p_34951_) private static boolean
PiglinAi.seesPlayerHoldingLovedItem
(LivingEntity p_34972_) protected static void
PiglinAi.setAngerTarget
(AbstractPiglin p_34925_, LivingEntity p_34926_) protected static void
PiglinBruteAi.setAngerTarget
(PiglinBrute p_149989_, LivingEntity p_149990_) private static void
PiglinAi.setAngerTargetIfCloserThanCurrent
(AbstractPiglin p_34963_, LivingEntity p_34964_) private static void
PiglinAi.setAngerTargetToNearestTargetablePlayerIfFound
(AbstractPiglin p_34945_, LivingEntity p_34946_) private static void
PiglinAi.setAvoidTargetAndDontHuntForAWhile
(Piglin p_34968_, LivingEntity p_34969_) private static boolean
PiglinAi.wantsToDance
(LivingEntity p_34811_, LivingEntity p_34812_) protected static void
PiglinAi.wasHurtBy
(Piglin p_34838_, LivingEntity p_34839_) protected static void
PiglinBruteAi.wasHurtBy
(PiglinBrute p_35097_, LivingEntity p_35098_) private static boolean
PiglinAi.wasHurtRecently
(LivingEntity p_34989_) Modifier and TypeMethodDescriptionprivate static Optional
<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange
(AbstractPiglin p_35092_, MemoryModuleType<? extends LivingEntity> p_35093_) -
Uses of LivingEntity in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionprivate static boolean
WardenAi.isTarget
(Warden p_219515_, LivingEntity p_219516_) private static void
WardenAi.onTargetInvalid
(Warden p_219529_, LivingEntity p_219530_) void
Warden.setAttackTarget
(LivingEntity p_219460_) static void
WardenAi.setDigCooldown
(LivingEntity p_219506_) -
Uses of LivingEntity in net.minecraft.world.entity.npc
-
Uses of LivingEntity in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionprotected void
Player.blockUsingShield
(LivingEntity p_36295_) protected void
Player.doAutoAttackOnTouch
(LivingEntity p_36355_) boolean
Player.killedEntity
(ServerLevel p_219735_, LivingEntity p_219736_) -
Uses of LivingEntity in net.minecraft.world.entity.projectile
Modifier and TypeFieldDescriptionprivate LivingEntity
FireworkRocketEntity.attachedToEntity
private LivingEntity
EvokerFangs.owner
Modifier and TypeFieldDescriptionstatic final Predicate
<LivingEntity> ThrownPotion.WATER_SENSITIVE_OR_ON_FIRE
Modifier and TypeMethodDescriptionprivate void
EvokerFangs.dealDamageTo
(LivingEntity p_36945_) protected void
AbstractArrow.doPostHurtEffects
(LivingEntity p_36744_) protected void
Arrow.doPostHurtEffects
(LivingEntity p_36873_) protected void
SpectralArrow.doPostHurtEffects
(LivingEntity p_37422_) static AbstractArrow
ProjectileUtil.getMobArrow
(LivingEntity p_37301_, ItemStack p_37302_, float p_37303_) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity p_37298_, Item p_37299_) Deprecated.void
AbstractArrow.setEnchantmentEffectsFromEntity
(LivingEntity p_36746_, float p_36747_) void
EvokerFangs.setOwner
(LivingEntity p_36939_) ModifierConstructorDescriptionprotected
AbstractArrow
(EntityType<? extends AbstractArrow> p_36717_, LivingEntity p_36718_, Level p_36719_, ItemStack p_309031_) AbstractHurtingProjectile
(EntityType<? extends AbstractHurtingProjectile> p_36826_, LivingEntity p_36827_, double p_36828_, double p_36829_, double p_36830_, Level p_36831_) Arrow
(Level p_36861_, LivingEntity p_308924_, ItemStack p_309188_) DragonFireball
(Level p_36903_, LivingEntity p_36904_, double p_36905_, double p_36906_, double p_36907_) EvokerFangs
(Level p_36926_, double p_36927_, double p_36928_, double p_36929_, float p_36930_, int p_36931_, LivingEntity p_36932_) Fireball
(EntityType<? extends Fireball> p_36999_, LivingEntity p_37000_, double p_37001_, double p_37002_, double p_37003_, Level p_37004_) FireworkRocketEntity
(Level p_37058_, ItemStack p_37059_, LivingEntity p_37060_) LargeFireball
(Level p_181151_, LivingEntity p_181152_, double p_181153_, double p_181154_, double p_181155_, int p_181156_) ShulkerBullet
(Level p_37330_, LivingEntity p_37331_, Entity p_37332_, Direction.Axis p_37333_) SmallFireball
(Level p_37375_, LivingEntity p_37376_, double p_37377_, double p_37378_, double p_37379_) Snowball
(Level p_37399_, LivingEntity p_37400_) SpectralArrow
(Level p_37414_, LivingEntity p_309162_, ItemStack p_309167_) ThrowableItemProjectile
(EntityType<? extends ThrowableItemProjectile> p_37438_, LivingEntity p_37439_, Level p_37440_) protected
ThrowableProjectile
(EntityType<? extends ThrowableProjectile> p_37462_, LivingEntity p_37463_, Level p_37464_) ThrownEgg
(Level p_37481_, LivingEntity p_37482_) ThrownEnderpearl
(Level p_37499_, LivingEntity p_37500_) ThrownExperienceBottle
(Level p_37518_, LivingEntity p_37519_) ThrownPotion
(Level p_37535_, LivingEntity p_37536_) ThrownTrident
(Level p_37569_, LivingEntity p_37570_, ItemStack p_37571_) WitherSkull
(Level p_37609_, LivingEntity p_37610_, double p_37611_, double p_37612_, double p_37613_) -
Uses of LivingEntity in net.minecraft.world.entity.raid
-
Uses of LivingEntity in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionstatic boolean
DismountHelper.canDismountTo
(CollisionGetter p_38457_, LivingEntity p_38458_, AABB p_38459_) static boolean
DismountHelper.canDismountTo
(CollisionGetter p_150280_, Vec3 p_150281_, LivingEntity p_150282_, Pose p_150283_) AbstractMinecart.getDismountLocationForPassenger
(LivingEntity p_38145_) Boat.getDismountLocationForPassenger
(LivingEntity p_38357_) -
Uses of LivingEntity in net.minecraft.world.food
-
Uses of LivingEntity in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate static Predicate
<LivingEntity> MaceItem.knockbackPredicate
(Player p_338613_, Entity p_338698_) Modifier and TypeMethodDescriptionboolean
ElytraItem.canElytraFly
(ItemStack stack, LivingEntity entity) void
ItemStack.consume
(int p_326311_, LivingEntity p_326200_) ArrowItem.createArrow
(Level p_40513_, ItemStack p_40514_, LivingEntity p_40515_) SpectralArrowItem.createArrow
(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_) protected Projectile
CrossbowItem.createProjectile
(Level p_331583_, LivingEntity p_40863_, ItemStack p_40864_, ItemStack p_40865_, boolean p_40866_) protected Projectile
ProjectileWeaponItem.createProjectile
(Level p_331008_, LivingEntity p_330781_, ItemStack p_330846_, ItemStack p_331497_, boolean p_331305_) ProjectileWeaponItem.draw
(ItemStack p_331565_, ItemStack p_330406_, LivingEntity p_330823_) boolean
ElytraItem.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) BowlFoodItem.finishUsingItem
(ItemStack p_40684_, Level p_40685_, LivingEntity p_40686_) ChorusFruitItem.finishUsingItem
(ItemStack p_40712_, Level p_40713_, LivingEntity p_40714_) HoneyBottleItem.finishUsingItem
(ItemStack p_41348_, Level p_41349_, LivingEntity p_41350_) Item.finishUsingItem
(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) ItemStack.finishUsingItem
(Level p_41672_, LivingEntity p_41673_) MilkBucketItem.finishUsingItem
(ItemStack p_42923_, Level p_42924_, LivingEntity p_42925_) OminousBottleItem.finishUsingItem
(ItemStack p_338871_, Level p_338693_, LivingEntity p_338370_) PotionItem.finishUsingItem
(ItemStack p_42984_, Level p_42985_, LivingEntity p_42986_) SpyglassItem.finishUsingItem
(ItemStack p_151209_, Level p_151210_, LivingEntity p_151211_) SuspiciousStewItem.finishUsingItem
(ItemStack p_43263_, Level p_43264_, LivingEntity p_43265_) static ItemStack
ProjectileWeaponItem.getHeldProjectile
(LivingEntity p_43011_, Predicate<ItemStack> p_43012_) private static double
MaceItem.getKnockbackPower
(Player p_338265_, LivingEntity p_338630_, Vec3 p_338866_) private static org.joml.Vector3f
CrossbowItem.getProjectileShotVector
(LivingEntity p_331584_, Vec3 p_331590_, float p_331104_) void
ItemStack.hurtAndBreak
(int p_220158_, RandomSource p_220159_, LivingEntity p_220160_, Runnable p_320659_) void
ItemStack.hurtAndBreak
(int p_41623_, LivingEntity p_41624_, EquipmentSlot p_319898_) boolean
DiggerItem.hurtEnemy
(ItemStack p_40994_, LivingEntity p_40995_, LivingEntity p_40996_) boolean
Item.hurtEnemy
(ItemStack p_41395_, LivingEntity p_41396_, LivingEntity p_41397_) void
ItemStack.hurtEnemy
(LivingEntity p_41641_, Player p_41642_) boolean
MaceItem.hurtEnemy
(ItemStack p_334046_, LivingEntity p_333712_, LivingEntity p_333812_) boolean
SwordItem.hurtEnemy
(ItemStack p_43278_, LivingEntity p_43279_, LivingEntity p_43280_) boolean
TridentItem.hurtEnemy
(ItemStack p_43390_, LivingEntity p_43391_, LivingEntity p_43392_) DyeItem.interactLivingEntity
(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity
(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) ItemStack.interactLivingEntity
(Player p_41648_, LivingEntity p_41649_, InteractionHand p_41650_) NameTagItem.interactLivingEntity
(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) SaddleItem.interactLivingEntity
(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) boolean
ArrowItem.isInfinite
(ItemStack stack, ItemStack bow, LivingEntity livingEntity) boolean
Item.mineBlock
(ItemStack p_41416_, Level p_41417_, BlockState p_41418_, BlockPos p_41419_, LivingEntity p_41420_) boolean
ShearsItem.mineBlock
(ItemStack p_43078_, Level p_43079_, BlockState p_43080_, BlockPos p_43081_, LivingEntity p_43082_) void
BrushItem.onUseTick
(Level p_273467_, LivingEntity p_273619_, ItemStack p_273316_, int p_273101_) void
CrossbowItem.onUseTick
(Level p_40910_, LivingEntity p_40911_, ItemStack p_40912_, int p_40913_) void
Item.onUseTick
(Level p_41428_, LivingEntity p_41429_, ItemStack p_41430_, int p_41431_) void
ItemStack.onUseTick
(Level p_41732_, LivingEntity p_41733_, int p_41734_) void
CrossbowItem.performShooting
(Level p_40888_, LivingEntity p_40889_, InteractionHand p_40890_, ItemStack p_40891_, float p_40892_, float p_40893_, LivingEntity p_331602_) void
BowItem.releaseUsing
(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) void
CrossbowItem.releaseUsing
(ItemStack p_40875_, Level p_40876_, LivingEntity p_40877_, int p_40878_) void
Item.releaseUsing
(ItemStack p_41412_, Level p_41413_, LivingEntity p_41414_, int p_41415_) void
ItemStack.releaseUsing
(Level p_41675_, LivingEntity p_41676_, int p_41677_) void
SpyglassItem.releaseUsing
(ItemStack p_151213_, Level p_151214_, LivingEntity p_151215_, int p_151216_) void
TridentItem.releaseUsing
(ItemStack p_43394_, Level p_43395_, LivingEntity p_43396_, int p_43397_) protected void
ProjectileWeaponItem.shoot
(Level p_331270_, LivingEntity p_330728_, InteractionHand p_331152_, ItemStack p_330646_, List<ItemStack> p_331726_, float p_331007_, float p_331445_, boolean p_331107_, LivingEntity p_331167_) protected void
BowItem.shootProjectile
(LivingEntity p_331372_, Projectile p_332000_, int p_330631_, float p_331251_, float p_331199_, float p_330857_, LivingEntity p_331572_) protected void
CrossbowItem.shootProjectile
(LivingEntity p_40896_, Projectile p_332122_, int p_331865_, float p_40900_, float p_40902_, float p_40903_, LivingEntity p_330303_) protected abstract void
ProjectileWeaponItem.shootProjectile
(LivingEntity p_330966_, Projectile p_332201_, int p_331696_, float p_331444_, float p_331156_, float p_331718_, LivingEntity p_331705_) private void
SpyglassItem.stopUsing
(LivingEntity p_151207_) private static boolean
CrossbowItem.tryLoadProjectiles
(LivingEntity p_40860_, ItemStack p_40861_) protected static ItemStack
ProjectileWeaponItem.useAmmo
(ItemStack p_331207_, ItemStack p_331434_, LivingEntity p_330302_, boolean p_330934_) -
Uses of LivingEntity in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionvoid
DamageEnchantment.doPostAttack
(LivingEntity p_44638_, Entity p_44639_, int p_44640_) void
Enchantment.doPostAttack
(LivingEntity p_44686_, Entity p_44687_, int p_44688_) static void
EnchantmentHelper.doPostDamageEffects
(LivingEntity p_44897_, Entity p_44898_) void
Enchantment.doPostHurt
(LivingEntity p_44692_, Entity p_44693_, int p_44694_) void
ThornsEnchantment.doPostHurt
(LivingEntity p_45215_, Entity p_45216_, int p_45217_) static void
EnchantmentHelper.doPostHurtEffects
(LivingEntity p_44824_, Entity p_44825_) void
Enchantment.doPostItemStackHurt
(LivingEntity p_338405_, Entity p_338648_, int p_338725_) void
WindBurstEnchantment.doPostItemStackHurt
(LivingEntity p_338647_, Entity p_338351_, int p_338250_) static void
EnchantmentHelper.doPostItemStackHurtEffects
(LivingEntity p_338188_, Entity p_338394_, ItemEnchantments p_338474_) static int
EnchantmentHelper.getBlockEfficiency
(LivingEntity p_44927_) static int
EnchantmentHelper.getDepthStrider
(LivingEntity p_44923_) static int
EnchantmentHelper.getEnchantmentLevel
(Enchantment p_44837_, LivingEntity p_44838_) static double
ProtectionEnchantment.getExplosionKnockbackAfterDampener
(LivingEntity p_45136_, double p_45137_) static int
ProtectionEnchantment.getFireAfterDampener
(LivingEntity p_45139_, int p_45140_) static int
EnchantmentHelper.getFireAspect
(LivingEntity p_44915_) static int
EnchantmentHelper.getKnockbackBonus
(LivingEntity p_44895_) static int
EnchantmentHelper.getMobLooting
(LivingEntity p_44931_) static Map.Entry
<EquipmentSlot, ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_44907_, LivingEntity p_44908_) static Map.Entry
<EquipmentSlot, ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_44840_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) static int
EnchantmentHelper.getRespiration
(LivingEntity p_44919_) Enchantment.getSlotItems
(LivingEntity p_44685_) static float
EnchantmentHelper.getSneakingSpeedBonus
(LivingEntity p_220303_) static float
EnchantmentHelper.getSweepingDamageRatio
(LivingEntity p_44822_) static boolean
EnchantmentHelper.hasAquaAffinity
(LivingEntity p_44935_) static boolean
EnchantmentHelper.hasFrostWalker
(LivingEntity p_44939_) static boolean
EnchantmentHelper.hasSoulSpeed
(LivingEntity p_44943_) static void
FrostWalkerEnchantment.onEntityMoved
(LivingEntity p_45019_, Level p_45020_, BlockPos p_45021_, int p_45022_) -
Uses of LivingEntity in net.minecraft.world.level
Modifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> EntityGetter.getNearbyEntities
(Class<T> p_45972_, TargetingConditions p_45973_, LivingEntity p_45974_, AABB p_45975_) default <T extends LivingEntity>
TEntityGetter.getNearestEntity
(Class<? extends T> p_45964_, TargetingConditions p_45965_, LivingEntity p_45966_, double p_45967_, double p_45968_, double p_45969_, AABB p_45970_) default <T extends LivingEntity>
TEntityGetter.getNearestEntity
(List<? extends T> p_45983_, TargetingConditions p_45984_, LivingEntity p_45985_, double p_45986_, double p_45987_, double p_45988_) Modifier and TypeMethodDescriptionExplosion.getIndirectSourceEntity()
private static LivingEntity
Explosion.getIndirectSourceEntityInternal
(Entity p_312444_) Modifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> EntityGetter.getNearbyEntities
(Class<T> p_45972_, TargetingConditions p_45973_, LivingEntity p_45974_, AABB p_45975_) EntityGetter.getNearbyPlayers
(TargetingConditions p_45956_, LivingEntity p_45957_, AABB p_45958_) default <T extends LivingEntity>
TEntityGetter.getNearestEntity
(Class<? extends T> p_45964_, TargetingConditions p_45965_, LivingEntity p_45966_, double p_45967_, double p_45968_, double p_45969_, AABB p_45970_) default <T extends LivingEntity>
TEntityGetter.getNearestEntity
(List<? extends T> p_45983_, TargetingConditions p_45984_, LivingEntity p_45985_, double p_45986_, double p_45987_, double p_45988_) default Player
EntityGetter.getNearestPlayer
(TargetingConditions p_45947_, LivingEntity p_45948_) default Player
EntityGetter.getNearestPlayer
(TargetingConditions p_45950_, LivingEntity p_45951_, double p_45952_, double p_45953_, double p_45954_) -
Uses of LivingEntity in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionprivate static void
TntBlock.explode
(Level p_57437_, BlockPos p_57438_, LivingEntity p_57439_) Deprecated.boolean
TrapDoorBlock.isLadder
(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity) void
TntBlock.onCaughtFire
(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) void
BedBlock.setPlacedBy
(Level p_49499_, BlockPos p_49500_, BlockState p_49501_, LivingEntity p_49502_, ItemStack p_49503_) void
Block.setPlacedBy
(Level p_49847_, BlockPos p_49848_, BlockState p_49849_, LivingEntity p_49850_, ItemStack p_49851_) void
CommandBlock.setPlacedBy
(Level p_51804_, BlockPos p_51805_, BlockState p_51806_, LivingEntity p_51807_, ItemStack p_51808_) void
CrafterBlock.setPlacedBy
(Level p_307219_, BlockPos p_307681_, BlockState p_307383_, LivingEntity p_307647_, ItemStack p_307190_) void
DiodeBlock.setPlacedBy
(Level p_52506_, BlockPos p_52507_, BlockState p_52508_, LivingEntity p_52509_, ItemStack p_52510_) void
DoorBlock.setPlacedBy
(Level p_52749_, BlockPos p_52750_, BlockState p_52751_, LivingEntity p_52752_, ItemStack p_52753_) void
DoublePlantBlock.setPlacedBy
(Level p_52872_, BlockPos p_52873_, BlockState p_52874_, LivingEntity p_52875_, ItemStack p_52876_) void
JukeboxBlock.setPlacedBy
(Level p_54264_, BlockPos p_54265_, BlockState p_54266_, LivingEntity p_54267_, ItemStack p_54268_) void
PitcherCropBlock.setPlacedBy
(Level p_277432_, BlockPos p_277632_, BlockState p_277479_, LivingEntity p_277805_, ItemStack p_277663_) void
SmallDripleafBlock.setPlacedBy
(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) void
StructureBlock.setPlacedBy
(Level p_57122_, BlockPos p_57123_, BlockState p_57124_, LivingEntity p_57125_, ItemStack p_57126_) void
TripWireHookBlock.setPlacedBy
(Level p_57680_, BlockPos p_57681_, BlockState p_57682_, LivingEntity p_57683_, ItemStack p_57684_) void
WitherSkullBlock.setPlacedBy
(Level p_58260_, BlockPos p_58261_, BlockState p_58262_, LivingEntity p_58263_, ItemStack p_58264_) void
WitherWallSkullBlock.setPlacedBy
(Level p_58278_, BlockPos p_58279_, BlockState p_58280_, LivingEntity p_58281_, ItemStack p_58282_) -
Uses of LivingEntity in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionprivate static LivingEntity
ConduitBlockEntity.findDestroyTarget
(Level p_155425_, BlockPos p_155426_, UUID p_155427_) Modifier and TypeMethodDescriptionvoid
StructureBlockEntity.createdBy
(LivingEntity p_59852_) private static void
BellBlockEntity.glow
(LivingEntity p_58841_) private static boolean
BellBlockEntity.isRaiderWithinRange
(BlockPos p_155197_, LivingEntity p_155198_) private void
SculkCatalystBlockEntity.CatalystListener.tryAwardItSpreadsAdvancement
(Level p_281279_, LivingEntity p_281378_) Modifier and TypeMethodDescriptionprivate static boolean
BellBlockEntity.areRaidersNearby
(BlockPos p_155200_, List<LivingEntity> p_155201_) private static void
BellBlockEntity.makeRaidersGlow
(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_) void
BellBlockEntity.ResonationEndAction.run
(Level p_155221_, BlockPos p_155222_, List<LivingEntity> p_155223_) private static void
BellBlockEntity.showBellParticles
(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_) -
Uses of LivingEntity in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionvoid
PistonBaseBlock.setPlacedBy
(Level p_60172_, BlockPos p_60173_, BlockState p_60174_, LivingEntity p_60175_, ItemStack p_60176_) -
Uses of LivingEntity in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic <T extends LivingEntity>
voidClientHooks.copyModelProperties
(HumanoidModel<T> original, HumanoidModel<?> replacement) Copies humanoid model properties from the original model to another, used for armor modelsModifier and TypeMethodDescriptionvoid
IArmPoseTransformer.applyTransform
(HumanoidModel<?> model, LivingEntity entity, HumanoidArm arm) This method should be used to apply all wanted transformations to the player when the ArmPose is active.static Model
ClientHooks.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) -
Uses of LivingEntity in net.neoforged.neoforge.client.event
Modifier and TypeClassDescriptionclass
RenderLivingEvent<T extends LivingEntity,
M extends EntityModel<T>> Fired when aLivingEntity
is rendered.static class
RenderLivingEvent.Post<T extends LivingEntity,
M extends EntityModel<T>> Fired after an entity is rendered, if the correspondingRenderLivingEvent.Post
is not cancelled.static class
RenderLivingEvent.Pre<T extends LivingEntity,
M extends EntityModel<T>> Fired before an entity is rendered.ModifierConstructorDescriptionPost
(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) Pre
(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) protected
RenderLivingEvent
(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
Uses of LivingEntity in net.neoforged.neoforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault HumanoidModel.ArmPose
IClientItemExtensions.getArmPose
(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using theHumanoidModel.ArmPose.create(String, boolean, IArmPoseTransformer)
method.default Model
IClientItemExtensions.getGenericArmorModel
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the armor model for this item when it's equipped.default HumanoidModel
<?> IClientItemExtensions.getHumanoidArmorModel
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the humanoid armor model for this item when it's equipped. -
Uses of LivingEntity in net.neoforged.neoforge.client.model
Modifier and TypeMethodDescriptionDynamicFluidContainerModel.ContainedFluidOverrideHandler.resolve
(BakedModel originalModel, ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity, int seed) -
Uses of LivingEntity in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends LivingEntity>, AttributeSupplier> CommonHooks.FORGE_ATTRIBUTES
Modifier and TypeMethodDescriptionstatic Map
<EntityType<? extends LivingEntity>, AttributeSupplier> CommonHooks.getAttributesView()
Deprecated.Modifier and TypeMethodDescriptionstatic boolean
CommonHooks.canEntityDestroy
(Level level, BlockPos pos, LivingEntity entity) static boolean
CommonHooks.canMobEffectBeApplied
(LivingEntity entity, MobEffectInstance effect) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable
.static double
CommonHooks.getEntityVisibilityMultiplier
(LivingEntity entity, Entity lookingEntity, double originalMultiplier) static int
CommonHooks.getLootingLevel
(LivingEntity target, @Nullable DamageSource cause, int level) static ItemStack
CommonHooks.getProjectile
(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent
.CommonHooks.isLivingOnLadder
(BlockState state, Level level, BlockPos pos, LivingEntity entity) static boolean
CommonHooks.onLivingAttack
(LivingEntity entity, DamageSource src, float amount) static void
CommonHooks.onLivingBreathe
(LivingEntity entity, int consumeAirAmount, int refillAirAmount) Handles living entities being underwater.static LivingChangeTargetEvent
CommonHooks.onLivingChangeTarget
(LivingEntity entity, LivingEntity originalTarget, LivingChangeTargetEvent.ILivingTargetType targetType) static float
CommonHooks.onLivingDamage
(LivingEntity entity, DamageSource src, float amount) static boolean
CommonHooks.onLivingDeath
(LivingEntity entity, DamageSource src) static boolean
CommonHooks.onLivingDrops
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) static @org.jetbrains.annotations.Nullable float[]
CommonHooks.onLivingFall
(LivingEntity entity, float distance, float damageMultiplier) static float
CommonHooks.onLivingHurt
(LivingEntity entity, DamageSource src, float amount) static void
CommonHooks.onLivingJump
(LivingEntity entity) static LivingKnockBackEvent
CommonHooks.onLivingKnockBack
(LivingEntity target, float strength, double ratioX, double ratioZ) static LivingSwapItemsEvent.Hands
CommonHooks.onLivingSwapHandItems
(LivingEntity livingEntity) static boolean
CommonHooks.onLivingUseTotem
(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static boolean
CommonHooks.onPlayerAttack
(LivingEntity entity, DamageSource src, float amount) static ShieldBlockEvent
CommonHooks.onShieldBlock
(LivingEntity blocker, DamageSource source, float blocked) -
Uses of LivingEntity in net.neoforged.neoforge.common.damagesource
Modifier and TypeMethodDescriptionIDeathMessageProvider.getDeathMessage
(LivingEntity entity, CombatEntry lastEntry, @Nullable CombatEntry mostSignificantFall) Computes the death message from the available context.
This method is not invoked if there are no available combat entries, since the damage source would not be available. -
Uses of LivingEntity in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T extends LivingEntity>
intIItemExtension.damageItem
(ItemStack stack, int amount, T entity, Runnable onBroken) Reduce the durability of this item by the amount given.Modifier and TypeMethodDescriptiondefault boolean
IBlockExtension.addLandingEffects
(BlockState state1, ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle.default boolean
IBlockStateExtension.addLandingEffects
(ServerLevel level, BlockPos pos, BlockState state2, LivingEntity entity, int numberOfParticles) Allows a block to override the standard EntityLivingBase.updateFallState particles, this is a server side method that spawns particles with WorldServer.spawnParticle.default boolean
IItemExtension.canDisableShield
(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IItemStackExtension.canDisableShield
(ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IItemExtension.canElytraFly
(ItemStack stack, LivingEntity entity) Used to determine if the player can use Elytra flight.default boolean
IItemStackExtension.canElytraFly
(LivingEntity entity) Used to determine if the player can use Elytra flight.default boolean
IItemExtension.canWalkOnPowderedSnow
(ItemStack stack, LivingEntity wearer) Called by the powdered snow block to check if a living entity wearing this can walk on the snow, granting the same behavior as leather boots.default boolean
IItemStackExtension.canWalkOnPowderedSnow
(LivingEntity wearer) Called by the powdered snow block to check if a living entity wearing this can walk on the snow, granting the same behavior as leather boots.default boolean
IItemExtension.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default boolean
IItemStackExtension.elytraFlightTick
(LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default @Nullable FoodProperties
IItemExtension.getFoodProperties
(ItemStack stack, @Nullable LivingEntity entity) Get the food properties for this item.default @Nullable FoodProperties
IItemStackExtension.getFoodProperties
(@Nullable LivingEntity entity) Get the food properties for this item.default boolean
IBlockExtension.isBed
(BlockState state, BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlock
checks.default boolean
IBlockStateExtension.isBed
(BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlock
checks.default boolean
IBlockExtension.isLadder
(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity can use this block to 'climb' like a ladder.default boolean
IBlockStateExtension.isLadder
(LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity can use this block to 'climb' like a ladder.default boolean
IBlockExtension.isScaffolding
(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity handles movement on this block like scaffolding.default boolean
IBlockStateExtension.isScaffolding
(LivingEntity entity) Checks if a player or entity handles movement on this block like scaffolding.default boolean
IItemExtension.makesPiglinsNeutral
(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default boolean
IItemStackExtension.makesPiglinsNeutral
(LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default boolean
IFluidExtension.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
IFluidStateExtension.move
(LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default void
IBlockExtension.onCaughtFire
(BlockState state, Level level, BlockPos pos, @Nullable Direction direction, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default void
IBlockStateExtension.onCaughtFire
(Level level, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default boolean
IItemExtension.onEntitySwing
(ItemStack stack, LivingEntity entity) Called when a entity tries to play the 'swing' animation.default boolean
IItemStackExtension.onEntitySwing
(LivingEntity entity) Called when a entity tries to play the 'swing' animation.default void
IItemExtension.onStopUsing
(ItemStack stack, LivingEntity entity, int count) Called when an entity stops using an item for any reason, notably when selecting another item without releasing or finishing.default void
IItemStackExtension.onStopUsing
(LivingEntity entity, int count) Called when an entity stops using an item item for any reason.default void
IBlockExtension.setBedOccupied
(BlockState state, Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) Called when a user either starts or stops sleeping in the bed.default void
IBlockStateExtension.setBedOccupied
(Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) Called when a user either starts or stops sleeping in the bed. -
Uses of LivingEntity in net.neoforged.neoforge.common.util
Modifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions. -
Uses of LivingEntity in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.canEntityContinueSleeping
(LivingEntity sleeper, @Nullable Player.BedSleepingProblem problem) Checks if a sleeping entity can continue sleeping with the given sleeping problem.static boolean
EventHooks.canLivingConvert
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) static int
EventHooks.getExperienceDrop
(LivingEntity entity, Player attackingPlayer, int originalExperience) EventHooks.onChorusFruitTeleport
(LivingEntity entity, double targetX, double targetY, double targetZ) static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, MobEffectInstance effectInstance, @Nullable EffectCure cure) EventHooks.onEnderTeleport
(LivingEntity entity, double targetX, double targetY, double targetZ) static boolean
EventHooks.onEntityDestroyBlock
(LivingEntity entity, BlockPos pos, BlockState state) static ItemStack
EventHooks.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) static int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, int duration) static int
EventHooks.onItemUseTick
(LivingEntity entity, ItemStack item, int duration) static void
EventHooks.onLivingConvert
(LivingEntity entity, LivingEntity outcome) static float
EventHooks.onLivingHeal
(LivingEntity entity, float amount) static boolean
EventHooks.onUseItemStop
(LivingEntity entity, ItemStack item, int duration) Modifier and TypeMethodDescriptionstatic boolean
EventHooks.canLivingConvert
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity
Modifier and TypeFieldDescriptionprivate final LivingEntity
EntityTeleportEvent.ChorusFruit.entityLiving
private final LivingEntity
EntityTeleportEvent.EnderEntity.entityLiving
Modifier and TypeFieldDescriptionprivate final Map
<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> EntityAttributeModificationEvent.entityAttributes
private final List
<EntityType<? extends LivingEntity>> EntityAttributeModificationEvent.entityTypes
private final Map
<EntityType<? extends LivingEntity>, AttributeSupplier> EntityAttributeCreationEvent.map
Modifier and TypeMethodDescriptionEntityTeleportEvent.ChorusFruit.getEntityLiving()
EntityTeleportEvent.EnderEntity.getEntityLiving()
Modifier and TypeMethodDescriptionList
<EntityType<? extends LivingEntity>> EntityAttributeModificationEvent.getTypes()
Modifier and TypeMethodDescriptionvoid
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) void
EntityAttributeModificationEvent.add
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute, double value) boolean
EntityAttributeModificationEvent.has
(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) void
EntityAttributeCreationEvent.put
(EntityType<? extends LivingEntity> entity, AttributeSupplier map) ModifierConstructorDescriptionChorusFruit
(LivingEntity entity, double targetX, double targetY, double targetZ) EnderEntity
(LivingEntity entity, double targetX, double targetY, double targetZ) ModifierConstructorDescriptionEntityAttributeCreationEvent
(Map<EntityType<? extends LivingEntity>, AttributeSupplier> map) EntityAttributeModificationEvent
(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final LivingEntity
LivingEvent.livingEntity
private LivingEntity
LivingChangeTargetEvent.newTarget
private final LivingEntity
LivingChangeTargetEvent.originalTarget
private final LivingEntity
LivingConversionEvent.Post.outcome
Modifier and TypeFieldDescriptionprivate final EntityType
<? extends LivingEntity> LivingConversionEvent.Pre.outcome
Modifier and TypeMethodDescriptionLivingEvent.getEntity()
LivingChangeTargetEvent.getNewTarget()
Returns the new target of this entity..LivingChangeTargetEvent.getOriginalTarget()
Returns the original entity MC intended to use as a target before firing this event..LivingConversionEvent.Post.getOutcome()
Gets the finalized new entity (with all data like potion effect and equipments set)Modifier and TypeMethodDescriptionEntityType
<? extends LivingEntity> LivingConversionEvent.Pre.getOutcome()
Gets the entity type of the new entity this living entity is converting toModifier and TypeMethodDescriptionvoid
LivingChangeTargetEvent.setNewTarget
(LivingEntity newTarget) Sets the new target this entity shall have.ModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) Applicable
(LivingEntity living, MobEffectInstance effectInstance) EffectParticleModificationEvent
(LivingEntity entity, MobEffectInstance effect) Expired
(LivingEntity living, MobEffectInstance effectInstance) Finish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) Hands
(LivingEntity entity) LivingAttackEvent
(LivingEntity entity, DamageSource source, float amount) LivingBreatheEvent
(LivingEntity entity, boolean canBreathe, int consumeAirAmount, int refillAirAmount) LivingChangeTargetEvent
(LivingEntity entity, LivingEntity originalTarget, LivingChangeTargetEvent.ILivingTargetType targetType) LivingConversionEvent
(LivingEntity entity) LivingDamageEvent
(LivingEntity entity, DamageSource source, float amount) LivingDeathEvent
(LivingEntity entity, DamageSource source) LivingDestroyBlockEvent
(LivingEntity entity, BlockPos pos, BlockState state) LivingDropsEvent
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) LivingDrownEvent
(LivingEntity entity) Constructor which auto-populates with all vanilla values.LivingDrownEvent
(LivingEntity entity, boolean isDrowning, float damageAmount, int bubbleCount) Constructs a new LivingDrownEvent.private
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, int duration) LivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) LivingEvent
(LivingEntity entity) LivingExperienceDropEvent
(LivingEntity entity, @Nullable Player attackingPlayer, int originalExperience) LivingFallEvent
(LivingEntity entity, float distance, float damageMultiplier) LivingGetProjectileEvent
(LivingEntity livingEntity, ItemStack projectileWeaponItemStack, ItemStack ammo) LivingHealEvent
(LivingEntity entity, float amount) LivingHurtEvent
(LivingEntity entity, DamageSource source, float amount) LivingKnockBackEvent
(LivingEntity target, float strength, double ratioX, double ratioZ) LivingSwapItemsEvent
(LivingEntity entity) LivingUseTotemEvent
(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) LivingVisibilityEvent
(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier) LootingLevelEvent
(LivingEntity entity, @Nullable DamageSource damageSource, int lootingLevel) protected
MobEffectEvent
(LivingEntity living, MobEffectInstance effectInstance) Post
(LivingEntity entity, LivingEntity outcome) Pre
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) Remove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) Remove
(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure) ShieldBlockEvent
(LivingEntity blocker, DamageSource source, float blocked) Start
(LivingEntity entity, ItemStack item, int duration) Stop
(LivingEntity entity, ItemStack item, int duration) Tick
(LivingEntity entity, ItemStack item, int duration) ModifierConstructorDescriptionPre
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity.player
ModifierConstructorDescriptionCanContinueSleepingEvent
(LivingEntity entity, @Nullable Player.BedSleepingProblem problem) -
Uses of LivingEntity in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionboolean
FluidType.canDrownIn
(LivingEntity entity) Returns whether the entity can drown in the fluid.boolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid. -
Uses of LivingEntity in net.neoforged.neoforge.items.wrapper
Modifier and TypeFieldDescriptionprotected final LivingEntity
EntityEquipmentInvWrapper.entity
The entity.ModifierConstructorDescriptionEntityArmorInvWrapper
(LivingEntity entity) EntityEquipmentInvWrapper
(LivingEntity entity, EquipmentSlot.Type slotType) EntityHandsInvWrapper
(LivingEntity entity) -
Uses of LivingEntity in net.neoforged.neoforge.oldtest.block
Modifier and TypeMethodDescriptionboolean
ScaffoldingTest.ScaffoldingMethodTestBlock.isScaffolding
(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) -
Uses of LivingEntity in net.neoforged.neoforge.oldtest.client
Modifier and TypeFieldDescriptionprivate static final Lazy
<HumanoidModel<LivingEntity>> CustomArmorModelTest.TintedArmorModel.ENDERMAN
-
Uses of LivingEntity in net.neoforged.neoforge.oldtest.client.rendering
ModifierConstructorDescriptionprotected
MyEntity
(EntityType<? extends LivingEntity> p_20966_, Level p_20967_) -
Uses of LivingEntity in net.neoforged.neoforge.oldtest.entity
-
Uses of LivingEntity in net.neoforged.neoforge.oldtest.item
Modifier and TypeMethodDescriptionboolean
CustomElytraTest.CustomElytra.canElytraFly
(ItemStack stack, LivingEntity entity) boolean
CustomElytraTest.CustomElytra.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) static void
StopUsingItemTest.InvertedTelescope.removeFov
(LivingEntity living) -
Uses of LivingEntity in net.neoforged.testframework.gametest
Modifier and TypeMethodDescription<E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectAbsent
(E entity, Holder<MobEffect> effect, String testName) <E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectPresent
(E entity, Holder<MobEffect> effect, String testName)