Uses of Class
net.minecraft.world.entity.LivingEntity
Packages that use 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
Methods in net.minecraft.advancements.critereon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type LivingEntityModifier and TypeMethodDescriptionint
Constant.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
CustomModelDataSource.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
Dye.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
Firework.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
GrassColorSource.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
ItemTintSource.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
MapColor.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
Potion.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) int
TeamColor.calculate
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.client.gui
Methods in net.minecraft.client.gui that return LivingEntityMethods in net.minecraft.client.gui with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate int
Gui.getVehicleMaxHearts
(LivingEntity pVehicle) Retrieves the maximum number of hearts representing the vehicle's health for the given mount entity.void
GuiGraphics.renderItem
(LivingEntity pEntity, ItemStack pStack, int pX, int pY, int pSeed) Renders an item stack for a living entity at the specified coordinates with a random seed.private void
GuiGraphics.renderItem
(LivingEntity pEntity, Level pLevel, ItemStack pStack, int pX, int pY, int pSeed) Renders an item stack for a living entity in a specific level at the specified coordinates with a random seed. -
Uses of LivingEntity in net.minecraft.client.gui.screens.inventory
Methods in net.minecraft.client.gui.screens.inventory with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic void
InventoryScreen.renderEntityInInventory
(GuiGraphics p_282665_, int p_416436_, int p_416211_, int p_416017_, int p_416187_, float p_296361_, 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 pGuiGraphics, int pX1, int pY1, int pX2, int pY2, int pScale, float pYOffset, float pMouseX, float pMouseY, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.client.player
Subclasses of LivingEntity in net.minecraft.client.player -
Uses of LivingEntity in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate float
LightTexture.calculateDarknessScale
(LivingEntity pEntity, float pGamma, float pPartialTick) static float
GameRenderer.getNightVisionScale
(LivingEntity pLivingEntity, float pNanoTime) void
ItemInHandRenderer.renderItem
(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) -
Uses of LivingEntity in net.minecraft.client.renderer.entity
Classes in net.minecraft.client.renderer.entity with type parameters of type LivingEntityModifier and TypeClassDescriptionclass
LivingEntityRenderer<T extends LivingEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Methods in net.minecraft.client.renderer.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic void
HumanoidMobRenderer.extractHumanoidRenderState
(LivingEntity pEntity, HumanoidRenderState pReusedState, float pPartialTick, ItemModelResolver pItemModelResolver) private static HumanoidArm
HumanoidMobRenderer.getAttackArm
(LivingEntity pEntity) private static ItemStack
HumanoidMobRenderer.getEquipmentIfRenderable
(LivingEntity pEntity, EquipmentSlot pSlot) private Vec3
GuardianRenderer.getPosition
(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) static boolean
LivingEntityRenderer.isEntityUpsideDown
(LivingEntity pEntity) void
ItemRenderer.renderStatic
(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pPackedLight, int pPackedOverlay, int pSeed) private static float
LivingEntityRenderer.solveBodyRot
(LivingEntity pEntity, float pYHeadRot, float pPartialTick) -
Uses of LivingEntity in net.minecraft.client.renderer.entity.state
Methods in net.minecraft.client.renderer.entity.state with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic void
ArmedEntityRenderState.extractArmedEntityRenderState
(LivingEntity pEntity, ArmedEntityRenderState pReusedState, ItemModelResolver pItemModelResolver) static void
HoldingEntityRenderState.extractHoldingEntityRenderState
(LivingEntity pEntity, HoldingEntityRenderState pReusedState, ItemModelResolver pResolver) -
Uses of LivingEntity in net.minecraft.client.renderer.fog.environment
Methods in net.minecraft.client.renderer.fog.environment with parameters of type LivingEntityModifier and TypeMethodDescriptionfloat
BlindnessFogEnvironment.getModifiedDarkness
(LivingEntity p_423634_, float p_423626_, float p_423501_) float
DarknessFogEnvironment.getModifiedDarkness
(LivingEntity p_423586_, float p_423483_, float p_423558_) float
FogEnvironment.getModifiedDarkness
(LivingEntity pEntity, float pDarkness, float pPartialTick) -
Uses of LivingEntity in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
ItemModelResolver.appendItemLayers
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Level pLevel, LivingEntity pEntity, int pSeed) void
BlockModelWrapper.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
BundleSelectedItemSpecialRenderer.update
(ItemStackRenderState p_387618_, ItemStack p_386990_, ItemModelResolver p_386923_, ItemDisplayContext p_387805_, ClientLevel p_387156_, LivingEntity p_388838_, int p_386711_) void
CompositeModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
ConditionalItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
EmptyModel.update
(ItemStackRenderState p_390492_, ItemStack p_390354_, ItemModelResolver p_390507_, ItemDisplayContext p_390501_, ClientLevel p_390403_, LivingEntity p_390475_, int p_390493_) void
ItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
MissingItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
RangeSelectItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
SelectItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
SpecialModelWrapper.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
ItemModelResolver.updateForLiving
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, LivingEntity pEntity) void
ItemModelResolver.updateForTopItem
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Level pLevel, LivingEntity pEntity, int pSeed) -
Uses of LivingEntity in net.minecraft.client.renderer.item.properties.conditional
Methods in net.minecraft.client.renderer.item.properties.conditional with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
Broken.get
(ItemStack p_386887_, ClientLevel p_388949_, LivingEntity p_386628_, int p_387040_, ItemDisplayContext p_389458_) boolean
BundleHasSelectedItem.get
(ItemStack p_387343_, ClientLevel p_386467_, LivingEntity p_387284_, int p_388377_, ItemDisplayContext p_389630_) boolean
ComponentMatches.get
(ItemStack p_399920_, ClientLevel p_399844_, LivingEntity p_399573_, int p_400095_, ItemDisplayContext p_400208_) boolean
CustomModelDataProperty.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) boolean
Damaged.get
(ItemStack p_388323_, ClientLevel p_388659_, LivingEntity p_386950_, int p_387664_, ItemDisplayContext p_389573_) boolean
ExtendedView.get
(ItemStack p_389501_, ClientLevel p_389409_, LivingEntity p_389583_, int p_389502_, ItemDisplayContext p_389679_) boolean
FishingRodCast.get
(ItemStack p_388347_, ClientLevel p_388341_, LivingEntity p_386847_, int p_386531_, ItemDisplayContext p_389619_) boolean
HasComponent.get
(ItemStack p_388222_, ClientLevel p_386715_, LivingEntity p_386871_, int p_387461_, ItemDisplayContext p_389562_) boolean
IsCarried.get
(ItemStack p_387247_, ClientLevel p_387933_, LivingEntity p_388427_, int p_386998_, ItemDisplayContext p_389534_) boolean
IsKeybindDown.get
(ItemStack p_389550_, ClientLevel p_389440_, LivingEntity p_389703_, int p_389439_, ItemDisplayContext p_389599_) boolean
IsSelected.get
(ItemStack p_387724_, ClientLevel p_387118_, LivingEntity p_387251_, int p_388905_, ItemDisplayContext p_389631_) boolean
IsUsingItem.get
(ItemStack p_386538_, ClientLevel p_386504_, LivingEntity p_388492_, int p_387916_, ItemDisplayContext p_389393_) boolean
IsViewEntity.get
(ItemStack p_390357_, ClientLevel p_390458_, LivingEntity p_390497_, int p_390451_, ItemDisplayContext p_390466_) boolean
ItemModelPropertyTest.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) -
Uses of LivingEntity in net.minecraft.client.renderer.item.properties.numeric
Methods in net.minecraft.client.renderer.item.properties.numeric with parameters of type LivingEntityModifier and TypeMethodDescriptionfloat
BundleFullness.get
(ItemStack p_388015_, ClientLevel p_386753_, LivingEntity p_386760_, int p_386639_) float
CompassAngle.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) float
Cooldown.get
(ItemStack p_387823_, ClientLevel p_386825_, LivingEntity p_387191_, int p_387909_) float
Count.get
(ItemStack p_388019_, ClientLevel p_386708_, LivingEntity p_387940_, int p_388179_) float
CrossbowPull.get
(ItemStack p_387470_, ClientLevel p_387947_, LivingEntity p_388564_, int p_388371_) float
CustomModelDataProperty.get
(ItemStack p_386883_, ClientLevel p_387867_, LivingEntity p_388117_, int p_388040_) float
Damage.get
(ItemStack p_386977_, ClientLevel p_386768_, LivingEntity p_387971_, int p_386955_) float
NeedleDirectionHelper.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) float
RangeSelectItemModelProperty.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) float
UseCycle.get
(ItemStack p_387347_, ClientLevel p_388372_, LivingEntity p_387048_, int p_388681_) float
UseDuration.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) static int
UseDuration.useDuration
(ItemStack pStack, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.client.renderer.item.properties.select
Methods in net.minecraft.client.renderer.item.properties.select with parameters of type LivingEntityModifier and TypeMethodDescriptionCharge.get
(ItemStack p_387321_, ClientLevel p_387482_, LivingEntity p_387912_, int p_387536_, ItemDisplayContext p_387489_) ComponentContents.get
(ItemStack p_397602_, ClientLevel p_397414_, LivingEntity p_397883_, int p_397032_, ItemDisplayContext p_397548_) ContextDimension.get
(ItemStack p_390388_, ClientLevel p_390477_, LivingEntity p_390423_, int p_390520_, ItemDisplayContext p_390452_) ContextEntityType.get
(ItemStack p_390525_, ClientLevel p_390442_, LivingEntity p_390437_, int p_390427_, ItemDisplayContext p_390397_) CustomModelDataProperty.get
(ItemStack p_388036_, ClientLevel p_387600_, LivingEntity p_388624_, int p_388055_, ItemDisplayContext p_387132_) DisplayContext.get
(ItemStack p_388079_, ClientLevel p_388467_, LivingEntity p_388500_, int p_388313_, ItemDisplayContext p_387120_) ItemBlockState.get
(ItemStack p_387708_, ClientLevel p_388625_, LivingEntity p_388880_, int p_388899_, ItemDisplayContext p_388088_) LocalTime.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) MainHand.get
(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) SelectItemModelProperty.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) TrimMaterialProperty.get
(ItemStack p_387701_, ClientLevel p_388261_, LivingEntity p_387373_, int p_388817_, ItemDisplayContext p_386970_) -
Uses of LivingEntity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type LivingEntityModifier and TypeMethodDescription<E extends LivingEntity>
voidGameTestHelper.assertEntityIsHolding
(BlockPos pPos, EntityType<E> pEntityType, Item pItem) Methods in net.minecraft.gametest.framework that return LivingEntityModifier and TypeMethodDescriptionGameTestHelper.makeAboutToDrown
(LivingEntity pEntity) GameTestHelper.withLowHealth
(LivingEntity pEntity) Methods in net.minecraft.gametest.framework with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
GameTestHelper.assertLivingEntityHasMobEffect
(LivingEntity pEntity, Holder<MobEffect> pEffect, int pAmplifier) GameTestHelper.makeAboutToDrown
(LivingEntity pEntity) GameTestHelper.withLowHealth
(LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugPackets.getMemoryDescriptions
(LivingEntity pEntity, long pGameTime) static void
DebugPackets.sendEntityBrain
(LivingEntity pLivingEntity) Constructors in net.minecraft.network.protocol.game with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<Optional<EntityReference<LivingEntity>>> EntityDataSerializers.OPTIONAL_LIVING_ENTITY_REFERENCE
-
Uses of LivingEntity in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity pEntity, Holder<Attribute> pAttribute) private static LivingEntity
AttributeCommand.getLivingEntity
(Entity pTarget) -
Uses of LivingEntity in net.minecraft.server.level
Subclasses of LivingEntity in net.minecraft.server.levelMethods in net.minecraft.server.level with type parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> ServerEntityGetter.getNearbyEntities
(Class<T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) default <T extends LivingEntity>
TServerEntityGetter.getNearestEntity
(Class<? extends T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ, AABB pArea) default <T extends LivingEntity>
TServerEntityGetter.getNearestEntity
(List<? extends T> pEntities, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) Methods in net.minecraft.server.level with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> ServerEntityGetter.getNearbyEntities
(Class<T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) ServerEntityGetter.getNearbyPlayers
(TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) default <T extends LivingEntity>
TServerEntityGetter.getNearestEntity
(Class<? extends T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ, AABB pArea) default <T extends LivingEntity>
TServerEntityGetter.getNearestEntity
(List<? extends T> pEntities, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) default Player
ServerEntityGetter.getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource) default Player
ServerEntityGetter.getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) -
Uses of LivingEntity in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
PlayerList.sendActiveEffects
(LivingEntity pEntity, ServerGamePacketListenerImpl pConnection) -
Uses of LivingEntity in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as LivingEntityMethods in net.minecraft.world.damagesource with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic FallLocation
FallLocation.getCurrentFallLocation
(LivingEntity pEntity) static float
CombatRules.getDamageAfterAbsorb
(LivingEntity pEntity, float pDamage, DamageSource pDamageSource, float pArmorValue, float pArmorToughness) DamageSource.getLocalizedDeathMessage
(LivingEntity pLivingEntity) Gets the death message that is displayed when the player diesDamageSources.mobAttack
(LivingEntity pMob) DamageSources.mobProjectile
(Entity pProjectile, LivingEntity pThrower) DamageSources.noAggroMobAttack
(LivingEntity pMob) DamageSources.spit
(Entity pSpit, LivingEntity pThrower) DamageSources.sting
(LivingEntity pEntity) DamageSources.windCharge
(Entity pWindCharge, LivingEntity pThrower) Constructors in net.minecraft.world.damagesource with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
AbsorptionMobEffect.applyEffectTick
(ServerLevel p_376208_, LivingEntity p_294484_, int p_294672_) boolean
BadOmenMobEffect.applyEffectTick
(ServerLevel p_376404_, LivingEntity p_296327_, int p_294357_) boolean
HealOrHarmMobEffect.applyEffectTick
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier) boolean
HungerMobEffect.applyEffectTick
(ServerLevel p_376386_, LivingEntity p_296407_, int p_296356_) boolean
MobEffect.applyEffectTick
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier) boolean
PoisonMobEffect.applyEffectTick
(ServerLevel p_376442_, LivingEntity p_296276_, int p_296233_) boolean
RaidOmenMobEffect.applyEffectTick
(ServerLevel p_376757_, LivingEntity p_338728_, int p_338249_) boolean
RegenerationMobEffect.applyEffectTick
(ServerLevel p_376742_, LivingEntity p_295924_, int p_296417_) boolean
SaturationMobEffect.applyEffectTick
(ServerLevel p_376353_, LivingEntity p_295892_, int p_296026_) boolean
WitherMobEffect.applyEffectTick
(ServerLevel p_376400_, LivingEntity p_296279_, int p_294798_) void
HealOrHarmMobEffect.applyInstantenousEffect
(ServerLevel pLevel, Entity pSource, Entity pIndirectSource, LivingEntity pEntity, int pAmplifier, double pHealth) void
MobEffect.applyInstantenousEffect
(ServerLevel pLevel, Entity pSource, Entity pIndirectSource, LivingEntity pEntity, int pAmplifier, double pHealth) static OozingMobEffect.NearbySlimes
OozingMobEffect.NearbySlimes.closeTo
(LivingEntity pEntity) float
MobEffectInstance.getBlendFactor
(LivingEntity pEntity, float pDelta) static int
MobEffectUtil.getDigSpeedAmplification
(LivingEntity pEntity) float
MobEffectInstance.BlendState.getFactor
(LivingEntity pEntity, float pDelta) static boolean
MobEffectUtil.hasDigSpeed
(LivingEntity pEntity) static boolean
MobEffectUtil.hasWaterBreathing
(LivingEntity pEntity) void
MobEffect.onEffectAdded
(LivingEntity pEntity, int pAmplifier) void
MobEffectInstance.onEffectAdded
(LivingEntity pLivingEntity) void
AbsorptionMobEffect.onEffectStarted
(LivingEntity p_294820_, int p_295222_) void
MobEffect.onEffectStarted
(LivingEntity pEntity, int pAmplifier) void
MobEffectInstance.onEffectStarted
(LivingEntity pEntity) void
InfestedMobEffect.onMobHurt
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier, DamageSource pDamageSource, float pAmount) void
MobEffect.onMobHurt
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier, DamageSource pDamageSource, float pAmount) void
MobEffectInstance.onMobHurt
(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource, float pAmount) void
MobEffect.onMobRemoved
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier, Entity.RemovalReason pReason) void
MobEffectInstance.onMobRemoved
(ServerLevel pLevel, LivingEntity pEntity, Entity.RemovalReason pReason) void
OozingMobEffect.onMobRemoved
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier, Entity.RemovalReason pReason) void
WeavingMobEffect.onMobRemoved
(ServerLevel pLevel, LivingEntity pEntity, int pAmplifier, Entity.RemovalReason pReason) void
WindChargedMobEffect.onMobRemoved
(ServerLevel p_376782_, LivingEntity p_338439_, int p_338875_, Entity.RemovalReason p_338258_) private void
InfestedMobEffect.spawnSilverfish
(ServerLevel pLevel, LivingEntity pEntity, double pX, double pY, double pZ) boolean
MobEffectInstance.tickServer
(ServerLevel pLevel, LivingEntity pEntity, Runnable pOnEffectUpdated) -
Uses of LivingEntity in net.minecraft.world.entity
Subclasses of LivingEntity in net.minecraft.world.entityModifier and TypeClassDescriptionclass
class
class
class
class
Fields in net.minecraft.world.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntity
ElytraAnimationState.entity
private LivingEntity
LivingEntity.lastHurtMob
private LivingEntity
Mob.target
Fields in net.minecraft.world.entity with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected static final EntityDataAccessor
<Optional<EntityReference<LivingEntity>>> TamableAnimal.DATA_OWNERUUID_ID
private EntityReference
<LivingEntity> LivingEntity.lastHurtByMob
private EntityReference
<LivingEntity> AreaEffectCloud.owner
static final Predicate
<LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM
Deprecated.static final BiPredicate
<LivingEntity, @Nullable LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET
static final BiPredicate
<LivingEntity, @Nullable LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET
Methods in net.minecraft.world.entity that return LivingEntityModifier 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()
default LivingEntity
OwnableEntity.getRootOwner()
Interaction.getTarget()
Mob.getTarget()
NeutralMob.getTarget()
Targeting.getTarget()
protected final LivingEntity
Mob.getTargetFromBrain()
Methods in net.minecraft.world.entity that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionOwnableEntity.getOwnerReference()
TamableAnimal.getOwnerReference()
Methods in net.minecraft.world.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionEntityType.appendCustomEntityStackConfig
(Consumer<T> pConsumer, Level pLevel, ItemStack pStack, LivingEntity pOwner) EntityType.appendDefaultStackConfig
(Consumer<T> pConsumer, Level pLevel, ItemStack pStack, LivingEntity pOwner) protected void
LivingEntity.blockedByItem
(LivingEntity pEntity) protected void
LivingEntity.blockUsingItem
(ServerLevel pLevel, LivingEntity pEntity) boolean
LivingEntity.canAttack
(LivingEntity pTarget) boolean
NeutralMob.canAttack
(LivingEntity pEntity) boolean
TamableAnimal.canAttack
(LivingEntity pTarget) EntityType.createDefaultStackConfig
(Level pLevel, ItemStack pStack, LivingEntity pOwner) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity pEntity, EquipmentSlot pSlot) protected void
LivingEntity.createWitherRose
(LivingEntity pEntitySource) protected void
LivingEntity.doAutoAttackOnTouch
(LivingEntity pTarget) void
EntityEquipment.dropAll
(LivingEntity pEntity) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity pEntity, EquipmentSlot pSlot) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity pEntity, EquipmentSlot pSlot, Predicate<ItemStack> pStackFilter) Entity.getDismountLocationForPassenger
(LivingEntity pPassenger) default boolean
NeutralMob.isAngryAt
(LivingEntity pEntity, ServerLevel pLevel) boolean
LivingEntity.isLookingAtMe
(LivingEntity pEntity, double pTolerance, boolean pScaleByDistance, boolean pVisual, double... pYValues) boolean
TamableAnimal.isOwnedBy
(LivingEntity pEntity) boolean
Mob.isWithinMeleeAttackRange
(LivingEntity pEntity) boolean
Entity.killedEntity
(ServerLevel pLevel, LivingEntity pEntity) void
LivingEntity.setLastHurtByMob
(LivingEntity pLivingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.void
NeutralMob.setLastHurtByMob
(LivingEntity pLivingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.void
AreaEffectCloud.setOwner
(LivingEntity pOwner) void
TamableAnimal.setOwner
(LivingEntity pOwner) void
Mob.setTarget
(LivingEntity pTarget) Sets the active target the Goal system uses for trackingvoid
NeutralMob.setTarget
(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingEntityType.spawn
(ServerLevel pLevel, ItemStack pSpawnedFrom, LivingEntity pOwner, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) static void
EntityType.updateCustomEntityTag
(Level pLevel, LivingEntity pOwner, Entity pEntity, CustomData pCustomData) boolean
TamableAnimal.wantsToAttack
(LivingEntity pTarget, LivingEntity pOwner) Method parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) void
TamableAnimal.setOwnerReference
(EntityReference<LivingEntity> pOwner) Constructors in net.minecraft.world.entity with parameters of type LivingEntityConstructor parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotected
LivingEntity
(EntityType<? extends LivingEntity> pEntityType, Level pLevel) -
Uses of LivingEntity in net.minecraft.world.entity.ai
Classes in net.minecraft.world.entity.ai with type parameters of type LivingEntityModifier and TypeClassDescriptionclass
Brain<E extends LivingEntity>
static final class
Brain.Provider<E extends LivingEntity>
Methods in net.minecraft.world.entity.ai with type parameters of type LivingEntityModifier 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<?>> pMemoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> pSensorTypes) -
Uses of LivingEntity in net.minecraft.world.entity.ai.attributes
Fields in net.minecraft.world.entity.ai.attributes with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends LivingEntity>, AttributeSupplier> DefaultAttributes.SUPPLIERS
Method parameters in net.minecraft.world.entity.ai.attributes with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic AttributeSupplier
DefaultAttributes.getSupplier
(EntityType<? extends LivingEntity> pLivingEntity) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior
Classes in net.minecraft.world.entity.ai.behavior with type parameters of type LivingEntityModifier 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>
Fields in net.minecraft.world.entity.ai.behavior declared as LivingEntityModifier and TypeFieldDescription(package private) final LivingEntity
PrepareRamNearestTarget.RamCandidate.target
Fields in net.minecraft.world.entity.ai.behavior with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Function
<LivingEntity, Double> FollowTemptation.closeEnoughDistance
private final Function
<LivingEntity, Float> FollowTemptation.speedModifier
private final Function
<LivingEntity, Optional<PositionTracker>> GoAndGiveItemsToTarget.targetPositionGetter
Methods in net.minecraft.world.entity.ai.behavior with type parameters of type LivingEntityModifier and TypeMethodDescriptionabstract <E extends LivingEntity>
voidGateBehavior.RunningPolicy.apply
(Stream<BehaviorControl<? super E>> pBehaviors, ServerLevel pLevel, E pOwner, long pGameTime) static <E extends LivingEntity,
T>
BehaviorControl<E> CopyMemoryWithExpiry.create
(Predicate<E> pCanCopyMemory, MemoryModuleType<? extends T> pSourceMemory, MemoryModuleType<T> pTargetMemory, UniformInt pDurationOfCopy) static <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create
(int pMaxDistanceFromVehicle, BiPredicate<E, Entity> pShouldStopRiding) static <E extends LivingEntity>
BehaviorControl<E> EraseMemoryIf.create
(Predicate<E> pShouldEraseMemory, MemoryModuleType<?> pErasingMemory) static <E extends LivingEntity>
BehaviorControl<E> GoToWantedItem.create
(Predicate<E> pCanWalkToItem, float pSpeedModifier, boolean pHasTarget, int pMaxDistToWalk) static <E extends LivingEntity,
T extends LivingEntity>
BehaviorControl<E> InteractWith.of
(EntityType<? extends T> pType, int pInteractionRange, Predicate<E> pSelfFilter, Predicate<T> pTargetFilter, MemoryModuleType<T> pMemory, float pSpeedModifier, int pMaxDist) static <E extends LivingEntity,
T extends LivingEntity>
BehaviorControl<E> InteractWith.of
(EntityType<? extends T> pType, int pInteractionRange, Predicate<E> pSelfFilter, Predicate<T> pTargetFilter, MemoryModuleType<T> pMemory, float pSpeedModifier, int pMaxDist) static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of
(EntityType<? extends T> pType, int pInteractionRange, MemoryModuleType<T> pInteractMemory, float pSpeedModifier, int pMaxDist) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate
(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> pTriggers, GateBehavior.OrderPolicy pOrderPolicy, GateBehavior.RunningPolicy pRunningPolicy) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerOneShuffled
(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> pTriggers) Methods in net.minecraft.world.entity.ai.behavior that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntity
CrossbowAttack.getAttackTarget
(LivingEntity pShooter) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) PrepareRamNearestTarget.RamCandidate.getTarget()
static LivingEntity
BehaviorUtils.getTargetNearestMe
(LivingEntity pCenterEntity, LivingEntity pLivingEntity1, LivingEntity pLivingEntity2) private LivingEntity
ShowTradesToPlayer.lookAtTarget
(Villager pVillager) private static LivingEntity
PlayTagWithOtherKids.whoAreYouChasing
(LivingEntity pKid) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Map
<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas
(List<LivingEntity> pKids) static OneShot
<LivingEntity> BabyFollowAdult.create
(UniformInt pFollowRange, float pSpeedModifier) static OneShot
<LivingEntity> BabyFollowAdult.create
(UniformInt pFollowRange, Function<LivingEntity, Float> pSpeedModifier, MemoryModuleType<? extends LivingEntity> pNearestVisibleAdult, boolean pTargetEyeHeight) static BehaviorControl
<LivingEntity> BecomePassiveIfMemoryPresent.create
(MemoryModuleType<?> pPacifyingMemory, int pPacifyDuration) static BehaviorControl
<LivingEntity> GoToWantedItem.create
(float pSpeedModifier, boolean pHasTarget, int pMaxDistToWalk) static BehaviorControl
<LivingEntity> InteractWithDoor.create()
static OneShot
<LivingEntity> LocateHidingPlace.create
(int pRadius, float pSpeedModifier, int pCloseEnoughDist) static BehaviorControl
<LivingEntity> Mount.create
(float pSpeedModifier) static OneShot
<LivingEntity> MoveToSkySeeingSpot.create
(float pSpeedModifier) static BehaviorControl
<LivingEntity> ReactToBell.create()
static BehaviorControl
<LivingEntity> ResetRaidStatus.create()
static BehaviorControl
<LivingEntity> RingBell.create()
static OneShot
<LivingEntity> SetEntityLookTarget.create
(float pMaxDist) static OneShot
<LivingEntity> SetEntityLookTarget.create
(Predicate<LivingEntity> pCanLootAtTarget, float pMaxDist) static OneShot
<LivingEntity> SetEntityLookTarget.create
(EntityType<?> pEntityType, float pMaxDist) static BehaviorControl
<LivingEntity> SetEntityLookTarget.create
(MobCategory pCategory, float pMakDist) static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float pMaxDist, UniformInt pInterval) Deprecated.private static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float pMaxDist, UniformInt pInterval, Predicate<LivingEntity> pCanLookAtTarget) Deprecated.static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(EntityType<?> pEntityType, float pMaxDist, UniformInt pInterval) Deprecated.static BehaviorControl
<LivingEntity> SetHiddenState.create
(int pStayHiddenSeconds, int pCloseEnoughDist) static BehaviorControl
<LivingEntity> SetLookAndInteract.create
(EntityType<?> pEntityType, int pMaxDist) static BehaviorControl
<LivingEntity> SetRaidStatus.create()
static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(float pSpeedModifier, int pCloseEnoughDist) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static OneShot
<LivingEntity> SocializeAtBell.create()
static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) static BehaviorControl
<LivingEntity> StopBeingAngryIfTargetDead.create()
static BehaviorControl
<LivingEntity> static BehaviorControl
<LivingEntity> UpdateActivityFromSchedule.create()
static BehaviorControl
<LivingEntity> ValidateNearbyPoi.create
(Predicate<Holder<PoiType>> pPoiValidator, MemoryModuleType<GlobalPos> pPoiPosMemory) static BehaviorControl
<LivingEntity> VillagerCalmDown.create()
static BehaviorControl
<LivingEntity> WakeUp.create()
private static Optional
<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased
(List<LivingEntity> pKids) Optional
<? extends LivingEntity> StartAttacking.TargetFinder.get
(ServerLevel pLevel, E pMob) private static com.mojang.datafixers.util.Pair
<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getFullLookBehavior()
static Optional
<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory
(LivingEntity pLivingEntity, MemoryModuleType<UUID> pTargetMemory) private static com.mojang.datafixers.util.Pair
<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getMinimalLookBehavior()
static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of
(EntityType<? extends T> pType, int pInteractionRange, MemoryModuleType<T> pInteractMemory, float pSpeedModifier, int pMaxDist) Methods in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
StopAttackingIfTargetInvalid.TargetErasedCallback.accept
(ServerLevel pLevel, E pEntity, LivingEntity pTarget) private static boolean
InteractWithDoor.areOtherMobsComingThroughDoor
(LivingEntity pEntity, BlockPos pPos, Optional<List<LivingEntity>> pNearestLivingEntities) private static boolean
ValidateNearbyPoi.bedIsOccupied
(ServerLevel pLevel, BlockPos pPos, LivingEntity pEntity) PrepareRamNearestTarget.calculateRammingStartPosition
(PathfinderMob pPathfinder, LivingEntity pEntity) static boolean
BehaviorUtils.canSee
(LivingEntity pLivingEntity, LivingEntity pTarget) protected boolean
CountDownCooldownTicks.canStillUse
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected boolean
SleepInBed.canStillUse
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) private static void
PlayTagWithOtherKids.chaseKid
(MemoryAccessor<?, LivingEntity> pInteractionTarget, MemoryAccessor<?, PositionTracker> pLookTarget, MemoryAccessor<?, WalkTarget> pWalkTarget, LivingEntity pKid) protected boolean
SleepInBed.checkExtraStartConditions
(ServerLevel pLevel, LivingEntity pOwner) private void
PrepareRamNearestTarget.chooseRamPosition
(PathfinderMob pPathfinder, LivingEntity pEntity) static void
InteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel pLevel, LivingEntity pEntity, Node pPrevious, Node pNext, Set<GlobalPos> pDoorPositions, Optional<List<LivingEntity>> pNearestLivingEntities) private void
CrossbowAttack.crossbowAttack
(E pShooter, LivingEntity pTarget) final void
DoNothing.doStop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) static boolean
BehaviorUtils.entityIsVisible
(Brain<?> pBrain, LivingEntity pTarget) private void
ShowTradesToPlayer.findItemsToDisplay
(LivingEntity pEntity, Villager pVillager) private static LivingEntity
CrossbowAttack.getAttackTarget
(LivingEntity pShooter) CountDownCooldownTicks.getCooldownTickMemory
(LivingEntity pEntity) static Optional
<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory
(LivingEntity pLivingEntity, MemoryModuleType<UUID> pTargetMemory) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) private static Vec3
MoveToSkySeeingSpot.getOutdoorPosition
(ServerLevel pLevel, LivingEntity pEntity) static LivingEntity
BehaviorUtils.getTargetNearestMe
(LivingEntity pCenterEntity, LivingEntity pLivingEntity1, LivingEntity pLivingEntity2) static boolean
VillagerPanicTrigger.hasHostile
(LivingEntity pEntity) static boolean
MoveToSkySeeingSpot.hasNoBlocksAbove
(ServerLevel pLevel, LivingEntity pEntity, BlockPos pPos) static boolean
BehaviorUtils.isBreeding
(LivingEntity pEntity) private static boolean
PlayTagWithOtherKids.isChasingSomeone
(LivingEntity p_23668_) private static boolean
InteractWithDoor.isDoorTooFarAway
(ServerLevel pLevel, LivingEntity pEntity, GlobalPos pPos) private static boolean
PlayTagWithOtherKids.isFriendChasingMe
(LivingEntity pEntity, LivingEntity pKid) static boolean
VillagerPanicTrigger.isHurt
(LivingEntity pEntity) static boolean
BehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget
(LivingEntity pLivingEntity, LivingEntity pTarget, double pDistance) private static boolean
StopAttackingIfTargetInvalid.isTiredOfTryingToReachTarget
(LivingEntity pEntity, Optional<Long> pTimeSinceInvalidTarget) private static boolean
DismountOrSkipMounting.isVehicleValid
(LivingEntity pEntity, Entity pVehicle, int pDistance) boolean
BlockPosTracker.isVisibleBy
(LivingEntity pEntity) boolean
EntityTracker.isVisibleBy
(LivingEntity pEntity) boolean
PositionTracker.isVisibleBy
(LivingEntity pEntity) static boolean
BehaviorUtils.isWithinAttackRange
(Mob pMob, LivingEntity pTarget, int pCooldown) static void
BehaviorUtils.lockGazeAndWalkToEachOther
(LivingEntity pFirstEntity, LivingEntity pSecondEntity, float pSpeed, int pDistance) private static void
BehaviorUtils.lookAtEachOther
(LivingEntity pFirstEntity, LivingEntity pSecondEntity) static void
BehaviorUtils.lookAtEntity
(LivingEntity pEntity, LivingEntity pTarget) private void
CrossbowAttack.lookAtTarget
(Mob pShooter, LivingEntity pTarget) 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 pLivingEntity, BlockPos pPos, float pSpeed, int pDistance) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity pEntity, PositionTracker pPositionTracker, float pSpeedModifier, int pCloseEnoughDist) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity pLivingEntity, Entity pTarget, float pSpeed, int pDistance) private static void
BehaviorUtils.setWalkAndLookTargetMemoriesToEachOther
(LivingEntity pFirstEntity, LivingEntity pSecondEntity, float pSpeed, int pDistance) protected void
SleepInBed.start
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected void
CountDownCooldownTicks.stop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected void
SleepInBed.stop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) boolean
StopAttackingIfTargetInvalid.StopAttackCondition.test
(ServerLevel pLevel, LivingEntity pEntity) private void
GiveGiftToHero.throwGift
(ServerLevel pLevel, Villager pVillager, LivingEntity pTarget) private static void
TradeWithVillager.throwHalfStack
(Villager pVillager, Set<Item> pStack, LivingEntity pEntity) static void
BehaviorUtils.throwItem
(LivingEntity pLivingEntity, ItemStack pStack, Vec3 pOffset) static void
BehaviorUtils.throwItem
(LivingEntity pEntity, ItemStack pStack, Vec3 pOffset, Vec3 pSpeedMultiplier, float pYOffset) static void
GoAndGiveItemsToTarget.throwItem
(LivingEntity pEntity, ItemStack pStack, Vec3 pThrowPos) protected void
CountDownCooldownTicks.tick
(ServerLevel pLevel, LivingEntity pOwner, long pGameTime) final void
DoNothing.tickOrStop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) final boolean
DoNothing.tryStart
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) private static LivingEntity
PlayTagWithOtherKids.whoAreYouChasing
(LivingEntity pKid) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static boolean
InteractWithDoor.areOtherMobsComingThroughDoor
(LivingEntity pEntity, BlockPos pPos, Optional<List<LivingEntity>> pNearestLivingEntities) private static void
PlayTagWithOtherKids.chaseKid
(MemoryAccessor<?, LivingEntity> pInteractionTarget, MemoryAccessor<?, PositionTracker> pLookTarget, MemoryAccessor<?, WalkTarget> pWalkTarget, LivingEntity pKid) private static Map
<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas
(List<LivingEntity> pKids) static void
InteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough
(ServerLevel pLevel, LivingEntity pEntity, Node pPrevious, Node pNext, Set<GlobalPos> pDoorPositions, Optional<List<LivingEntity>> pNearestLivingEntities) static OneShot
<LivingEntity> BabyFollowAdult.create
(UniformInt pFollowRange, Function<LivingEntity, Float> pSpeedModifier, MemoryModuleType<? extends LivingEntity> pNearestVisibleAdult, boolean pTargetEyeHeight) static OneShot
<LivingEntity> BabyFollowAdult.create
(UniformInt pFollowRange, Function<LivingEntity, Float> pSpeedModifier, MemoryModuleType<? extends LivingEntity> pNearestVisibleAdult, boolean pTargetEyeHeight) static OneShot
<LivingEntity> SetEntityLookTarget.create
(Predicate<LivingEntity> pCanLootAtTarget, float pMaxDist) private static BehaviorControl
<LivingEntity> SetEntityLookTargetSometimes.create
(float pMaxDist, UniformInt pInterval, Predicate<LivingEntity> pCanLookAtTarget) Deprecated.static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(Function<LivingEntity, Float> pSpeedModifier) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static OneShot
<LivingEntity> SetWalkTargetFromLookTarget.create
(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl
<LivingEntity> StartCelebratingIfTargetDead.create
(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) static BehaviorControl
<LivingEntity> StayCloseToTarget.create
(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) private static Optional
<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased
(List<LivingEntity> pKids) static LivingEntity
BehaviorUtils.getNearestTarget
(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) private static boolean
BehaviorUtils.targetIsValid
(Brain<?> pBrain, MemoryModuleType<? extends LivingEntity> pMemoryType, Predicate<LivingEntity> pLivingPredicate) private static boolean
BehaviorUtils.targetIsValid
(Brain<?> pBrain, MemoryModuleType<? extends LivingEntity> pMemoryType, Predicate<LivingEntity> pLivingPredicate) static boolean
BehaviorUtils.targetIsValid
(Brain<?> pBrains, MemoryModuleType<? extends LivingEntity> pMemorymodule, EntityType<?> pEntityType) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifierConstructorDescriptionRamCandidate
(BlockPos pStartPosition, BlockPos pTargetPosition, LivingEntity pTarget) Constructor parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifierConstructorDescriptionFollowTemptation
(Function<LivingEntity, Float> pSpeedModifier) FollowTemptation
(Function<LivingEntity, Float> pSpeedModifier, Function<LivingEntity, Double> pCloseEnoughDistance) FollowTemptation
(Function<LivingEntity, Float> pSpeedModifier, Function<LivingEntity, Double> pCloseEnoughDistance, boolean pLookInTheEyes) GoAndGiveItemsToTarget
(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, float pSpeedModifier, int pDuration) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.declarative
Classes in net.minecraft.world.entity.ai.behavior.declarative with type parameters of type LivingEntityModifier 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>
Methods in net.minecraft.world.entity.ai.behavior.declarative with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
OneShot<E> BehaviorBuilder.create
(Function<BehaviorBuilder.Instance<E>, ? extends com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, Trigger<E>>> pInitializer) (package private) static <E extends LivingEntity,
M>
BehaviorBuilder<E, M> BehaviorBuilder.create
(BehaviorBuilder.TriggerWithResult<E, M> pTrigger) (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> pPredicate) 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
Methods in net.minecraft.world.entity.ai.behavior.warden that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic BehaviorControl
<LivingEntity> SetWardenLookTarget.create()
static BehaviorControl
<LivingEntity> TryToSniff.create()
Methods in net.minecraft.world.entity.ai.behavior.warden with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected boolean
ForceUnmount.checkExtraStartConditions
(ServerLevel p_238424_, LivingEntity p_238425_) static void
SonicBoom.setCooldown
(LivingEntity pEntity, int pCooldown) protected void
ForceUnmount.start
(ServerLevel p_238410_, LivingEntity p_238411_, long p_238412_) Method parameters in net.minecraft.world.entity.ai.behavior.warden with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends Warden>
BehaviorControl<E> SetRoarTarget.create
(Function<E, Optional<? extends LivingEntity>> pTargetFinder) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal
Classes in net.minecraft.world.entity.ai.goal with type parameters of type LivingEntityFields in net.minecraft.world.entity.ai.goal declared as LivingEntityModifier 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
Fields in net.minecraft.world.entity.ai.goal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected final Predicate
<LivingEntity> AvoidEntityGoal.avoidPredicate
protected final Class
<? extends LivingEntity> LookAtPlayerGoal.lookAtType
protected final Predicate
<LivingEntity> AvoidEntityGoal.predicateOnAvoidEntity
Methods in net.minecraft.world.entity.ai.goal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected boolean
MeleeAttackGoal.canPerformAttack
(LivingEntity pEntity) protected void
MeleeAttackGoal.checkAndPerformAttack
(LivingEntity pTarget) private boolean
TemptGoal.shouldFollow
(LivingEntity pEntity) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionAvoidEntityGoal
(PathfinderMob pMob, Class<T> pAvoidClass, float pMaxDistance, double pWalkSpeedModifier, double pSprintSpeedModifier, Predicate<LivingEntity> pPredicateOnAvoidEntity) AvoidEntityGoal
(PathfinderMob pMob, Class<T> pAvoidClass, Predicate<LivingEntity> pAvoidPredicate, float pMaxDistance, double pWalkSpeedModifier, double pSprintSpeedModifier, Predicate<LivingEntity> pPredicateOnAvoidEntity) Goal that helps mobs avoid mobs of a specific classInteractGoal
(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 pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) LookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability) LookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability, boolean pOnlyHorizontal) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal.target
Classes in net.minecraft.world.entity.ai.goal.target with type parameters of type LivingEntityModifier and TypeClassDescriptionclass
NearestAttackableTargetGoal<T extends LivingEntity>
class
NearestAttackableWitchTargetGoal<T extends LivingEntity>
class
NearestHealableRaiderTargetGoal<T extends LivingEntity>
class
NonTameRandomTargetGoal<T extends LivingEntity>
Fields in net.minecraft.world.entity.ai.goal.target declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntity
OwnerHurtTargetGoal.ownerLastHurt
private LivingEntity
OwnerHurtByTargetGoal.ownerLastHurtBy
private LivingEntity
DefendVillageTargetGoal.potentialTarget
protected LivingEntity
NearestAttackableTargetGoal.target
protected LivingEntity
TargetGoal.targetMob
Methods in net.minecraft.world.entity.ai.goal.target with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected void
HurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) protected boolean
TargetGoal.canAttack
(LivingEntity pPotentialTarget, TargetingConditions pTargetPredicate) Checks if this is a suitable target.private boolean
TargetGoal.canReach
(LivingEntity pTarget) Checks to see if this entity can find a short path to the given target.void
NearestAttackableTargetGoal.setTarget
(LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type LivingEntityModifier 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
Holds a list of nearby living entities inside the brain entity's bounding box expanded 16 blocks in all directions.static final MemoryModuleType
<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ADULT
static final MemoryModuleType
<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ZOMBIFIED
static final MemoryModuleType
<LivingEntity> MemoryModuleType.ROAR_TARGET
static final MemoryModuleType
<List<LivingEntity>> MemoryModuleType.VISIBLE_VILLAGER_BABIES
Methods in net.minecraft.world.entity.ai.memory that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionNearestVisibleLivingEntities.find
(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findAll
(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findClosest
(Predicate<LivingEntity> pPredicate) Methods in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
NearestVisibleLivingEntities.contains
(LivingEntity pEntity) Method parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifier and TypeMethodDescriptionboolean
NearestVisibleLivingEntities.contains
(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.find
(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findAll
(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findClosest
(Predicate<LivingEntity> pPredicate) Constructors in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities
(ServerLevel pLevel, LivingEntity pEntity, List<LivingEntity> pNearbyEntities) Constructor parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities
(ServerLevel pLevel, LivingEntity pEntity, List<LivingEntity> pNearbyEntities) -
Uses of LivingEntity in net.minecraft.world.entity.ai.sensing
Classes in net.minecraft.world.entity.ai.sensing with type parameters of type LivingEntityModifier and TypeClassDescriptionclass
MobSensor<T extends LivingEntity>
class
NearestLivingEntitySensor<T extends LivingEntity>
class
Sensor<E extends LivingEntity>
Fields in net.minecraft.world.entity.ai.sensing with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final BiPredicate
<T, LivingEntity> MobSensor.mobTest
static final SensorType
<NearestLivingEntitySensor<LivingEntity>> SensorType.NEAREST_LIVING_ENTITIES
Methods in net.minecraft.world.entity.ai.sensing that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional
<LivingEntity> WardenEntitySensor.getClosest
(Warden pWarden, Predicate<LivingEntity> pPredicate) 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
(ServerLevel pLevel, LivingEntity pEntity) private List
<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies
(LivingEntity pLivingEntity) static BiPredicate
<ServerLevel, LivingEntity> Sensor.wasEntityAttackableLastNTicks
(LivingEntity pEntity, int pTicks) Methods in net.minecraft.world.entity.ai.sensing with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic void
GolemSensor.checkForNearbyGolem
(LivingEntity pLivingEntity) protected void
AdultSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
DummySensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
GolemSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
HurtBySensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
IsInWaterSensor.doTick
(ServerLevel p_217816_, LivingEntity p_217817_) protected void
NearestVisibleLivingEntitySensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
PiglinBruteSpecificSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
PiglinSpecificSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
PlayerSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) protected void
VillagerBabiesSensor.doTick
(ServerLevel pLevel, LivingEntity pEntity) PiglinSpecificSensor.findNearestRepellent
(ServerLevel pLevel, LivingEntity pLivingEntity) protected double
PlayerSensor.getFollowDistance
(LivingEntity pEntity) private Optional
<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity
(ServerLevel pLevel, LivingEntity pEntity) private List
<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies
(LivingEntity pLivingEntity) protected Optional
<NearestVisibleLivingEntities> NearestVisibleLivingEntitySensor.getVisibleEntities
(LivingEntity pEntity) private NearestVisibleLivingEntities
VillagerBabiesSensor.getVisibleEntities
(LivingEntity pLivingEntity) static void
GolemSensor.golemDetected
(LivingEntity pLivingEntity) private boolean
AxolotlAttackablesSensor.isClose
(LivingEntity pAttacker, LivingEntity pTarget) private boolean
VillagerHostilesSensor.isClose
(LivingEntity pAttacker, LivingEntity pTarget) static boolean
Sensor.isEntityAttackable
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) static boolean
Sensor.isEntityAttackableIgnoringLineOfSight
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) static boolean
Sensor.isEntityTargetable
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) private boolean
VillagerHostilesSensor.isHostile
(LivingEntity pEntity) private boolean
AxolotlAttackablesSensor.isHostileTarget
(LivingEntity pTarget) private boolean
AxolotlAttackablesSensor.isHuntTarget
(LivingEntity pAttacker, LivingEntity pTarget) protected boolean
AxolotlAttackablesSensor.isMatchingEntity
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) protected boolean
FrogAttackablesSensor.isMatchingEntity
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) protected abstract boolean
NearestVisibleLivingEntitySensor.isMatchingEntity
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) protected boolean
VillagerHostilesSensor.isMatchingEntity
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) private boolean
FrogAttackablesSensor.isUnreachableAttackTarget
(LivingEntity pAttacker, LivingEntity pTarget) private boolean
VillagerBabiesSensor.isVillagerBaby
(LivingEntity p_26839_) protected void
AdultSensor.setNearestVisibleAdult
(LivingEntity pEntity, NearestVisibleLivingEntities pNearestVisibleLivingEntities) protected void
AdultSensorAnyType.setNearestVisibleAdult
(LivingEntity p_416217_, NearestVisibleLivingEntities p_416574_) static BiPredicate
<ServerLevel, LivingEntity> Sensor.wasEntityAttackableLastNTicks
(LivingEntity pEntity, int pTicks) Method parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional
<LivingEntity> WardenEntitySensor.getClosest
(Warden pWarden, Predicate<LivingEntity> pPredicate) Constructor parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifierConstructorDescriptionMobSensor
(int pScanRate, BiPredicate<T, LivingEntity> pMobTest, Predicate<T> pReadyTest, MemoryModuleType<Boolean> pToSet, int pMemoryTimeToLive) -
Uses of LivingEntity in net.minecraft.world.entity.ai.targeting
Methods in net.minecraft.world.entity.ai.targeting with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
TargetingConditions.Selector.test
(LivingEntity pEntity, ServerLevel pLevel) boolean
TargetingConditions.test
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.ambient
Subclasses of LivingEntity in net.minecraft.world.entity.ambient -
Uses of LivingEntity in net.minecraft.world.entity.animal
Classes in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier 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>
Subclasses of LivingEntity in net.minecraft.world.entity.animalModifier 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
Fields in net.minecraft.world.entity.animal declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntity
Fox.DefendTrustedTargetGoal.trustedLastHurt
private LivingEntity
Fox.DefendTrustedTargetGoal.trustedLastHurtBy
Fields in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<Optional<EntityReference<LivingEntity>>> private static final EntityDataAccessor
<Optional<EntityReference<LivingEntity>>> private static final com.mojang.serialization.Codec
<List<EntityReference<LivingEntity>>> Methods in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player pPlayer, InteractionHand pHand, T pEntity) Methods in net.minecraft.world.entity.animal that return LivingEntityModifier and TypeMethodDescription@Nullable LivingEntity
HappyGhast.getControllingPassenger()
Pig.getControllingPassenger()
Methods in net.minecraft.world.entity.animal that return types with arguments of type LivingEntityModifier and TypeMethodDescription(package private) Stream
<EntityReference<LivingEntity>> Fox.getTrustedEntities()
Methods in net.minecraft.world.entity.animal with parameters of type LivingEntityModifier and TypeMethodDescription(package private) void
Fox.addTrustedEntity
(LivingEntity pEntity) protected void
Bee.BeeHurtByOtherGoal.alertOther
(Mob pMob, LivingEntity pTarget) protected void
Panda.PandaHurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) protected void
PolarBear.PolarBearHurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) boolean
Dolphin.canAttack
(LivingEntity pTarget) protected void
Fox.FoxMeleeAttackGoal.checkAndPerformAttack
(LivingEntity pTarget) protected void
PolarBear.PolarBearMeleeAttackGoal.checkAndPerformAttack
(LivingEntity pTarget) Pig.getDismountLocationForPassenger
(LivingEntity pLivingEntity) protected Vec2
HappyGhast.getRiddenRotation
(LivingEntity pEntity) static boolean
Fox.isPathClear
(Fox pFox, LivingEntity pLivingEntity) void
SnowGolem.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
Fox.setTarget
(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingvoid
Panda.PandaLookAtPlayerGoal.setTarget
(LivingEntity pLookAt) boolean
Fox.FoxAlertableEntitiesSelector.test
(LivingEntity p_28653_, ServerLevel p_376835_) (package private) boolean
Fox.trusts
(LivingEntity pEntity) Method parameters in net.minecraft.world.entity.animal with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate void
Fox.addTrustedEntity
(EntityReference<LivingEntity> p_393599_) Constructor parameters in net.minecraft.world.entity.animal with type arguments of type LivingEntityModifierConstructorDescriptionDefendTrustedTargetGoal
(Class<LivingEntity> pTargetType, boolean pMustSee, boolean pMustReach, TargetingConditions.Selector pSelector) FoxLookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) PandaLookAtPlayerGoal
(Panda pPanda, Class<? extends LivingEntity> pLookAtType, float pLookDistance) -
Uses of LivingEntity in net.minecraft.world.entity.animal.allay
Subclasses of LivingEntity in net.minecraft.world.entity.animal.allayMethods in net.minecraft.world.entity.animal.allay with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional
<PositionTracker> AllayAi.getItemDepositPosition
(LivingEntity p_218424_) static Optional
<ServerPlayer> AllayAi.getLikedPlayer
(LivingEntity pEntity) private static Optional
<PositionTracker> AllayAi.getLikedPlayerPositionTracker
(LivingEntity pEntity) private static boolean
AllayAi.hasWantedItem
(LivingEntity p_273346_) static void
AllayAi.hearNoteblock
(LivingEntity pEntity, BlockPos pPos) private static boolean
AllayAi.shouldDepositItemsAtLikedNoteblock
(LivingEntity pEntity, Brain<?> pBrain, GlobalPos pPos) -
Uses of LivingEntity in net.minecraft.world.entity.animal.armadillo
Subclasses of LivingEntity in net.minecraft.world.entity.animal.armadilloMethods in net.minecraft.world.entity.animal.armadillo with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.axolotl
Subclasses of LivingEntity in net.minecraft.world.entity.animal.axolotlMethods in net.minecraft.world.entity.animal.axolotl that return LivingEntityMethods in net.minecraft.world.entity.animal.axolotl that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic BehaviorControl
<LivingEntity> ValidatePlayDead.create()
private static Optional
<? extends LivingEntity> AxolotlAi.findNearestValidAttackTarget
(ServerLevel p_376235_, Axolotl p_149299_) Methods in net.minecraft.world.entity.animal.axolotl with parameters of type LivingEntityModifier 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
(ServerLevel pLevel, Axolotl pAxolotl, LivingEntity pTarget) Method parameters in net.minecraft.world.entity.animal.axolotl with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
Axolotl.checkAxolotlSpawnRules
(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of LivingEntity in net.minecraft.world.entity.animal.camel
Subclasses of LivingEntity in net.minecraft.world.entity.animal.camelMethods in net.minecraft.world.entity.animal.camel with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.frog
Subclasses of LivingEntity in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog that return LivingEntityMethods in net.minecraft.world.entity.animal.frog with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate void
ShootTongue.addUnreachableTargetToMemory
(Frog pFrog, LivingEntity pTarget) static boolean
Frog.canEat
(LivingEntity pEntity) private boolean
ShootTongue.canPathfindToTarget
(Frog pFrog, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.animal.goat
Subclasses of LivingEntity in net.minecraft.world.entity.animal.goat -
Uses of LivingEntity in net.minecraft.world.entity.animal.horse
Subclasses of LivingEntity in net.minecraft.world.entity.animal.horseModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.entity.animal.horse declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntity
TraderLlama.TraderLlamaDefendWanderingTraderGoal.ownerLastHurtBy
Fields in net.minecraft.world.entity.animal.horse with type parameters of type LivingEntityMethods in net.minecraft.world.entity.animal.horse that return LivingEntityMethods in net.minecraft.world.entity.animal.horse that return types with arguments of type LivingEntityMethods in net.minecraft.world.entity.animal.horse with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger
(LivingEntity pLivingEntity) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 pDirection, LivingEntity pPassenger) protected Vec2
AbstractHorse.getRiddenRotation
(LivingEntity pEntity) void
Llama.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
AbstractHorse.setOwner
(LivingEntity pOwner) private void
Llama.spit
(LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.animal.sheep
Subclasses of LivingEntity in net.minecraft.world.entity.animal.sheep -
Uses of LivingEntity in net.minecraft.world.entity.animal.sniffer
Subclasses of LivingEntity in net.minecraft.world.entity.animal.sniffer -
Uses of LivingEntity in net.minecraft.world.entity.animal.wolf
Classes in net.minecraft.world.entity.animal.wolf with type parameters of type LivingEntityModifier and TypeClassDescription(package private) class
Wolf.WolfAvoidEntityGoal<T extends LivingEntity>
Subclasses of LivingEntity in net.minecraft.world.entity.animal.wolfMethods in net.minecraft.world.entity.animal.wolf with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
Wolf.wantsToAttack
(LivingEntity pTarget, LivingEntity pOwner) -
Uses of LivingEntity in net.minecraft.world.entity.boss.enderdragon
Subclasses of LivingEntity in net.minecraft.world.entity.boss.enderdragonMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.boss.enderdragon.phases
Fields in net.minecraft.world.entity.boss.enderdragon.phases declared as LivingEntityMethods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
DragonStrafePlayerPhase.setTarget
(LivingEntity pAttackTarget) -
Uses of LivingEntity in net.minecraft.world.entity.boss.wither
Subclasses of LivingEntity in net.minecraft.world.entity.boss.witherMethods in net.minecraft.world.entity.boss.wither with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate void
WitherBoss.performRangedAttack
(int pHead, LivingEntity pTarget) void
WitherBoss.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack. -
Uses of LivingEntity in net.minecraft.world.entity.decoration
Subclasses of LivingEntity in net.minecraft.world.entity.decoration -
Uses of LivingEntity in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item with type parameters of type LivingEntityMethods in net.minecraft.world.entity.item that return LivingEntityConstructors in net.minecraft.world.entity.item with parameters of type LivingEntityModifierConstructorDescriptionPrimedTnt
(Level pLevel, double pX, double pY, double pZ, LivingEntity pOwner) -
Uses of LivingEntity in net.minecraft.world.entity.monster
Classes in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeClassDescription(package private) static class
Spider.SpiderTargetGoal<T extends LivingEntity>
Subclasses of LivingEntity in net.minecraft.world.entity.monsterModifier 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
Fields in net.minecraft.world.entity.monster declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntity
Guardian.clientSideCachedAttackTarget
private LivingEntity
EnderMan.EndermanFreezeWhenLookedAt.target
Fields in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Predicate
<LivingEntity> Ravager.ROAR_TARGET_ON_CLIENT
Methods in net.minecraft.world.entity.monster that return LivingEntityModifier and TypeMethodDescriptionGuardian.getActiveAttackTarget()
Strider.getControllingPassenger()
CrossbowAttackMob.getTarget()
Zoglin.getTarget()
Methods in net.minecraft.world.entity.monster that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate Optional
<? extends LivingEntity> Zoglin.findNearestValidAttackTarget
(ServerLevel pLevel) Methods in net.minecraft.world.entity.monster with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected void
Ravager.blockedByItem
(LivingEntity pEntity) protected void
Zoglin.blockedByItem
(LivingEntity pEntity) boolean
AbstractIllager.canAttack
(LivingEntity pTarget) (package private) boolean
Phantom.canAttack
(ServerLevel pLevel, LivingEntity pEntity, TargetingConditions pTargetingConditions) protected void
Slime.dealDamage
(LivingEntity pLivingEntity) Strider.getDismountLocationForPassenger
(LivingEntity pLivingEntity) private boolean
Zoglin.isTargetable
(ServerLevel pLevel, LivingEntity pEntity) boolean
Zombie.killedEntity
(ServerLevel pLevel, LivingEntity pEntity) boolean
Drowned.okTarget
(LivingEntity pTarget) default void
CrossbowAttackMob.performCrossbowAttack
(LivingEntity pUser, float pVelocity) void
AbstractSkeleton.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
Drowned.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
Illusioner.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
Pillager.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.void
RangedAttackMob.performRangedAttack
(LivingEntity pTarget, float pVelocity) Attack the specified entity using a ranged attack.void
Witch.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.private void
Zoglin.setAttackTarget
(LivingEntity pTarget) void
Creeper.setTarget
(LivingEntity pTarget) Sets the active target the Goal system uses for trackingvoid
EnderMan.setTarget
(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingvoid
ZombifiedPiglin.setTarget
(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingboolean
Guardian.GuardianAttackSelector.test
(LivingEntity pEntity, ServerLevel pLevel) -
Uses of LivingEntity in net.minecraft.world.entity.monster.breeze
Subclasses of LivingEntity in net.minecraft.world.entity.monster.breezeMethods in net.minecraft.world.entity.monster.breeze that return LivingEntityMethods in net.minecraft.world.entity.monster.breeze that return types with arguments of type LivingEntityMethods in net.minecraft.world.entity.monster.breeze with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static boolean
Shoot.isTargetWithinRange
(Breeze pBreeze, LivingEntity pTarget) private static boolean
LongJump.outOfAggroRange
(Breeze pBreeze, LivingEntity pTarget) static Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity pTarget, RandomSource pRandom) private static Vec3
Slide.randomPointInMiddleCircle
(Breeze pBreeze, LivingEntity pTarget) private static BlockPos
LongJump.snapToSurface
(LivingEntity pOwner, Vec3 pTargetPos) private static boolean
LongJump.tooCloseForJump
(Breeze pBreeze, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.monster.creaking
Subclasses of LivingEntity in net.minecraft.world.entity.monster.creakingMethods in net.minecraft.world.entity.monster.creaking that return LivingEntityMethods in net.minecraft.world.entity.monster.creaking with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static boolean
CreakingAi.isAttackTargetStillReachable
(Creaking pCreaking, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.monster.hoglin
Subclasses of LivingEntity in net.minecraft.world.entity.monster.hoglinMethods in net.minecraft.world.entity.monster.hoglin that return LivingEntityMethods in net.minecraft.world.entity.monster.hoglin that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional
<? extends LivingEntity> HoglinAi.findNearestValidAttackTarget
(ServerLevel p_376560_, Hoglin p_34611_) Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected void
Hoglin.blockedByItem
(LivingEntity pEntity) private static void
HoglinAi.broadcastAttackTarget
(Hoglin pHoglin, LivingEntity pTarget) private static void
HoglinAi.broadcastRetreat
(Hoglin pHoglin, LivingEntity pTarget) static boolean
HoglinBase.hurtAndThrowTarget
(ServerLevel pLevel, LivingEntity pEntity, LivingEntity pTarget) private static void
HoglinAi.maybeRetaliate
(ServerLevel pLevel, Hoglin pHoglin, LivingEntity pEntity) protected static void
HoglinAi.onHitTarget
(Hoglin pHoglin, LivingEntity pTarget) private static void
HoglinAi.retreatFromNearestTarget
(Hoglin pHoglin, LivingEntity pTarget) private static void
HoglinAi.setAttackTarget
(Hoglin pHoglin, LivingEntity pTarget) private static void
HoglinAi.setAttackTargetIfCloserThanCurrent
(Hoglin pHoglin, LivingEntity pTarget) private static void
HoglinAi.setAvoidTarget
(Hoglin pHoglin, LivingEntity pTarget) static void
HoglinBase.throwTarget
(LivingEntity pHoglin, LivingEntity pTarget) protected static void
HoglinAi.wasHurtBy
(ServerLevel pLevel, Hoglin pHoglin, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.world.entity.monster.piglin
Subclasses of LivingEntity in net.minecraft.world.entity.monster.piglinMethods in net.minecraft.world.entity.monster.piglin that return LivingEntityMethods in net.minecraft.world.entity.monster.piglin that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static BehaviorControl
<LivingEntity> PiglinAi.babySometimesRideBabyHoglin()
static BehaviorControl
<LivingEntity> RememberIfHoglinWasKilled.create()
static BehaviorControl
<LivingEntity> StartAdmiringItemIfSeen.create
(int pAdmireDuration) static BehaviorControl
<LivingEntity> StopAdmiringIfItemTooFarAway.create
(int pMaxDist) static BehaviorControl
<LivingEntity> StopAdmiringIfTiredOfTryingToReachItem.create
(int pMaxTimeToReachItem, int pDisableDuration) 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
(ServerLevel p_376590_, Piglin p_35001_) private static Optional
<? extends LivingEntity> PiglinBruteAi.findNearestValidAttackTarget
(ServerLevel p_376426_, AbstractPiglin p_35087_) private static Optional
<LivingEntity> PiglinAi.getAngerTarget
(AbstractPiglin pPiglin) static Optional
<LivingEntity> PiglinAi.getAvoidTarget
(Piglin pPiglin) Methods in net.minecraft.world.entity.monster.piglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static void
PiglinAi.admireGoldItem
(LivingEntity pPiglin) protected static void
PiglinAi.broadcastAngerTarget
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pAngerTarget) private static void
PiglinAi.broadcastRetreat
(Piglin pPiglin, LivingEntity pTarget) private static boolean
PiglinAi.doesntSeeAnyPlayerHoldingLovedItem
(LivingEntity p_34983_) private static boolean
PiglinAi.hasCrossbow
(LivingEntity p_34919_) private static boolean
PiglinAi.isNearestValidAttackTarget
(ServerLevel pLevel, Piglin pPiglin, LivingEntity pTarget) private static boolean
PiglinBruteAi.isNearestValidAttackTarget
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pEntity) static boolean
PiglinAi.isPlayerHoldingLovedItem
(LivingEntity p_34884_) static boolean
PiglinAi.isWearingSafeArmor
(LivingEntity pEntity) protected static void
PiglinAi.maybeRetaliate
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pEntity) void
Piglin.performRangedAttack
(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.private static void
PiglinAi.retreatFromNearestTarget
(Piglin pPiglin, LivingEntity pTarget) private static boolean
PiglinAi.seesPlayerHoldingLovedItem
(LivingEntity pPiglin) protected static void
PiglinAi.setAngerTarget
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pAngerTarget) protected static void
PiglinBruteAi.setAngerTarget
(PiglinBrute pPiglinBrute, LivingEntity pAngerTarget) private static void
PiglinAi.setAngerTargetIfCloserThanCurrent
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pAngerTarget) private static void
PiglinAi.setAngerTargetToNearestTargetablePlayerIfFound
(ServerLevel pLevel, AbstractPiglin pPiglin, LivingEntity pEntity) private static void
PiglinAi.setAvoidTargetAndDontHuntForAWhile
(Piglin pPiglin, LivingEntity pTarget) private static boolean
PiglinAi.wantsToDance
(LivingEntity p_34811_, LivingEntity p_34812_) protected static void
PiglinAi.wasHurtBy
(ServerLevel pLevel, Piglin pPiglin, LivingEntity pEntity) protected static void
PiglinBruteAi.wasHurtBy
(ServerLevel pLevel, PiglinBrute pPiglinBrute, LivingEntity pEntity) private static boolean
PiglinAi.wasHurtRecently
(LivingEntity pPiglin) -
Uses of LivingEntity in net.minecraft.world.entity.monster.warden
Subclasses of LivingEntity in net.minecraft.world.entity.monster.wardenMethods in net.minecraft.world.entity.monster.warden that return LivingEntityMethods in net.minecraft.world.entity.monster.warden that return types with arguments of type LivingEntityMethods in net.minecraft.world.entity.monster.warden with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static boolean
WardenAi.isTarget
(Warden pWarden, LivingEntity pEntity) private static void
WardenAi.onTargetInvalid
(ServerLevel p_376213_, Warden p_219529_, LivingEntity p_219530_) void
Warden.setAttackTarget
(LivingEntity pAttackTarget) static void
WardenAi.setDigCooldown
(LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.world.entity.npc
Subclasses of LivingEntity in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
Villager.setLastHurtByMob
(LivingEntity pLivingBase) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate. -
Uses of LivingEntity in net.minecraft.world.entity.player
Subclasses of LivingEntity in net.minecraft.world.entity.playerMethods in net.minecraft.world.entity.player with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected void
Player.blockUsingItem
(ServerLevel pLevel, LivingEntity pEntity) protected void
Player.doAutoAttackOnTouch
(LivingEntity pTarget) boolean
Player.killedEntity
(ServerLevel pLevel, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as LivingEntityFields in net.minecraft.world.entity.projectile with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate EntityReference
<LivingEntity> EvokerFangs.owner
static final Predicate
<LivingEntity> AbstractThrownPotion.WATER_SENSITIVE_OR_ON_FIRE
Methods in net.minecraft.world.entity.projectile that return LivingEntityMethods in net.minecraft.world.entity.projectile with parameters of type LivingEntityModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
AbstractThrownPotion.calculateHorizontalHurtKnockbackDirection
(LivingEntity p_400055_, DamageSource p_399475_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
FireworkRocketEntity.calculateHorizontalHurtKnockbackDirection
(LivingEntity p_345239_, DamageSource p_345155_) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
Projectile.calculateHorizontalHurtKnockbackDirection
(LivingEntity p_344992_, DamageSource p_345905_) Projectile.ProjectileFactory.create
(ServerLevel pLevel, LivingEntity pOwner, ItemStack pSpawnedFrom) private void
EvokerFangs.dealDamageTo
(LivingEntity pTarget) protected void
AbstractArrow.doKnockback
(LivingEntity pEntity, DamageSource pDamageSource) protected void
AbstractArrow.doPostHurtEffects
(LivingEntity pTarget) protected void
Arrow.doPostHurtEffects
(LivingEntity pLiving) protected void
SpectralArrow.doPostHurtEffects
(LivingEntity pLiving) static AbstractArrow
ProjectileUtil.getMobArrow
(LivingEntity pShooter, ItemStack pArrow, float pVelocity, ItemStack pWeapon) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity pShooter, Item pWeapon) Deprecated.void
EvokerFangs.setOwner
(LivingEntity pOwner) static <T extends Projectile>
TProjectile.spawnProjectileFromRotation
(Projectile.ProjectileFactory<T> pFactory, ServerLevel pLevel, ItemStack pSpawnedFrom, LivingEntity pOwner, float pZ, float pVelocity, float pInaccuracy) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot
(Projectile.ProjectileFactory<T> pFactory, ServerLevel pLevel, ItemStack pSpawnedFrom, LivingEntity pOwner, double pX, double pY, double pZ, float pVelocity, float pInaccuracy) Constructors in net.minecraft.world.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionprotected
AbstractArrow
(EntityType<? extends AbstractArrow> pEntityType, LivingEntity pOwner, Level pLevel, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) AbstractHurtingProjectile
(EntityType<? extends AbstractHurtingProjectile> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) AbstractThrownPotion
(EntityType<? extends AbstractThrownPotion> pEntityType, Level pLevel, LivingEntity pOwner, ItemStack pItem) Arrow
(Level pLevel, LivingEntity pOwner, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) DragonFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) EvokerFangs
(Level pLevel, double pX, double pY, double pZ, float pYRot, int pWarmupDelay, LivingEntity pOwner) Fireball
(EntityType<? extends Fireball> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) FireworkRocketEntity
(Level pLevel, ItemStack pStack, LivingEntity pShooter) LargeFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement, int pExplosionPower) ShulkerBullet
(Level pLevel, LivingEntity pShooter, Entity pFinalTarget, Direction.Axis pAxis) SmallFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) Snowball
(Level pLevel, LivingEntity pOwner, ItemStack pItem) SpectralArrow
(Level pLevel, LivingEntity pOwner, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) ThrowableItemProjectile
(EntityType<? extends ThrowableItemProjectile> pEntityType, LivingEntity pOwner, Level pLevel, ItemStack pItem) ThrownEgg
(Level pLevel, LivingEntity pOwner, ItemStack pItem) ThrownEnderpearl
(Level pLevel, LivingEntity pOwner, ItemStack pItem) ThrownExperienceBottle
(Level pLevel, LivingEntity pOwner, ItemStack pItem) ThrownLingeringPotion
(Level pLevel, LivingEntity pOwner, ItemStack pItem) ThrownSplashPotion
(Level pLevel, LivingEntity pOwner, ItemStack pItem) ThrownTrident
(Level pLevel, LivingEntity pShooter, ItemStack pPickupItemStack) WitherSkull
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) -
Uses of LivingEntity in net.minecraft.world.entity.raid
Subclasses of LivingEntity in net.minecraft.world.entity.raid -
Uses of LivingEntity in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return LivingEntityMethods in net.minecraft.world.entity.vehicle with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
DismountHelper.canDismountTo
(CollisionGetter pLevel, LivingEntity pPassenger, AABB pBoundingBox) static boolean
DismountHelper.canDismountTo
(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) AbstractBoat.getDismountLocationForPassenger
(LivingEntity pPassenger) AbstractMinecart.getDismountLocationForPassenger
(LivingEntity pLivingEntity) -
Uses of LivingEntity in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
FoodProperties.onConsume
(Level pLevel, LivingEntity pEntity, ItemStack pStack, Consumable pConsumable) -
Uses of LivingEntity in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as LivingEntityConstructors in net.minecraft.world.inventory with parameters of type LivingEntityModifierConstructorDescriptionArmorSlot
(Container pContainer, LivingEntity pOwner, EquipmentSlot pSlot, int pSlotIndex, int pX, int pY, ResourceLocation pEmptyIcon) -
Uses of LivingEntity in net.minecraft.world.item
Methods in net.minecraft.world.item that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Predicate
<LivingEntity> MaceItem.knockbackPredicate
(Entity pAttacker, Entity pTarget) Methods in net.minecraft.world.item with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate ItemStack
ItemStack.applyAfterUseComponentSideEffects
(LivingEntity pEntity, ItemStack pStack) private void
ItemStack.applyDamage
(int p_361754_, LivingEntity p_364853_, Consumer<Item> p_360895_) boolean
DebugStickItem.canDestroyBlock
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, LivingEntity pEntity) boolean
Item.canDestroyBlock
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, LivingEntity pEntity) static boolean
MaceItem.canSmashAttack
(LivingEntity pEntity) void
BucketItem.checkExtraContent
(LivingEntity pEntity, Level pLevel, ItemStack pStack, BlockPos pPos) default void
DispensibleContainerItem.checkExtraContent
(LivingEntity pEntity, Level pLevel, ItemStack pStack, BlockPos pPos) void
MobBucketItem.checkExtraContent
(LivingEntity pEntity, Level pLevel, ItemStack pStack, BlockPos pPos) void
ItemStack.consume
(int pAmount, LivingEntity pEntity) ItemStack.consumeAndReturn
(int pAmount, LivingEntity pEntity) ArrowItem.createArrow
(Level pLevel, ItemStack pAmmo, LivingEntity pShooter, ItemStack pWeapon) SpectralArrowItem.createArrow
(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_, ItemStack p_345773_) protected AbstractThrownPotion
LingeringPotionItem.createPotion
(ServerLevel p_400122_, LivingEntity p_400210_, ItemStack p_399574_) protected AbstractThrownPotion
SplashPotionItem.createPotion
(ServerLevel p_399816_, LivingEntity p_400003_, ItemStack p_399587_) protected abstract AbstractThrownPotion
ThrowablePotionItem.createPotion
(ServerLevel p_400124_, LivingEntity p_399487_, ItemStack p_400222_) protected Projectile
CrossbowItem.createProjectile
(Level pLevel, LivingEntity pShooter, ItemStack pWeapon, ItemStack pAmmo, boolean pIsCrit) protected Projectile
ProjectileWeaponItem.createProjectile
(Level pLevel, LivingEntity pShooter, ItemStack pWeapon, ItemStack pAmmo, boolean pIsCrit) ProjectileWeaponItem.draw
(ItemStack pWeapon, ItemStack pAmmo, LivingEntity pShooter) boolean
BucketItem.emptyContents
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockHitResult pHitResult) Deprecated.boolean
BucketItem.emptyContents
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockHitResult pHitResult, ItemStack container) boolean
DispensibleContainerItem.emptyContents
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockHitResult pHitResult) Deprecated.boolean
SolidBucketItem.emptyContents
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockHitResult pHitResult) Item.finishUsingItem
(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity) Called when the player finishes using this Item (E.g. finishes eating.).ItemStack.finishUsingItem
(Level pLevel, LivingEntity pLivingEntity) Called when the item in use count reach 0, e.g. item food eaten.SpyglassItem.finishUsingItem
(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity) Called when the player finishes using this Item (E.g. finishes eating.).static int
CrossbowItem.getChargeDuration
(ItemStack pStack, LivingEntity pShooter) Item.getDamageSource
(LivingEntity pEntity) MaceItem.getDamageSource
(LivingEntity pEntity) static ItemStack
ProjectileWeaponItem.getHeldProjectile
(LivingEntity pShooter, Predicate<ItemStack> pIsAmmo) private static double
MaceItem.getKnockbackPower
(Entity pAttacker, LivingEntity pEntity, Vec3 pOffset) private static float
CrossbowItem.getPowerForTime
(int pTimeLeft, ItemStack pStack, LivingEntity pShooter) private static org.joml.Vector3f
CrossbowItem.getProjectileShotVector
(LivingEntity p_331584_, Vec3 p_331590_, float p_331104_) int
BowItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
BrushItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
BundleItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
CrossbowItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
EnderEyeItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
InstrumentItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
Item.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
ItemStack.getUseDuration
(LivingEntity pEntity) int
SpyglassItem.getUseDuration
(ItemStack pStack, LivingEntity pEntity) int
TridentItem.getUseDuration
(ItemStack p_43419_, LivingEntity p_345001_) void
ItemStack.hurtAndBreak
(int p_220158_, ServerLevel p_346256_, LivingEntity p_220160_, Consumer<Item> p_348596_) void
ItemStack.hurtAndBreak
(int pAmount, LivingEntity pEntity, EquipmentSlot pSlot) void
ItemStack.hurtAndBreak
(int pAmount, LivingEntity pEntity, InteractionHand pHand) ItemStack.hurtAndConvertOnBreak
(int pAmount, ItemLike pItem, LivingEntity pEntity, EquipmentSlot pSlot) void
Item.hurtEnemy
(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) boolean
ItemStack.hurtEnemy
(LivingEntity pEnemy, LivingEntity pAttacker) void
MaceItem.hurtEnemy
(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) DyeItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity
(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)
to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)
boolean
ArrowItem.isInfinite
(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.boolean
Item.mineBlock
(ItemStack pStack, Level pLevel, BlockState pState, BlockPos pPos, LivingEntity pMiningEntity) Called when aBlock
is destroyed using this Item.boolean
ShearsItem.mineBlock
(ItemStack pStack, Level pLevel, BlockState pState, BlockPos pPos, LivingEntity pEntityLiving) Called when aBlock
is destroyed using this Item.void
BrushItem.onUseTick
(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pRemainingUseDuration) Called as the item is being used by an entity.void
BundleItem.onUseTick
(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pRemainingUseDuration) Called as the item is being used by an entity.void
CrossbowItem.onUseTick
(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pCount) Called as the item is being used by an entity.void
Item.onUseTick
(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pRemainingUseDuration) Called as the item is being used by an entity.void
ItemStack.onUseTick
(Level pLevel, LivingEntity pLivingEntity, int pRemainingUseDuration) Called as the stack is being used by an entity.void
CrossbowItem.performShooting
(Level pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, float pVelocity, float pInaccuracy, LivingEntity pTarget) protected void
BucketItem.playEmptySound
(LivingEntity pEntity, LevelAccessor pLevel, BlockPos pPos) protected void
MobBucketItem.playEmptySound
(LivingEntity pEntity, LevelAccessor pLevel, BlockPos pPos) void
Item.postHurtEnemy
(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) void
ItemStack.postHurtEnemy
(LivingEntity pEnemy, LivingEntity pAttacker) void
MaceItem.postHurtEnemy
(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) private int
ItemStack.processDurabilityChange
(int p_361290_, ServerLevel p_361409_, LivingEntity p_364940_) boolean
BowItem.releaseUsing
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pTimeLeft) boolean
CrossbowItem.releaseUsing
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pTimeLeft) boolean
Item.releaseUsing
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pTimeLeft) void
ItemStack.releaseUsing
(Level pLevel, LivingEntity pLivingEntity, int pTimeLeft) Called when the player releases the use item button.boolean
SpyglassItem.releaseUsing
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pTimeLeft) boolean
TridentItem.releaseUsing
(ItemStack p_43394_, Level p_43395_, LivingEntity p_43396_, int p_43397_) protected void
ProjectileWeaponItem.shoot
(ServerLevel pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, List<ItemStack> pProjectileItems, float pVelocity, float pInaccuracy, boolean pIsCrit, LivingEntity pTarget) protected void
BowItem.shootProjectile
(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) protected void
CrossbowItem.shootProjectile
(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) protected abstract void
ProjectileWeaponItem.shootProjectile
(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) private void
SpyglassItem.stopUsing
(LivingEntity pUser) private static boolean
CrossbowItem.tryLoadProjectiles
(LivingEntity pShooter, ItemStack pCrossbowStack) protected static ItemStack
ProjectileWeaponItem.useAmmo
(ItemStack pWeapon, ItemStack pAmmo, LivingEntity pShooter, boolean pIntangible) -
Uses of LivingEntity in net.minecraft.world.item.alchemy
Methods in net.minecraft.world.item.alchemy with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
PotionContents.applyToLivingEntity
(LivingEntity pEntity, float pDurationScale) void
PotionContents.onConsume
(Level pLevel, LivingEntity pEntity, ItemStack pStack, Consumable pConsumable) -
Uses of LivingEntity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
UseCooldown.apply
(ItemStack pStack, LivingEntity pEntity) void
DeathProtection.applyEffects
(ItemStack pStack, LivingEntity pEntity) boolean
Consumable.canConsume
(LivingEntity pEntity, ItemStack pStack) void
BlocksAttacks.disable
(ServerLevel pLevel, LivingEntity pEntity, float pDuration, ItemStack pStack) void
Consumable.emitParticlesAndSounds
(RandomSource pRandom, LivingEntity pEntity, ItemStack pStack, int pAmount) void
BlocksAttacks.hurtBlockingItem
(Level pLevel, ItemStack pStack, LivingEntity pEntity, InteractionHand pHand, float pDamage) void
BlocksAttacks.hurtBlockingItem
(Level pLevel, ItemStack pStack, LivingEntity pEntity, InteractionHand pHand, float pDamage, int fixedDamage) void
BlocksAttacks.onBlocked
(ServerLevel pLevel, LivingEntity pEntity) Consumable.onConsume
(Level pLevel, LivingEntity pEntity, ItemStack pStack) void
ConsumableListener.onConsume
(Level pLevel, LivingEntity pEntity, ItemStack pStack, Consumable pConsumable) void
OminousBottleAmplifier.onConsume
(Level p_366547_, LivingEntity p_366849_, ItemStack p_366530_, Consumable p_366459_) void
SuspiciousStewEffects.onConsume
(Level pLevel, LivingEntity pEntity, ItemStack pStack, Consumable pConsumable) Consumable.startConsuming
(LivingEntity pEntity, ItemStack pStack, InteractionHand pHand) -
Uses of LivingEntity in net.minecraft.world.item.consume_effects
Methods in net.minecraft.world.item.consume_effects with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
ApplyStatusEffectsConsumeEffect.apply
(Level pLevel, ItemStack pStack, LivingEntity pEntity) boolean
ClearAllStatusEffectsConsumeEffect.apply
(Level p_366806_, ItemStack p_366692_, LivingEntity p_366699_) boolean
ConsumeEffect.apply
(Level pLevel, ItemStack pStack, LivingEntity pEntity) boolean
PlaySoundConsumeEffect.apply
(Level pLevel, ItemStack pStack, LivingEntity pEntity) boolean
RemoveStatusEffectsConsumeEffect.apply
(Level pLevel, ItemStack pStack, LivingEntity pEntity) boolean
TeleportRandomlyConsumeEffect.apply
(Level pLevel, ItemStack pStack, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntity
EnchantedItemInUse.owner
The field for theowner
record component.Methods in net.minecraft.world.item.enchantment that return LivingEntityModifier and TypeMethodDescriptionEnchantedItemInUse.owner()
Returns the value of theowner
record component.Methods in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic float
EnchantmentHelper.getDamageProtection
(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource) static int
EnchantmentHelper.getEnchantmentLevel
(Holder<Enchantment> pEnchantment, LivingEntity pEntity) static Optional
<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith
(DataComponentType<?> pComponentType, LivingEntity pEntity, Predicate<ItemStack> pFilter) Enchantment.getSlotItems
(LivingEntity pEntity) Creates a new map containing all items equipped by an entity ininvalid reference
slots that the enchantment cares about
static float
EnchantmentHelper.getTridentSpinAttackStrength
(ItemStack pStack, LivingEntity pEntity) static boolean
EnchantmentHelper.isImmuneToDamage
(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource) static float
EnchantmentHelper.modifyCrossbowChargingTime
(ItemStack pStack, LivingEntity pEntity, float pCrossbowChargingTime) static void
EnchantmentHelper.onHitBlock
(ServerLevel pLevel, ItemStack pStack, LivingEntity pOwner, Entity pEntity, EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) static float
EnchantmentHelper.processEquipmentDropChance
(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource, float pEquipmentDropChance) static void
EnchantmentHelper.runIterationOnEquipment
(LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) static void
EnchantmentHelper.runIterationOnItem
(ItemStack pStack, EquipmentSlot pSlot, LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) void
Enchantment.runLocationChangedEffects
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, LivingEntity pEntity) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel pLevel, LivingEntity pEntity) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel pLevel, ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) void
Enchantment.stopLocationBasedEffects
(int pEnchantmentLevel, EnchantedItemInUse pItem, LivingEntity pEntity) static void
EnchantmentHelper.stopLocationBasedEffects
(LivingEntity pEntity) static void
EnchantmentHelper.stopLocationBasedEffects
(ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) static void
EnchantmentHelper.tickEffects
(ServerLevel pLevel, LivingEntity pEntity) Constructors in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantedItemInUse
(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) EnchantedItemInUse
(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUse
record class. -
Uses of LivingEntity in net.minecraft.world.item.equipment
Methods in net.minecraft.world.item.equipment with parameters of type LivingEntityModifier and TypeMethodDescriptionEquippable.equipOnTarget
(Player pPlayer, LivingEntity pEntity, ItemStack pStack) -
Uses of LivingEntity in net.minecraft.world.level
Methods in net.minecraft.world.level that return LivingEntityModifier and TypeMethodDescriptionExplosion.getIndirectSourceEntity()
static LivingEntity
Explosion.getIndirectSourceEntity
(Entity pSource) ServerExplosion.getIndirectSourceEntity()
-
Uses of LivingEntity in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
BarrierBlock.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
KelpBlock.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
KelpPlantBlock.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
LiquidBlockContainer.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
SeagrassBlock.canPlaceLiquid
(LivingEntity p_394548_, BlockGetter p_296449_, BlockPos p_154511_, BlockState p_154512_, Fluid p_295712_) default boolean
SimpleWaterloggedBlock.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
SlabBlock.canPlaceLiquid
(LivingEntity pOwner, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
TallSeagrassBlock.canPlaceLiquid
(LivingEntity p_394229_, BlockGetter p_154753_, BlockPos p_154754_, BlockState p_154755_, Fluid p_154756_) boolean
TrapDoorBlock.isLadder
(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity) boolean
TntBlock.onCaughtFire
(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) BarrierBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BubbleColumnBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) BucketPickup.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) LiquidBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) PowderSnowBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(LivingEntity pOwner, LevelAccessor pLevel, BlockPos pPos, BlockState pState) private static void
LecternBlock.placeBook
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockState pState, ItemStack pStack) private static boolean
TntBlock.prime
(Level pLevel, BlockPos pPos, LivingEntity pEntity) Deprecated.Neo: use invalid input: '{@link net.neoforged.neoforge.common.extensions.IBlockStateExtension#' onCaughtFire(Level,BlockPos,net.minecraft.core.Direction, LivingEntity)} insteadvoid
BedBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
Block.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
CommandBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
CrafterBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
DiodeBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
DoorBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
DoublePlantBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
DriedGhastBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
JukeboxBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
MossyCarpetBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
PitcherCropBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
SmallDripleafBlock.setPlacedBy
(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) void
StructureBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
TripWireHookBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
WitherSkullBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.void
WitherWallSkullBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by ItemBlocks after a block is set in the world, to allow post-place logicstatic boolean
LecternBlock.tryPlaceBook
(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockState pState, ItemStack pStack) -
Uses of LivingEntity in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate EntityReference
<LivingEntity> ConduitBlockEntity.destroyTarget
private List
<LivingEntity> BellBlockEntity.nearbyEntities
Methods in net.minecraft.world.level.block.entity that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static EntityReference
<LivingEntity> ConduitBlockEntity.selectNewTarget
(ServerLevel pLevel, BlockPos pPos) private static EntityReference
<LivingEntity> ConduitBlockEntity.updateDestroyTarget
(EntityReference<LivingEntity> pDestroyTarget, ServerLevel pLevel, BlockPos pPos, boolean pCanDestroy) Methods in net.minecraft.world.level.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
BrushableBlockEntity.brush
(long pStartTick, ServerLevel pLevel, LivingEntity pBrusher, Direction pHitDirection, ItemStack pStack) private void
BrushableBlockEntity.brushingCompleted
(ServerLevel pLevel, LivingEntity pBrusher, ItemStack pStack) void
StructureBlockEntity.createdBy
(LivingEntity pAuthor) private void
BrushableBlockEntity.dropContent
(ServerLevel pLevel, LivingEntity pBrusher, ItemStack pStack) private static void
BellBlockEntity.glow
(LivingEntity p_58841_) private static boolean
BellBlockEntity.isRaiderWithinRange
(BlockPos pPos, LivingEntity pRaider) boolean
CampfireBlockEntity.placeFood
(ServerLevel pLevel, LivingEntity pEntity, ItemStack pStack) private void
SculkCatalystBlockEntity.CatalystListener.tryAwardItSpreadsAdvancement
(Level pLevel, LivingEntity pEntity) private void
BrushableBlockEntity.unpackLootTable
(ServerLevel pLevel, LivingEntity pBrusher, ItemStack pStack) Method parameters in net.minecraft.world.level.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static boolean
BellBlockEntity.areRaidersNearby
(BlockPos pPos, List<LivingEntity> pRaiders) private static void
BellBlockEntity.makeRaidersGlow
(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_) void
BellBlockEntity.ResonationEndAction.run
(Level pLevel, BlockPos pPos, List<LivingEntity> pRaiders) private static void
BellBlockEntity.showBellParticles
(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_) private static EntityReference
<LivingEntity> ConduitBlockEntity.updateDestroyTarget
(EntityReference<LivingEntity> pDestroyTarget, ServerLevel pLevel, BlockPos pPos, boolean pCanDestroy) -
Uses of LivingEntity in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
PistonBaseBlock.setPlacedBy
(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed. -
Uses of LivingEntity in net.minecraft.world.waypoints
Fields in net.minecraft.world.waypoints declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntity
WaypointTransmitter.EntityAzimuthConnection.source
private final LivingEntity
WaypointTransmitter.EntityBlockConnection.source
private final LivingEntity
WaypointTransmitter.EntityChunkConnection.source
Methods in net.minecraft.world.waypoints with parameters of type LivingEntityModifier and TypeMethodDescriptionWaypoint.Icon.cloneAndAssignStyle
(LivingEntity pEntity) static boolean
WaypointTransmitter.doesSourceIgnoreReceiver
(LivingEntity pEntity, ServerPlayer pPlayer) static boolean
WaypointTransmitter.isReallyFar
(LivingEntity pEntity, ServerPlayer pPlayer) Constructors in net.minecraft.world.waypoints with parameters of type LivingEntityModifierConstructorDescriptionEntityAzimuthConnection
(LivingEntity pSource, Waypoint.Icon pIcon, ServerPlayer pReciever) EntityBlockConnection
(LivingEntity pSource, Waypoint.Icon pIcon, ServerPlayer pReciever) EntityChunkConnection
(LivingEntity pSource, Waypoint.Icon pIcon, ServerPlayer pReceiver) -
Uses of LivingEntity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
ClientHooks.isNameplateInRenderDistance
(LivingEntity entity, double squareDistance) -
Uses of LivingEntity in net.neoforged.neoforge.client.color.item
Methods in net.neoforged.neoforge.client.color.item with parameters of type LivingEntityModifier and TypeMethodDescriptionint
FluidContentsTint.calculate
(ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity) -
Uses of LivingEntity in net.neoforged.neoforge.client.event
Classes in net.neoforged.neoforge.client.event with type parameters of type LivingEntityModifier and TypeClassDescriptionclass
RenderLivingEvent<T extends LivingEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Fired when aLivingEntity
is rendered.static class
RenderLivingEvent.Post<T extends LivingEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Fired after an entity is rendered, if the correspondingRenderLivingEvent.Post
is not cancelled.static class
RenderLivingEvent.Pre<T extends LivingEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Fired before an entity is rendered. -
Uses of LivingEntity in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault HumanoidModel.ArmPose
IClientItemExtensions.getArmPose
(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using theinvalid reference
net.minecraft.client.model.HumanoidModel.ArmPose#create(String, boolean, IArmPoseTransformer)
default void
IClientItemExtensions.setupModelAnimations
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, Model model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) Called when an armor piece is about to be rendered, allowing parts of the model to be animated or changed. -
Uses of LivingEntity in net.neoforged.neoforge.client.model.item
Methods in net.neoforged.neoforge.client.model.item with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
DynamicFluidContainerModel.update
(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver modelResolver, ItemDisplayContext displayContext, @Nullable ClientLevel level, @Nullable LivingEntity entity, int p_387820_) -
Uses of LivingEntity in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends LivingEntity>, AttributeSupplier> CommonHooks.FORGE_ATTRIBUTES
Methods in net.neoforged.neoforge.common that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic Map
<EntityType<? extends LivingEntity>, AttributeSupplier> CommonHooks.getAttributesView()
Deprecated.Methods in net.neoforged.neoforge.common with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
CommonHooks.canEntityDestroy
(ServerLevel level, BlockPos pos, LivingEntity entity) static boolean
CommonHooks.canMobEffectBeApplied
(LivingEntity entity, MobEffectInstance effect, @Nullable Entity source) 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 ItemStack
CommonHooks.getProjectile
(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent
.CommonHooks.isLivingOnLadder
(BlockState state, Level level, BlockPos pos, LivingEntity entity) static void
CommonHooks.onArmorHurt
(DamageSource source, EquipmentSlot[] slots, float damage, LivingEntity armoredEntity) This is invoked indoHurtEquipment(DamageSource, float, EquipmentSlot...)
and replaces the existing item hurt and break logic with an event-sensitive version.static LivingShieldBlockEvent
CommonHooks.onDamageBlock
(LivingEntity blocker, DamageContainer container, float blockedDamage, boolean originalBlocked) Creates, posts, and returns aLivingShieldBlockEvent
.static boolean
CommonHooks.onEntityIncomingDamage
(LivingEntity entity, DamageContainer container) Called after invulnerability checks inEntity.hurt(DamageSource, float)
, this method creates and posts the first event in the LivingEntity damage sequence,LivingIncomingDamageEvent
.static void
CommonHooks.onLivingBreathe
(LivingEntity entity, int consumeAirAmount, int refillAirAmount) Handles living entities being underwater.static LivingChangeTargetEvent
CommonHooks.onLivingChangeTarget
(LivingEntity entity, @Nullable LivingEntity originalTarget, LivingChangeTargetEvent.ILivingTargetType targetType) static void
CommonHooks.onLivingDamagePost
(LivingEntity entity, DamageContainer container) Creates and posts aLivingDamageEvent.Post
.static float
CommonHooks.onLivingDamagePre
(LivingEntity entity, DamageContainer container) Creates and posts anLivingDamageEvent.Pre
.static boolean
CommonHooks.onLivingDeath
(LivingEntity entity, DamageSource src) static boolean
CommonHooks.onLivingDrops
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) static LivingFallEvent
CommonHooks.onLivingFall
(LivingEntity entity, double distance, float damageMultiplier) 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) -
Uses of LivingEntity in net.neoforged.neoforge.common.damagesource
Methods in net.neoforged.neoforge.common.damagesource with parameters of type LivingEntityModifier 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
Methods in net.neoforged.neoforge.common.extensions with type parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
intIItemExtension.damageItem
(ItemStack stack, int amount, T entity, Consumer<Item> onBroken) Reduce the durability of this item by the amount given.Methods in net.neoforged.neoforge.common.extensions that return LivingEntityMethods in net.neoforged.neoforge.common.extensions with parameters of type LivingEntityModifier 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.canEquip
(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IItemStackExtension.canEquip
(EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.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
IDispensibleContainerItemExtension.emptyContents
(@Nullable LivingEntity entity, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.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
IItemExtension.isGazeDisguise
(ItemStack stack, Player player, @Nullable LivingEntity entity) Whether thisItem
can be used to hide player's gaze from Endermen and Creakings.default boolean
IItemStackExtension.isGazeDisguise
(Player player, @Nullable LivingEntity entity) Whether thisItem
can be used to hide player's gaze from Endermen and Creakings.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 boolean
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 boolean
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, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default boolean
IItemStackExtension.onEntitySwing
(LivingEntity entity, InteractionHand hand) 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.playFallSound
(BlockState state, Level level, BlockPos pos, LivingEntity entity) Allows a block to override the standard fall sound played inplayBlockFallSound()
.default void
IBlockStateExtension.playFallSound
(Level level, BlockPos pos, LivingEntity entity) Allows a block to override the standard fall sound played inplayBlockFallSound()
.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
Subclasses of LivingEntity in net.neoforged.neoforge.common.utilModifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions. -
Uses of LivingEntity in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type LivingEntityModifier 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, @Nullable Player attackingPlayer, int originalExperience) static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect) static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, MobEffectInstance effectInstance) EventHooks.onEnderTeleport
(LivingEntity entity, double targetX, double targetY, double targetZ) static boolean
EventHooks.onEntityDestroyBlock
(LivingEntity entity, BlockPos pos, BlockState state) EventHooks.onItemConsumptionTeleport
(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) static ItemStack
EventHooks.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) static int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive version
as this version provides wrong hand informationstatic int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, InteractionHand hand, 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) Method parameters in net.neoforged.neoforge.event with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic boolean
EventHooks.canLivingConvert
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity
Fields in net.neoforged.neoforge.event.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntity
EntityTeleportEvent.EnderEntity.entityLiving
private final LivingEntity
EntityTeleportEvent.ItemConsumption.entityLiving
Fields in net.neoforged.neoforge.event.entity with type parameters of type LivingEntityModifier 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
Methods in net.neoforged.neoforge.event.entity that return LivingEntityModifier and TypeMethodDescriptionEntityTeleportEvent.EnderEntity.getEntityLiving()
EntityTeleportEvent.ItemConsumption.getEntityLiving()
Methods in net.neoforged.neoforge.event.entity that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionList
<EntityType<? extends LivingEntity>> EntityAttributeModificationEvent.getTypes()
Method parameters in net.neoforged.neoforge.event.entity with type arguments of type LivingEntityModifier 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) Constructors in net.neoforged.neoforge.event.entity with parameters of type LivingEntityModifierConstructorDescriptionEnderEntity
(LivingEntity entity, double targetX, double targetY, double targetZ) ItemConsumption
(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) Constructor parameters in net.neoforged.neoforge.event.entity with type arguments of type LivingEntityModifierConstructorDescriptionEntityAttributeCreationEvent
(Map<EntityType<? extends LivingEntity>, AttributeSupplier> map) EntityAttributeModificationEvent
(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntity
LivingEvent.livingEntity
private @Nullable LivingEntity
LivingChangeTargetEvent.newAboutToBeSetTarget
private final @Nullable LivingEntity
LivingChangeTargetEvent.originalAboutToBeSetTarget
private final LivingEntity
LivingConversionEvent.Post.outcome
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final EntityType
<? extends LivingEntity> LivingConversionEvent.Pre.outcome
Methods in net.neoforged.neoforge.event.entity.living that return LivingEntityModifier and TypeMethodDescriptionLivingEvent.getEntity()
@Nullable LivingEntity
LivingChangeTargetEvent.getNewAboutToBeSetTarget()
Returns the new target that this entity will begin to track..@Nullable LivingEntity
LivingChangeTargetEvent.getOriginalAboutToBeSetTarget()
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)Methods in net.neoforged.neoforge.event.entity.living that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionEntityType
<? extends LivingEntity> LivingConversionEvent.Pre.getOutcome()
Gets the entity type of the new entity this living entity is converting toMethods in net.neoforged.neoforge.event.entity.living with parameters of type LivingEntityModifier and TypeMethodDescriptionvoid
LivingChangeTargetEvent.setNewAboutToBeSetTarget
(@Nullable LivingEntity newAboutToBeSetTarget) Sets the new target this entity shall have.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type LivingEntityModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) Applicable
(LivingEntity living, MobEffectInstance effectInstance, @Nullable Entity source) ArmorHurtEvent
(EnumMap<EquipmentSlot, ArmorHurtEvent.ArmorEntry> armorMap, LivingEntity player) EffectParticleModificationEvent
(LivingEntity entity, MobEffectInstance effect) Expired
(LivingEntity living, MobEffectInstance effectInstance) Finish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) Hands
(LivingEntity entity) LivingBreatheEvent
(LivingEntity entity, boolean canBreathe, int consumeAirAmount, int refillAirAmount) LivingChangeTargetEvent
(LivingEntity entity, @Nullable LivingEntity aboutToBeSetTarget, LivingChangeTargetEvent.ILivingTargetType targetType) LivingConversionEvent
(LivingEntity entity) private
LivingDamageEvent
(LivingEntity entity) LivingDeathEvent
(LivingEntity entity, DamageSource source) LivingDestroyBlockEvent
(LivingEntity entity, BlockPos pos, BlockState state) LivingDropsEvent
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, 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) private
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, InteractionHand hand, 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, double distance, float damageMultiplier) LivingGetProjectileEvent
(LivingEntity livingEntity, ItemStack projectileWeaponItemStack, ItemStack ammo) LivingHealEvent
(LivingEntity entity, float amount) LivingIncomingDamageEvent
(LivingEntity entity, DamageContainer container) LivingKnockBackEvent
(LivingEntity target, float strength, double ratioX, double ratioZ) LivingShieldBlockEvent
(LivingEntity blocker, DamageContainer container, float blockedDamage, boolean originalBlockedState) LivingSwapItemsEvent
(LivingEntity entity) LivingUseTotemEvent
(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) LivingVisibilityEvent
(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier) protected
MobEffectEvent
(LivingEntity living, MobEffectInstance effectInstance) Post
(LivingEntity entity, LivingEntity outcome) Post
(LivingEntity entity, DamageContainer container) Pre
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) Pre
(LivingEntity entity, DamageContainer container) Remove
(LivingEntity living, Holder<MobEffect> effect) Remove
(LivingEntity living, MobEffectInstance effectInstance) Start
(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive version
as this version provides wrong hand informationStart
(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) Stop
(LivingEntity entity, ItemStack item, int duration) Tick
(LivingEntity entity, ItemStack item, int duration) Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type LivingEntityModifierConstructorDescriptionPre
(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity.player
Constructors in net.neoforged.neoforge.event.entity.player with parameters of type LivingEntityModifierConstructorDescriptionCanContinueSleepingEvent
(LivingEntity entity, @Nullable Player.BedSleepingProblem problem) -
Uses of LivingEntity in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type LivingEntityModifier and TypeMethodDescriptionboolean
FluidType.canDrownIn
(LivingEntity entity) Returns whether the entity can drown in the fluid.@Nullable SoundEvent
FluidType.getSound
(@Nullable LivingEntity entity, BlockGetter getter, BlockPos pos, SoundAction action) Returns a sound to play when a certain action is performed at a position.boolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.void
FluidType.onVaporize
(@Nullable LivingEntity entity, Level level, BlockPos pos, FluidStack stack) Performs an action when a fluid can be vaporized when placed into a level. -
Uses of LivingEntity in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as LivingEntityModifier and TypeFieldDescriptionprotected final LivingEntity
EntityEquipmentInvWrapper.entity
The entity.Constructors in net.neoforged.neoforge.items.wrapper with parameters of type LivingEntityModifierConstructorDescriptionEntityArmorInvWrapper
(LivingEntity entity) EntityEquipmentInvWrapper
(LivingEntity entity, EquipmentSlot.Type slotType) EntityHandsInvWrapper
(LivingEntity entity)
PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET
with target info instead