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.criterion
Methods in net.minecraft.advancements.criterion 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 TypeMethodDescriptionintConstant.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intCustomModelDataSource.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intDye.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intFirework.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intGrassColorSource.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intItemTintSource.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intMapColor.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intPotion.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) intTeamColor.calculate(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner) -
Uses of LivingEntity in net.minecraft.client.entity
Subclasses of LivingEntity in net.minecraft.client.entity -
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 intGui.getVehicleMaxHearts(@Nullable LivingEntity vehicle) Retrieves the maximum number of hearts representing the vehicle's health for the given mount entity.private voidGuiGraphics.renderItem(@Nullable LivingEntity owner, @Nullable Level level, ItemStack itemStack, int x, int y, int seed) Renders an item stack for a living entity in a specific level at the specified coordinates with a random seed.voidGuiGraphics.renderItem(LivingEntity owner, ItemStack itemStack, int x, int y, int seed) Renders an item stack for a living entity at the specified coordinates with a random seed. -
Uses of LivingEntity in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as LivingEntityMethods in net.minecraft.client.gui.screens.inventory with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static EntityRenderStateInventoryScreen.extractRenderState(LivingEntity entity) static voidInventoryScreen.renderEntityInInventoryFollowsAngle(GuiGraphics graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float xAngle, float yAngle, LivingEntity entity) static voidInventoryScreen.renderEntityInInventoryFollowsMouse(GuiGraphics graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, LivingEntity entity) Constructors in net.minecraft.client.gui.screens.inventory with parameters of type LivingEntityModifierConstructorDescriptionAbstractMountInventoryScreen(T menu, Inventory inventory, Component title, int inventoryColumns, LivingEntity mount) -
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 floatLightmapRenderStateExtractor.calculateDarknessScale(LivingEntity camera, float darknessGamma, float partialTickTime) static floatGameRenderer.getNightVisionScale(LivingEntity camera, float a) voidItemInHandRenderer.renderItem(LivingEntity mob, ItemStack itemStack, ItemDisplayContext type, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords) -
Uses of LivingEntity in net.minecraft.client.renderer.entity
Classes in net.minecraft.client.renderer.entity with type parameters of type LivingEntityModifier and TypeClassDescriptionclassLivingEntityRenderer<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 voidHumanoidMobRenderer.extractHumanoidRenderState(LivingEntity entity, HumanoidRenderState state, float partialTicks, ItemModelResolver itemModelResolver) private static HumanoidArmHumanoidMobRenderer.getAttackArm(LivingEntity entity) private static ItemStackHumanoidMobRenderer.getEquipmentIfRenderable(LivingEntity entity, EquipmentSlot slot) private Vec3GuardianRenderer.getPosition(LivingEntity entity, double yOffset, float partialTicks) private static floatLivingEntityRenderer.solveBodyRot(LivingEntity entity, float headRot, float partialTicks) -
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 voidArmedEntityRenderState.extractArmedEntityRenderState(LivingEntity entity, ArmedEntityRenderState state, ItemModelResolver itemModelResolver, float partialTicks) static voidHoldingEntityRenderState.extractHoldingEntityRenderState(LivingEntity entity, HoldingEntityRenderState state, ItemModelResolver itemModelResolver) -
Uses of LivingEntity in net.minecraft.client.renderer.fog.environment
Methods in net.minecraft.client.renderer.fog.environment with parameters of type LivingEntityModifier and TypeMethodDescriptionfloatBlindnessFogEnvironment.getModifiedDarkness(LivingEntity entity, float darkness, float partialTickTime) floatDarknessFogEnvironment.getModifiedDarkness(LivingEntity entity, float darkness, float partialTickTime) floatFogEnvironment.getModifiedDarkness(LivingEntity entity, float darkness, float partialTickTime) -
Uses of LivingEntity in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidItemModelResolver.updateForLiving(ItemStackRenderState output, ItemStack item, ItemDisplayContext displayContext, LivingEntity entity) -
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 TypeMethodDescriptionbooleanBroken.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanBundleHasSelectedItem.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanComponentMatches.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanCustomModelDataProperty.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanDamaged.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanExtendedView.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanFishingRodCast.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanHasComponent.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanIsCarried.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanIsKeybindDown.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanIsSelected.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanIsUsingItem.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanIsViewEntity.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) booleanItemModelPropertyTest.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) -
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 TypeMethodDescriptionstatic intUseDuration.useDuration(ItemStack itemStack, LivingEntity owner) -
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 itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable TComponentContents.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable ResourceKey<Level> ContextDimension.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable ResourceKey<EntityType<?>> ContextEntityType.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable StringCustomModelDataProperty.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) DisplayContext.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable StringItemBlockState.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable StringLocalTime.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable HumanoidArmMainHand.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable TSelectItemModelProperty.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) @Nullable ResourceKey<TrimMaterial> TrimMaterialProperty.get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) -
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 pos, EntityType<E> entityType, Item item) Methods in net.minecraft.gametest.framework that return LivingEntityModifier and TypeMethodDescriptionGameTestHelper.makeAboutToDrown(LivingEntity entity) GameTestHelper.withLowHealth(LivingEntity entity) Methods in net.minecraft.gametest.framework with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidGameTestHelper.assertLivingEntityHasMobEffect(LivingEntity entity, Holder<MobEffect> mobEffect, int amplifier) GameTestHelper.makeAboutToDrown(LivingEntity entity) GameTestHelper.withLowHealth(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.network.protocol.game
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 LivingEntityAttributeCommand.getEntityWithAttribute(Entity target, Holder<Attribute> attribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity target) -
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> type, TargetingConditions targetConditions, LivingEntity source, AABB bb) default <T extends LivingEntity>
@Nullable TServerEntityGetter.getNearestEntity(Class<? extends T> type, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) default <T extends LivingEntity>
@Nullable TServerEntityGetter.getNearestEntity(List<? extends T> entities, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z) Methods in net.minecraft.server.level that return LivingEntityModifier and TypeMethodDescriptiondefault @Nullable LivingEntityServerEntityGetter.getNearestEntity(TagKey<EntityType<?>> tag, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) Methods in net.minecraft.server.level with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> ServerEntityGetter.getNearbyEntities(Class<T> type, TargetingConditions targetConditions, LivingEntity source, AABB bb) ServerEntityGetter.getNearbyPlayers(TargetingConditions targetConditions, LivingEntity source, AABB bb) default <T extends LivingEntity>
@Nullable TServerEntityGetter.getNearestEntity(Class<? extends T> type, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) default <T extends LivingEntity>
@Nullable TServerEntityGetter.getNearestEntity(List<? extends T> entities, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z) default @Nullable LivingEntityServerEntityGetter.getNearestEntity(TagKey<EntityType<?>> tag, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) default @Nullable PlayerServerEntityGetter.getNearestPlayer(TargetingConditions targetConditions, LivingEntity source) default @Nullable PlayerServerEntityGetter.getNearestPlayer(TargetingConditions targetConditions, LivingEntity source, double x, double y, double z) -
Uses of LivingEntity in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPlayerList.sendActiveEffects(LivingEntity livingEntity, ServerGamePacketListenerImpl connection) -
Uses of LivingEntity in net.minecraft.util.debug
Methods in net.minecraft.util.debug with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugBrainDump.getMemoryDescriptions(ServerLevel level, LivingEntity body, long timestamp) static DebugBrainDumpDebugBrainDump.takeBrainDump(ServerLevel serverLevel, LivingEntity entity) -
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 @Nullable FallLocationFallLocation.getCurrentFallLocation(LivingEntity mob) static floatCombatRules.getDamageAfterAbsorb(LivingEntity victim, float damage, DamageSource source, float totalArmor, float armorToughness) DamageSource.getLocalizedDeathMessage(LivingEntity victim) Gets the death message that is displayed when the player diesDamageSources.mobAttack(LivingEntity mob) DamageSources.mobProjectile(Entity entity, @Nullable LivingEntity mob) DamageSources.noAggroMobAttack(LivingEntity mob) DamageSources.spit(Entity entity, @Nullable LivingEntity mob) DamageSources.sting(LivingEntity mob) DamageSources.windCharge(Entity entity, @Nullable LivingEntity mob) 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 TypeMethodDescriptionbooleanAbsorptionMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanBadOmenMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanHealOrHarmMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanHungerMobEffect.applyEffectTick(ServerLevel serverLevel, LivingEntity mob, int amplification) booleanMobEffect.applyEffectTick(ServerLevel serverLevel, LivingEntity mob, int amplification) booleanPoisonMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanRaidOmenMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanRegenerationMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanSaturationMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanWitherMobEffect.applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) voidHealOrHarmMobEffect.applyInstantenousEffect(ServerLevel serverLevel, @Nullable Entity source, @Nullable Entity owner, LivingEntity mob, int amplification, double scale) voidMobEffect.applyInstantenousEffect(ServerLevel level, @Nullable Entity source, @Nullable Entity owner, LivingEntity mob, int amplification, double scale) private static OozingMobEffect.NearbySlimesOozingMobEffect.NearbySlimes.closeTo(LivingEntity mob) floatMobEffectInstance.getBlendFactor(LivingEntity livingEntity, float partialTickTime) static intMobEffectUtil.getDigSpeedAmplification(LivingEntity mob) floatMobEffectInstance.BlendState.getFactor(LivingEntity livingEntity, float partialTickTime) static booleanMobEffectUtil.hasDigSpeed(LivingEntity mob) static booleanMobEffectUtil.hasWaterBreathing(LivingEntity mob) voidMobEffect.onEffectAdded(LivingEntity mob, int amplifier) voidMobEffectInstance.onEffectAdded(LivingEntity livingEntity) voidAbsorptionMobEffect.onEffectStarted(LivingEntity mob, int amplifier) voidMobEffect.onEffectStarted(LivingEntity mob, int amplifier) voidMobEffectInstance.onEffectStarted(LivingEntity mob) voidInfestedMobEffect.onMobHurt(ServerLevel level, LivingEntity mob, int amplifier, DamageSource source, float damage) voidMobEffect.onMobHurt(ServerLevel level, LivingEntity mob, int amplifier, DamageSource source, float damage) voidMobEffectInstance.onMobHurt(ServerLevel level, LivingEntity mob, DamageSource source, float damage) voidMobEffect.onMobRemoved(ServerLevel level, LivingEntity mob, int amplifier, Entity.RemovalReason reason) voidMobEffectInstance.onMobRemoved(ServerLevel level, LivingEntity mob, Entity.RemovalReason reason) voidOozingMobEffect.onMobRemoved(ServerLevel level, LivingEntity mob, int amplifier, Entity.RemovalReason reason) voidWeavingMobEffect.onMobRemoved(ServerLevel level, LivingEntity mob, int amplifier, Entity.RemovalReason reason) voidWindChargedMobEffect.onMobRemoved(ServerLevel level, LivingEntity mob, int amplifier, Entity.RemovalReason reason) static booleanMobEffectUtil.shouldEffectsRefillAirsupply(LivingEntity mob) private voidInfestedMobEffect.spawnSilverfish(ServerLevel level, LivingEntity mob, double x, double y, double z) booleanMobEffectInstance.tickServer(ServerLevel serverLevel, LivingEntity target, Runnable onEffectUpdate) -
Uses of LivingEntity in net.minecraft.world.entity
Subclasses of LivingEntity in net.minecraft.world.entityModifier and TypeClassDescriptionclassclassclassclassclassFields in net.minecraft.world.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntityElytraAnimationState.entityprivate @Nullable LivingEntityLivingEntity.lastHurtMobprivate @Nullable LivingEntityMob.targetFields in net.minecraft.world.entity with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected static final EntityDataAccessor<Optional<EntityReference<LivingEntity>>> TamableAnimal.DATA_OWNERUUID_IDprivate @Nullable EntityReference<LivingEntity> LivingEntity.lastHurtByMobprivate @Nullable EntityReference<LivingEntity> AreaEffectCloud.ownerstatic final Predicate<LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEMDeprecated.static final BiPredicate<LivingEntity, @Nullable LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGETstatic final BiPredicate<LivingEntity, @Nullable LivingEntity> LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGETMethods in net.minecraft.world.entity that return LivingEntityModifier and TypeMethodDescriptiondefault @Nullable LivingEntityItemOwner.asLivingEntity()@Nullable LivingEntityItemOwner.OffsetFromOwner.asLivingEntity()@Nullable LivingEntityLivingEntity.asLivingEntity()protected @Nullable LivingEntityMob.asValidTarget(@Nullable LivingEntity target) @Nullable LivingEntityEntity.getControllingPassenger()@Nullable LivingEntityMob.getControllingPassenger()@Nullable LivingEntityLivingEntity.getKillCredit()@Nullable LivingEntityAttackable.getLastAttacker()@Nullable LivingEntityInteraction.getLastAttacker()LivingEntity.getLastAttacker()@Nullable LivingEntityLivingEntity.getLastHurtByMob()@Nullable LivingEntityNeutralMob.getLastHurtByMob()@Nullable LivingEntityLivingEntity.getLastHurtMob()default LivingEntityContainerUser.getLivingEntity()static @Nullable LivingEntityEntityReference.getLivingEntity(@Nullable EntityReference<LivingEntity> reference, Level level) @Nullable LivingEntityAreaEffectCloud.getOwner()default @Nullable LivingEntityOwnableEntity.getOwner()default @Nullable LivingEntityOwnableEntity.getRootOwner()@Nullable LivingEntityInteraction.getTarget()@Nullable LivingEntityMob.getTarget()@Nullable LivingEntityNeutralMob.getTarget()@Nullable LivingEntityTargeting.getTarget()protected final @Nullable LivingEntityMob.getTargetFromBrain()@Nullable LivingEntityMob.getTargetUnchecked()@Nullable LivingEntityNeutralMob.getTargetUnchecked()Methods in net.minecraft.world.entity that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionBrain<? extends LivingEntity> LivingEntity.getBrain()@Nullable EntityReference<LivingEntity> OwnableEntity.getOwnerReference()@Nullable EntityReference<LivingEntity> TamableAnimal.getOwnerReference()@Nullable EntityReference<LivingEntity> NeutralMob.getPersistentAngerTarget()protected Brain<? extends LivingEntity> LivingEntity.makeBrain(Brain.Packed packedBrain) Methods in net.minecraft.world.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionEntityType.appendCustomEntityStackConfig(Consumer<T> initialConfig, Level level, ItemStack itemStack, @Nullable LivingEntity user) EntityType.appendDefaultStackConfig(Consumer<T> initialConfig, Level level, ItemStack itemStack, @Nullable LivingEntity user) protected @Nullable LivingEntityMob.asValidTarget(@Nullable LivingEntity target) protected voidLivingEntity.blockedByItem(LivingEntity defender) protected voidLivingEntity.blockUsingItem(ServerLevel level, LivingEntity attacker) booleanLivingEntity.canAttack(LivingEntity target) booleanMob.canAttack(LivingEntity target) booleanNeutralMob.canAttack(LivingEntity target) booleanTamableAnimal.canAttack(LivingEntity target) EntityType.createDefaultStackConfig(Level level, ItemStack itemStack, @Nullable LivingEntity user) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity entity, EquipmentSlot equipmentSlot) protected voidLivingEntity.createWitherRose(@Nullable LivingEntity killer) protected voidLivingEntity.doAutoAttackOnTouch(LivingEntity entity) voidEntityEquipment.dropAll(LivingEntity dropper) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> validator) Entity.getDismountLocationForPassenger(LivingEntity passenger) default booleanNeutralMob.isAngryAt(LivingEntity entity, ServerLevel level) booleanLivingEntity.isLookingAtMe(LivingEntity target, double coneSize, boolean adjustForDistance, boolean seeThroughTransparentBlocks, double... gazeHeights) booleanTamableAnimal.isOwnedBy(LivingEntity entity) private static booleanNeutralMob.isValidPlayerTarget(LivingEntity target) booleanMob.isWithinMeleeAttackRange(LivingEntity target) booleanEntity.killedEntity(ServerLevel level, LivingEntity entity, DamageSource source) voidLivingEntity.setLastHurtByMob(@Nullable LivingEntity hurtBy) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidNeutralMob.setLastHurtByMob(@Nullable LivingEntity hurtBy) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidAreaEffectCloud.setOwner(@Nullable LivingEntity owner) voidTamableAnimal.setOwner(@Nullable LivingEntity owner) voidMob.setTarget(@Nullable LivingEntity target) Sets the active target the Goal system uses for trackingvoidNeutralMob.setTarget(@Nullable LivingEntity target) Sets the active target the Task system uses for tracking@Nullable TEntityType.spawn(ServerLevel level, @Nullable ItemStack itemStack, @Nullable LivingEntity user, BlockPos spawnPos, EntitySpawnReason spawnReason, boolean tryMoveDown, boolean movedUp) static voidEntityType.updateCustomEntityTag(Level level, @Nullable LivingEntity user, @Nullable Entity entity, TypedEntityData<EntityType<?>> entityData) booleanTamableAnimal.wantsToAttack(LivingEntity target, LivingEntity owner) Method parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic @Nullable LivingEntityEntityReference.getLivingEntity(@Nullable EntityReference<LivingEntity> reference, Level level) voidTamableAnimal.setOwnerReference(@Nullable EntityReference<LivingEntity> owner) voidNeutralMob.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) Constructors in net.minecraft.world.entity with parameters of type LivingEntityConstructor parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotectedAvatar(EntityType<? extends LivingEntity> type, Level level) protectedLivingEntity(EntityType<? extends LivingEntity> type, Level level) -
Uses of LivingEntity in net.minecraft.world.entity.ai
Classes in net.minecraft.world.entity.ai with type parameters of type LivingEntityModifier and TypeClassDescriptionfinal recordActivityData<E extends LivingEntity>classBrain<E extends LivingEntity>static interfaceBrain.ActivitySupplier<E extends LivingEntity>static final classBrain.Provider<E extends LivingEntity>Methods in net.minecraft.world.entity.ai with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, int priorityOfFirstBehavior, ImmutableList<? extends BehaviorControl<? super E>> behaviorList) static <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, int priorityOfFirstBehavior, ImmutableList<? extends BehaviorControl<? super E>> behaviorList, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions) static <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, int priorityOfFirstBehavior, ImmutableList<? extends BehaviorControl<? super E>> behaviorList, MemoryModuleType<?> memoryThatMustHaveValueAndWillBeErasedAfter) static <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E>>> behaviorPriorityPairs) static <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E>>> behaviorPriorityPairs, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions) static <E extends LivingEntity>
ActivityData<E> ActivityData.create(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E>>> behaviorPriorityPairs, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions, Set<MemoryModuleType<?>> memoriesToEraseWhenStopped) static <E extends LivingEntity>
ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E>>> ActivityData.createPriorityPairs(int priorityOfFirstBehavior, ImmutableList<? extends BehaviorControl<? super E>> behaviorList) static <E extends LivingEntity>
Brain.Provider<E> Brain.provider(Collection<? extends MemoryModuleType<?>> memoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> sensorTypes, Brain.ActivitySupplier<E> activities) Deprecated.static <E extends LivingEntity>
Brain.Provider<E> Brain.provider(Collection<? extends SensorType<? extends Sensor<? super E>>> sensorTypes) static <E extends LivingEntity>
Brain.Provider<E> Brain.provider(Collection<? extends SensorType<? extends Sensor<? super E>>> sensorTypes, Brain.ActivitySupplier<E> activities) -
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.SUPPLIERSMethod parameters in net.minecraft.world.entity.ai.attributes with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic AttributeSupplierDefaultAttributes.getSupplier(EntityType<? extends LivingEntity> type) -
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 TypeClassDescriptionclassBehavior<E extends LivingEntity>interfaceBehaviorControl<E extends LivingEntity>classCrossbowAttack<E extends Mob & CrossbowAttackMob, T extends LivingEntity>classGateBehavior<E extends LivingEntity>classGoAndGiveItemsToTarget<E extends LivingEntity & InventoryCarrier>classOneShot<E extends LivingEntity>classRunOne<E extends LivingEntity>Subclasses with type arguments of type LivingEntity in net.minecraft.world.entity.ai.behaviorClasses in net.minecraft.world.entity.ai.behavior that implement interfaces with type arguments of type LivingEntityFields in net.minecraft.world.entity.ai.behavior declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntityPrepareRamNearestTarget.RamCandidate.targetFields in net.minecraft.world.entity.ai.behavior with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Function<LivingEntity, Double> FollowTemptation.closeEnoughDistanceprivate final Function<LivingEntity, Float> FollowTemptation.speedModifierprivate final Function<LivingEntity, Optional<PositionTracker>> GoAndGiveItemsToTarget.targetPositionGetterMethods 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>> behaviors, ServerLevel level, E body, long timestamp) static <E extends LivingEntity, T>
BehaviorControl<E> CopyMemoryWithExpiry.create(Predicate<E> copyIfTrue, MemoryModuleType<? extends T> sourceMemory, MemoryModuleType<T> targetMemory, UniformInt durationOfCopy) static <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create(int maxWalkDistToRideTarget, BiPredicate<E, Entity> dontRideIf) static <E extends LivingEntity>
BehaviorControl<E> EraseMemoryIf.create(Predicate<E> predicate, MemoryModuleType<?> memoryType) static <E extends LivingEntity>
BehaviorControl<E> GoToWantedItem.create(Predicate<E> predicate, float speedModifier, boolean interruptOngoingWalk, int maxDistToWalk) static <E extends LivingEntity, T extends LivingEntity>
BehaviorControl<E> InteractWith.of(EntityType<? extends T> type, int interactionRange, Predicate<E> selfFilter, Predicate<T> targetFilter, MemoryModuleType<T> interactionTarget, float speedModifier, int stopDistance) static <E extends LivingEntity, T extends LivingEntity>
BehaviorControl<E> InteractWith.of(EntityType<? extends T> type, int interactionRange, Predicate<E> selfFilter, Predicate<T> targetFilter, MemoryModuleType<T> interactionTarget, float speedModifier, int stopDistance) static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of(EntityType<? extends T> type, int interactionRange, MemoryModuleType<T> interactionTarget, float speedModifier, int stopDistance) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> weightedBehaviors, GateBehavior.OrderPolicy orderPolicy, GateBehavior.RunningPolicy runningPolicy) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerOneShuffled(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> weightedTriggers) Methods in net.minecraft.world.entity.ai.behavior that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity body) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity body, Optional<LivingEntity> target1, LivingEntity target2) PrepareRamNearestTarget.RamCandidate.getTarget()private @Nullable LivingEntitySpearApproach.getTarget(PathfinderMob mob) private @Nullable LivingEntitySpearAttack.getTarget(PathfinderMob mob) private @Nullable LivingEntitySpearRetreat.getTarget(PathfinderMob mob) static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity body, LivingEntity target1, LivingEntity target2) private LivingEntityShowTradesToPlayer.lookAtTarget(Villager myBody) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity friend) 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> friendsNearby) static OneShot<LivingEntity> BabyFollowAdult.create(UniformInt followRange, float speedModifier) static OneShot<LivingEntity> BabyFollowAdult.create(UniformInt followRange, Function<LivingEntity, Float> speedModifier, MemoryModuleType<? extends LivingEntity> nearestVisibleType, boolean targetEye) static BehaviorControl<LivingEntity> BecomePassiveIfMemoryPresent.create(MemoryModuleType<?> pacifyingMemory, int pacifyDuration) static BehaviorControl<LivingEntity> GoToWantedItem.create(float speedModifier, boolean interruptOngoingWalk, int maxDistToWalk) static BehaviorControl<LivingEntity> InteractWithDoor.create()static OneShot<LivingEntity> LocateHidingPlace.create(int radius, float speedModifier, int closeEnoughDist) static BehaviorControl<LivingEntity> Mount.create(float speedModifier) static OneShot<LivingEntity> MoveToSkySeeingSpot.create(float speedModifier) static BehaviorControl<LivingEntity> ReactToBell.create()static BehaviorControl<LivingEntity> ResetRaidStatus.create()static BehaviorControl<LivingEntity> RingBell.create()static OneShot<LivingEntity> SetEntityLookTarget.create(float maxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> predicate, float maxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(EntityType<?> type, float maxDist) static BehaviorControl<LivingEntity> SetEntityLookTarget.create(MobCategory category, float maxDist) static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval) Deprecated.private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval, Predicate<LivingEntity> predicate) Deprecated.static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(EntityType<?> type, float maxDist, UniformInt interval) Deprecated.static BehaviorControl<LivingEntity> SetHiddenState.create(int seconds, int closeEnoughDist) static BehaviorControl<LivingEntity> SetLookAndInteract.create(EntityType<?> type, int interactionRange) static BehaviorControl<LivingEntity> SetRaidStatus.create()static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(float speedModifier, int closeEnoughDistance) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTargetPredicate, Function<LivingEntity, Float> speedModifier, int closeEnoughDistance) static OneShot<LivingEntity> SocializeAtBell.create()static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int celebrateDuration, BiPredicate<LivingEntity, LivingEntity> dancePredicate) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> shouldRunPredicate, int closeEnough, int tooFar, float speedModifier) static BehaviorControl<LivingEntity> StopBeingAngryIfTargetDead.create()static BehaviorControl<LivingEntity> static BehaviorControl<LivingEntity> UpdateActivityFromSchedule.create()static BehaviorControl<LivingEntity> ValidateNearbyPoi.create(Predicate<Holder<PoiType>> poiType, MemoryModuleType<GlobalPos> memoryType) static BehaviorControl<LivingEntity> VillagerCalmDown.create()static BehaviorControl<LivingEntity> WakeUp.create()private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> friendsNearby) Optional<? extends LivingEntity> StartAttacking.TargetFinder.get(ServerLevel level, E body) private static com.mojang.datafixers.util.Pair<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getFullLookBehavior()static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity body, MemoryModuleType<UUID> memoryType) private static com.mojang.datafixers.util.Pair<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getMinimalLookBehavior()static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of(EntityType<? extends T> type, int interactionRange, MemoryModuleType<T> interactionTarget, float speedModifier, int stopDistance) Methods in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidStopAttackingIfTargetInvalid.TargetErasedCallback.accept(ServerLevel level, E body, LivingEntity target) private static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity body, BlockPos doorPos, Optional<List<LivingEntity>> nearestEntities) private static booleanValidateNearbyPoi.bedIsOccupied(ServerLevel poiLevel, BlockPos poiPos, LivingEntity body) PrepareRamNearestTarget.calculateRammingStartPosition(PathfinderMob body, LivingEntity ramableTarget) static booleanBehaviorUtils.canSee(LivingEntity body, LivingEntity target) protected booleanCountDownCooldownTicks.canStillUse(ServerLevel level, LivingEntity body, long timestamp) protected booleanSleepInBed.canStillUse(ServerLevel level, LivingEntity body, long timestamp) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kidToChase) protected booleanSleepInBed.checkExtraStartConditions(ServerLevel level, LivingEntity body) private voidPrepareRamNearestTarget.chooseRamPosition(PathfinderMob body, LivingEntity ramableTarget) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity body, @Nullable Node movingFromNode, @Nullable Node movingToNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> nearestEntities) private voidCrossbowAttack.crossbowAttack(E body, LivingEntity target) private voidChargeAttack.dealDamageToTarget(ServerLevel level, Animal body, LivingEntity target) private voidChargeAttack.dealKnockBack(Animal body, LivingEntity target) final voidDoNothing.doStop(ServerLevel level, LivingEntity body, long timestamp) static booleanBehaviorUtils.entityIsVisible(Brain<?> brain, LivingEntity targetEntity) private voidShowTradesToPlayer.findItemsToDisplay(LivingEntity player, Villager villager) private static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity body) CountDownCooldownTicks.getCooldownTickMemory(LivingEntity body) static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity body, MemoryModuleType<UUID> memoryType) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity body, Optional<LivingEntity> target1, LivingEntity target2) private static @Nullable Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel level, LivingEntity body) static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity body, LivingEntity target1, LivingEntity target2) static booleanVillagerPanicTrigger.hasHostile(LivingEntity myBody) static booleanMoveToSkySeeingSpot.hasNoBlocksAbove(ServerLevel level, LivingEntity body, BlockPos target) static booleanBehaviorUtils.isBreeding(LivingEntity body) private static booleanPlayTagWithOtherKids.isChasingSomeone(LivingEntity friend) private static booleanInteractWithDoor.isDoorTooFarAway(ServerLevel level, LivingEntity body, GlobalPos doorGlobalPos) private static booleanPlayTagWithOtherKids.isFriendChasingMe(LivingEntity me, LivingEntity friend) static booleanVillagerPanicTrigger.isHurt(LivingEntity myBody) static booleanBehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity body, LivingEntity otherTarget, double howMuchFurtherAway) private static booleanStopAttackingIfTargetInvalid.isTiredOfTryingToReachTarget(LivingEntity body, Optional<Long> cantReachSince) private static booleanDismountOrSkipMounting.isVehicleValid(LivingEntity body, Entity vehicle, int maxWalkDistToRideTarget) booleanBlockPosTracker.isVisibleBy(LivingEntity body) booleanEntityTracker.isVisibleBy(LivingEntity body) booleanPositionTracker.isVisibleBy(LivingEntity body) static booleanBehaviorUtils.isWithinAttackRange(Mob body, LivingEntity target, int projectileAttackRangeMargin) static voidBehaviorUtils.lockGazeAndWalkToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance) private static voidBehaviorUtils.lookAtEachOther(LivingEntity entity1, LivingEntity entity2) static voidBehaviorUtils.lookAtEntity(LivingEntity looker, LivingEntity targetEntity) private voidCrossbowAttack.lookAtTarget(Mob body, LivingEntity target) private static booleanVillagerGoalPackages.raidExistsAndActive(ServerLevel level, LivingEntity body) private static booleanVillagerGoalPackages.raidExistsAndNotVictory(ServerLevel level, LivingEntity body) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity walker, BlockPos targetPos, float speedModifier, int closeEnoughDistance) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity walker, PositionTracker target, float speedModifier, int closeEnoughDistance) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity walker, Entity targetEntity, float speedModifier, int closeEnoughDistance) private static voidBehaviorUtils.setWalkAndLookTargetMemoriesToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance) protected voidSleepInBed.start(ServerLevel level, LivingEntity body, long timestamp) protected voidCountDownCooldownTicks.stop(ServerLevel level, LivingEntity body, long timestamp) protected voidSleepInBed.stop(ServerLevel level, LivingEntity body, long timestamp) booleanStopAttackingIfTargetInvalid.StopAttackCondition.test(ServerLevel level, LivingEntity target) private voidGiveGiftToHero.throwGift(ServerLevel level, Villager villager, LivingEntity target) private static voidTradeWithVillager.throwHalfStack(Villager villager, Set<Item> items, LivingEntity target) static voidBehaviorUtils.throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos) static voidBehaviorUtils.throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos, Vec3 throwVelocity, float handYDistanceFromEye) protected voidCountDownCooldownTicks.tick(ServerLevel level, LivingEntity body, long timestamp) final voidDoNothing.tickOrStop(ServerLevel level, LivingEntity body, long timestamp) final booleanDoNothing.tryStart(ServerLevel level, LivingEntity body, long timestamp) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity friend) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity body, BlockPos doorPos, Optional<List<LivingEntity>> nearestEntities) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kidToChase) private static Map<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas(List<LivingEntity> friendsNearby) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity body, @Nullable Node movingFromNode, @Nullable Node movingToNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> nearestEntities) static OneShot<LivingEntity> BabyFollowAdult.create(UniformInt followRange, Function<LivingEntity, Float> speedModifier, MemoryModuleType<? extends LivingEntity> nearestVisibleType, boolean targetEye) static OneShot<LivingEntity> BabyFollowAdult.create(UniformInt followRange, Function<LivingEntity, Float> speedModifier, MemoryModuleType<? extends LivingEntity> nearestVisibleType, boolean targetEye) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> predicate, float maxDist) private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval, Predicate<LivingEntity> predicate) Deprecated.static BehaviorControl<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create(Function<LivingEntity, Float> speedModifier) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTargetPredicate, Function<LivingEntity, Float> speedModifier, int closeEnoughDistance) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTargetPredicate, Function<LivingEntity, Float> speedModifier, int closeEnoughDistance) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int celebrateDuration, BiPredicate<LivingEntity, LivingEntity> dancePredicate) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int celebrateDuration, BiPredicate<LivingEntity, LivingEntity> dancePredicate) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> shouldRunPredicate, int closeEnough, int tooFar, float speedModifier) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> shouldRunPredicate, int closeEnough, int tooFar, float speedModifier) private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> friendsNearby) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity body, Optional<LivingEntity> target1, LivingEntity target2) private static booleanBehaviorUtils.targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, Predicate<LivingEntity> targetPredicate) private static booleanBehaviorUtils.targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, Predicate<LivingEntity> targetPredicate) static booleanBehaviorUtils.targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, EntityType<?> targetType) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifierConstructorDescriptionRamCandidate(BlockPos startPosition, BlockPos targetPosition, LivingEntity target) Constructor parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifierConstructorDescriptionFollowTemptation(Function<LivingEntity, Float> speedModifier) FollowTemptation(Function<LivingEntity, Float> speedModifier, Function<LivingEntity, Double> closeEnoughDistance) FollowTemptation(Function<LivingEntity, Float> speedModifier, Function<LivingEntity, Double> closeEnoughDistance, boolean lookInTheEyes) GoAndGiveItemsToTarget(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, float speedModifier, int timeoutDuration, GoAndGiveItemsToTarget.ItemThrower<E> itemThrower) -
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 TypeClassDescriptionclassBehaviorBuilder<E extends LivingEntity, M>private static final classBehaviorBuilder.Constant<E extends LivingEntity, A>static final classBehaviorBuilder.Instance<E extends LivingEntity>private static final classBehaviorBuilder.Instance.Mu<E extends LivingEntity>static final classBehaviorBuilder.Mu<E extends LivingEntity>private static final classBehaviorBuilder.PureMemory<E extends LivingEntity, F extends com.mojang.datafixers.kinds.K1, Value>private static interfaceBehaviorBuilder.TriggerWithResult<E extends LivingEntity, R>private static final classBehaviorBuilder.TriggerWrapper<E extends LivingEntity>interfaceTrigger<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>>> builder) private static <E extends LivingEntity, M>
BehaviorBuilder<E, M> BehaviorBuilder.create(BehaviorBuilder.TriggerWithResult<E, M> instanceFactory) private static <E extends LivingEntity, M>
BehaviorBuilder.TriggerWithResult<E, M> BehaviorBuilder.get(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> box) 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> predicate) 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> box) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.warden
Subclasses with type arguments of type LivingEntity in net.minecraft.world.entity.ai.behavior.wardenMethods 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 booleanForceUnmount.checkExtraStartConditions(ServerLevel level, LivingEntity body) static voidSonicBoom.setCooldown(LivingEntity body, int cooldown) protected voidForceUnmount.start(ServerLevel level, LivingEntity body, long timestamp) 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>> targetFinderFunction) -
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 @Nullable LivingEntityOfferFlowerGoal.entityprivate @Nullable LivingEntityFollowOwnerGoal.ownerprivate LivingEntityLeapAtTargetGoal.targetprivate @Nullable LivingEntityMoveTowardsTargetGoal.targetprivate LivingEntityOcelotAttackGoal.targetprivate @Nullable LivingEntityRangedAttackGoal.targetprivate @Nullable LivingEntitySwellGoal.targetprotected @Nullable TAvoidEntityGoal.toAvoidFields in net.minecraft.world.entity.ai.goal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected final Predicate<? super LivingEntity> AvoidEntityGoal.avoidPredicateprotected final Class<? extends LivingEntity> LookAtPlayerGoal.lookAtTypeprotected final Predicate<? super LivingEntity> AvoidEntityGoal.predicateOnAvoidEntityMethods in net.minecraft.world.entity.ai.goal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected booleanMeleeAttackGoal.canPerformAttack(LivingEntity target) protected voidMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) private booleanTemptGoal.shouldFollow(LivingEntity player) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionAvoidEntityGoal(PathfinderMob mob, Class<T> avoidClass, float maxDist, double walkSpeedModifier, double sprintSpeedModifier, Predicate<? super LivingEntity> predicateOnAvoidEntity) AvoidEntityGoal(PathfinderMob mob, Class<T> avoidClass, Predicate<LivingEntity> avoidPredicate, float maxDist, double walkSpeedModifier, double sprintSpeedModifier, Predicate<? super LivingEntity> predicateOnAvoidEntity) Goal that helps mobs avoid mobs of a specific classInteractGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) InteractGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability, boolean onlyHorizontal) -
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 TypeClassDescriptionclassNearestAttackableTargetGoal<T extends LivingEntity>classNearestAttackableWitchTargetGoal<T extends LivingEntity>classNearestHealableRaiderTargetGoal<T extends LivingEntity>classNonTameRandomTargetGoal<T extends LivingEntity>Fields in net.minecraft.world.entity.ai.goal.target declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityOwnerHurtTargetGoal.ownerLastHurtprivate LivingEntityOwnerHurtByTargetGoal.ownerLastHurtByprivate @Nullable LivingEntityDefendVillageTargetGoal.potentialTargetprotected @Nullable LivingEntityNearestAttackableTargetGoal.targetprotected @Nullable LivingEntityTargetGoal.targetMobMethods in net.minecraft.world.entity.ai.goal.target with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) protected booleanTargetGoal.canAttack(@Nullable LivingEntity target, TargetingConditions targetConditions) Checks if this is a suitable target.private booleanTargetGoal.canReach(LivingEntity target) Checks to see if this entity can find a short path to the given target.voidNearestAttackableTargetGoal.setTarget(@Nullable LivingEntity target) -
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_TARGETstatic final MemoryModuleType<LivingEntity> MemoryModuleType.AVOID_TARGETstatic final MemoryModuleType<LivingEntity> MemoryModuleType.HURT_BY_ENTITYstatic final MemoryModuleType<LivingEntity> MemoryModuleType.INTERACTION_TARGETprivate final Predicate<LivingEntity> NearestVisibleLivingEntities.lineOfSightTestprivate final List<LivingEntity> NearestVisibleLivingEntities.nearbyEntitiesstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_ATTACKABLEstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_HOSTILEstatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.NEAREST_LIVING_ENTITIESHolds 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_ADULTstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ZOMBIFIEDstatic final MemoryModuleType<LivingEntity> MemoryModuleType.ROAR_TARGETstatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.VISIBLE_VILLAGER_BABIESMethods in net.minecraft.world.entity.ai.memory that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionNearestVisibleLivingEntities.find(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.nearbyEntities()Methods in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(LivingEntity targetEntity) Method parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.find(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> filter) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> filter) Constructors in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(ServerLevel level, LivingEntity body, List<LivingEntity> livingEntities) Constructor parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(ServerLevel level, LivingEntity body, List<LivingEntity> livingEntities) -
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 TypeClassDescriptionclassMobSensor<T extends LivingEntity>classNearestLivingEntitySensor<T extends LivingEntity>classSensor<E extends LivingEntity>Subclasses with type arguments of type LivingEntity in net.minecraft.world.entity.ai.sensingModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.ai.sensing with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final BiPredicate<T, LivingEntity> MobSensor.mobTeststatic final SensorType<NearestLivingEntitySensor<LivingEntity>> SensorType.NEAREST_LIVING_ENTITIESMethods in net.minecraft.world.entity.ai.sensing that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenEntitySensor.getClosest(Warden body, Predicate<LivingEntity> test) protected MemoryModuleType<LivingEntity> AxolotlAttackablesSensor.getMemoryToSet()protected MemoryModuleType<LivingEntity> FrogAttackablesSensor.getMemoryToSet()protected abstract MemoryModuleType<LivingEntity> NearestVisibleLivingEntitySensor.getMemoryToSet()protected MemoryModuleType<LivingEntity> VillagerHostilesSensor.getMemoryToSet()private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(ServerLevel level, LivingEntity body) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity myBody) static BiPredicate<ServerLevel, LivingEntity> Sensor.wasEntityAttackableLastNTicks(LivingEntity body, int ticks) Methods in net.minecraft.world.entity.ai.sensing with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidGolemSensor.checkForNearbyGolem(LivingEntity body) protected voidAdultSensor.doTick(ServerLevel level, LivingEntity body) protected voidDummySensor.doTick(ServerLevel level, LivingEntity body) protected voidGolemSensor.doTick(ServerLevel level, LivingEntity body) protected voidHurtBySensor.doTick(ServerLevel level, LivingEntity body) protected voidIsInWaterSensor.doTick(ServerLevel level, LivingEntity body) protected voidNearestVisibleLivingEntitySensor.doTick(ServerLevel level, LivingEntity body) protected voidPiglinBruteSpecificSensor.doTick(ServerLevel level, LivingEntity body) protected voidPiglinSpecificSensor.doTick(ServerLevel level, LivingEntity body) protected voidPlayerSensor.doTick(ServerLevel level, LivingEntity body) protected voidVillagerBabiesSensor.doTick(ServerLevel level, LivingEntity body) PiglinSpecificSensor.findNearestRepellent(ServerLevel level, LivingEntity body) protected doublePlayerSensor.getFollowDistance(LivingEntity body) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(ServerLevel level, LivingEntity body) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity myBody) protected Optional<NearestVisibleLivingEntities> NearestVisibleLivingEntitySensor.getVisibleEntities(LivingEntity body) private NearestVisibleLivingEntitiesVillagerBabiesSensor.getVisibleEntities(LivingEntity myBody) static voidGolemSensor.golemDetected(LivingEntity body) private booleanAxolotlAttackablesSensor.isClose(LivingEntity body, LivingEntity mob) private booleanVillagerHostilesSensor.isClose(LivingEntity body, LivingEntity mob) static booleanSensor.isEntityAttackable(ServerLevel level, LivingEntity body, LivingEntity target) static booleanSensor.isEntityAttackableIgnoringLineOfSight(ServerLevel level, LivingEntity body, LivingEntity target) static booleanSensor.isEntityTargetable(ServerLevel level, LivingEntity body, LivingEntity entity) private booleanVillagerHostilesSensor.isHostile(LivingEntity entity) private booleanAxolotlAttackablesSensor.isHostileTarget(LivingEntity mob) private booleanAxolotlAttackablesSensor.isHuntTarget(LivingEntity body, LivingEntity mob) protected booleanAxolotlAttackablesSensor.isMatchingEntity(ServerLevel level, LivingEntity body, LivingEntity mob) protected booleanFrogAttackablesSensor.isMatchingEntity(ServerLevel level, LivingEntity body, LivingEntity mob) protected abstract booleanNearestVisibleLivingEntitySensor.isMatchingEntity(ServerLevel level, LivingEntity body, LivingEntity mob) protected booleanVillagerHostilesSensor.isMatchingEntity(ServerLevel level, LivingEntity body, LivingEntity mob) private booleanFrogAttackablesSensor.isUnreachableAttackTarget(LivingEntity body, LivingEntity mob) private booleanVillagerBabiesSensor.isVillagerBaby(LivingEntity entity) protected voidAdultSensor.setNearestVisibleAdult(LivingEntity body, NearestVisibleLivingEntities visibleLivingEntities) protected voidAdultSensorAnyType.setNearestVisibleAdult(LivingEntity body, NearestVisibleLivingEntities visibleLivingEntities) static BiPredicate<ServerLevel, LivingEntity> Sensor.wasEntityAttackableLastNTicks(LivingEntity body, int ticks) Method parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenEntitySensor.getClosest(Warden body, Predicate<LivingEntity> test) Constructor parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifierConstructorDescriptionMobSensor(int scanRate, BiPredicate<T, LivingEntity> mobTest, Predicate<T> readyTest, MemoryModuleType<Boolean> toSet, int memoryTimeToLive) -
Uses of LivingEntity in net.minecraft.world.entity.ai.targeting
Methods in net.minecraft.world.entity.ai.targeting with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanTargetingConditions.Selector.test(LivingEntity target, ServerLevel level) booleanTargetingConditions.test(ServerLevel level, @Nullable LivingEntity targeter, LivingEntity target) -
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
Subclasses of LivingEntity in net.minecraft.world.entity.animalMethods in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup(Player player, InteractionHand hand, T pickupEntity) Methods in net.minecraft.world.entity.animal with parameters of type LivingEntity -
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 allay) static Optional<ServerPlayer> AllayAi.getLikedPlayer(LivingEntity allay) private static Optional<PositionTracker> AllayAi.getLikedPlayerPositionTracker(LivingEntity allay) private static booleanAllayAi.hasWantedItem(LivingEntity allay) static voidAllayAi.hearNoteblock(LivingEntity allay, BlockPos pos) private static booleanAllayAi.shouldDepositItemsAtLikedNoteblock(LivingEntity allay, Brain<?> brain, GlobalPos likedNoteblockPos) -
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 level, Axolotl body) Methods in net.minecraft.world.entity.animal.axolotl with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanAxolotlAi.canSetWalkTargetFromLookTarget(LivingEntity body) private static floatAxolotlAi.getSpeedModifier(LivingEntity mob) private static floatAxolotlAi.getSpeedModifierChasing(LivingEntity mob) private static floatAxolotlAi.getSpeedModifierFollowingAdult(LivingEntity mob) static voidAxolotl.onStopAttacking(ServerLevel level, Axolotl body, LivingEntity target) Method parameters in net.minecraft.world.entity.animal.axolotl with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanAxolotl.checkAxolotlSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LivingEntity in net.minecraft.world.entity.animal.bee
Subclasses of LivingEntity in net.minecraft.world.entity.animal.beeFields in net.minecraft.world.entity.animal.bee with type parameters of type LivingEntityMethods in net.minecraft.world.entity.animal.bee that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> Bee.getPersistentAngerTarget()Methods in net.minecraft.world.entity.animal.bee with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidBee.BeeHurtByOtherGoal.alertOther(Mob other, LivingEntity hurtByMob) Method parameters in net.minecraft.world.entity.animal.bee with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidBee.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
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 LivingEntityModifier and TypeMethodDescriptionprotected Vec2Camel.getRiddenRotation(LivingEntity controller) -
Uses of LivingEntity in net.minecraft.world.entity.animal.chicken
Subclasses of LivingEntity in net.minecraft.world.entity.animal.chicken -
Uses of LivingEntity in net.minecraft.world.entity.animal.cow
Subclasses of LivingEntity in net.minecraft.world.entity.animal.cow -
Uses of LivingEntity in net.minecraft.world.entity.animal.dolphin
Subclasses of LivingEntity in net.minecraft.world.entity.animal.dolphinMethods in net.minecraft.world.entity.animal.dolphin with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.equine
Subclasses of LivingEntity in net.minecraft.world.entity.animal.equineModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.animal.equine declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityTraderLlama.TraderLlamaDefendWanderingTraderGoal.ownerLastHurtByFields in net.minecraft.world.entity.animal.equine with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> AbstractHorse.ownerMethods in net.minecraft.world.entity.animal.equine that return LivingEntityMethods in net.minecraft.world.entity.animal.equine that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> AbstractHorse.getOwnerReference()Methods in net.minecraft.world.entity.animal.equine with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger(LivingEntity passenger) private @Nullable Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) protected Vec2AbstractHorse.getRiddenRotation(LivingEntity controller) voidLlama.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.voidAbstractHorse.setOwner(@Nullable LivingEntity owner) private voidLlama.spit(LivingEntity target) -
Uses of LivingEntity in net.minecraft.world.entity.animal.feline
Classes in net.minecraft.world.entity.animal.feline with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classCat.CatAvoidEntityGoal<T extends LivingEntity>private static classOcelot.OcelotAvoidEntityGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.animal.feline -
Uses of LivingEntity in net.minecraft.world.entity.animal.fish
Subclasses of LivingEntity in net.minecraft.world.entity.animal.fishModifier and TypeClassDescriptionclassclassclassclassclassclassclass -
Uses of LivingEntity in net.minecraft.world.entity.animal.fox
Subclasses of LivingEntity in net.minecraft.world.entity.animal.foxSubclasses with type arguments of type LivingEntity in net.minecraft.world.entity.animal.foxFields in net.minecraft.world.entity.animal.fox declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityFox.DefendTrustedTargetGoal.trustedLastHurtprivate @Nullable LivingEntityFox.DefendTrustedTargetGoal.trustedLastHurtByFields in net.minecraft.world.entity.animal.fox 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.fox that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate Stream<EntityReference<LivingEntity>> Fox.getTrustedEntities()Methods in net.minecraft.world.entity.animal.fox with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate voidFox.addTrustedEntity(LivingEntity entity) protected voidFox.FoxMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) static booleanFox.isPathClear(Fox fox, LivingEntity target) voidFox.setTarget(@Nullable LivingEntity target) Sets the active target the Task system uses for trackingbooleanFox.FoxAlertableEntitiesSelector.test(LivingEntity target, ServerLevel level) private booleanFox.trusts(LivingEntity entity) Method parameters in net.minecraft.world.entity.animal.fox with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate voidFox.addTrustedEntity(EntityReference<LivingEntity> reference) Constructor parameters in net.minecraft.world.entity.animal.fox with type arguments of type LivingEntityModifierConstructorDescriptionDefendTrustedTargetGoal(Class<LivingEntity> targetType, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector subselector) FoxLookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) -
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 voidShootTongue.addUnreachableTargetToMemory(Frog body, LivingEntity entity) static booleanFrog.canEat(LivingEntity entity) private booleanShootTongue.canPathfindToTarget(Frog body, LivingEntity target) -
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.golem
Subclasses of LivingEntity in net.minecraft.world.entity.animal.golemModifier and TypeClassDescriptionclassclassclassclassFields in net.minecraft.world.entity.animal.golem with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> IronGolem.persistentAngerTargetMethods in net.minecraft.world.entity.animal.golem that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> IronGolem.getPersistentAngerTarget()Methods in net.minecraft.world.entity.animal.golem with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanIronGolem.canAttack(LivingEntity target) voidSnowGolem.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.Method parameters in net.minecraft.world.entity.animal.golem with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidIronGolem.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
Uses of LivingEntity in net.minecraft.world.entity.animal.happyghast
Subclasses of LivingEntity in net.minecraft.world.entity.animal.happyghastMethods in net.minecraft.world.entity.animal.happyghast that return LivingEntityMethods in net.minecraft.world.entity.animal.happyghast with parameters of type LivingEntityModifier and TypeMethodDescriptionHappyGhast.getDismountLocationForPassenger(LivingEntity passenger) protected Vec2HappyGhast.getRiddenRotation(LivingEntity controller) -
Uses of LivingEntity in net.minecraft.world.entity.animal.nautilus
Subclasses of LivingEntity in net.minecraft.world.entity.animal.nautilusMethods in net.minecraft.world.entity.animal.nautilus that return LivingEntityModifier and TypeMethodDescription@Nullable LivingEntityAbstractNautilus.getControllingPassenger()Methods in net.minecraft.world.entity.animal.nautilus that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprotected static Optional<? extends LivingEntity> NautilusAi.findNearestValidAttackTarget(ServerLevel level, AbstractNautilus body) Methods in net.minecraft.world.entity.animal.nautilus with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected Vec2AbstractNautilus.getRiddenRotation(LivingEntity controller) private static booleanNautilusAi.isHostileTarget(LivingEntity mob) protected static voidNautilusAi.setAngerTarget(ServerLevel level, AbstractNautilus body, LivingEntity target) -
Uses of LivingEntity in net.minecraft.world.entity.animal.panda
Classes in net.minecraft.world.entity.animal.panda with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classPanda.PandaAvoidGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.animal.pandaMethods in net.minecraft.world.entity.animal.panda with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPanda.PandaHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) voidPanda.PandaLookAtPlayerGoal.setTarget(LivingEntity entity) Constructor parameters in net.minecraft.world.entity.animal.panda with type arguments of type LivingEntityModifierConstructorDescriptionPandaLookAtPlayerGoal(Panda mob, Class<? extends LivingEntity> lookAtType, float lookDistance) -
Uses of LivingEntity in net.minecraft.world.entity.animal.parrot
Subclasses of LivingEntity in net.minecraft.world.entity.animal.parrot -
Uses of LivingEntity in net.minecraft.world.entity.animal.pig
Subclasses of LivingEntity in net.minecraft.world.entity.animal.pigMethods in net.minecraft.world.entity.animal.pig that return LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.polarbear
Subclasses of LivingEntity in net.minecraft.world.entity.animal.polarbearFields in net.minecraft.world.entity.animal.polarbear with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> PolarBear.persistentAngerTargetMethods in net.minecraft.world.entity.animal.polarbear that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> PolarBear.getPersistentAngerTarget()Methods in net.minecraft.world.entity.animal.polarbear with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPolarBear.PolarBearHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) protected voidPolarBear.PolarBearMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) Method parameters in net.minecraft.world.entity.animal.polarbear with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidPolarBear.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
Uses of LivingEntity in net.minecraft.world.entity.animal.rabbit
Classes in net.minecraft.world.entity.animal.rabbit with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classRabbit.RabbitAvoidEntityGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.animal.rabbit -
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.squid
Subclasses of LivingEntity in net.minecraft.world.entity.animal.squidMethod parameters in net.minecraft.world.entity.animal.squid with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
Uses of LivingEntity in net.minecraft.world.entity.animal.turtle
Subclasses of LivingEntity in net.minecraft.world.entity.animal.turtle -
Uses of LivingEntity in net.minecraft.world.entity.animal.wolf
Classes in net.minecraft.world.entity.animal.wolf with type parameters of type LivingEntitySubclasses of LivingEntity in net.minecraft.world.entity.animal.wolfFields in net.minecraft.world.entity.animal.wolf with type parameters of type LivingEntityMethods in net.minecraft.world.entity.animal.wolf that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> Wolf.getPersistentAngerTarget()Methods in net.minecraft.world.entity.animal.wolf with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanWolf.wantsToAttack(LivingEntity target, LivingEntity owner) Method parameters in net.minecraft.world.entity.animal.wolf with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidWolf.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
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 LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityDragonStrafePlayerPhase.attackTargetMethods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type LivingEntity -
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 voidWitherBoss.performRangedAttack(int head, LivingEntity target) voidWitherBoss.performRangedAttack(LivingEntity target, float power) 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 level, double x, double y, double z, @Nullable LivingEntity owner) -
Uses of LivingEntity in net.minecraft.world.entity.monster
Subclasses of LivingEntity in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassSubclasses with type arguments of type LivingEntity in net.minecraft.world.entity.monsterFields in net.minecraft.world.entity.monster declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityGuardian.clientSideCachedAttackTargetprivate @Nullable LivingEntityEnderMan.EndermanFreezeWhenLookedAt.targetFields in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> EnderMan.persistentAngerTargetprivate static final Predicate<LivingEntity> Ravager.ROAR_TARGET_ON_CLIENTMethods in net.minecraft.world.entity.monster that return LivingEntityModifier and TypeMethodDescription@Nullable LivingEntityGuardian.getActiveAttackTarget()@Nullable LivingEntityStrider.getControllingPassenger()@Nullable LivingEntityCrossbowAttackMob.getTarget()@Nullable LivingEntityZoglin.getTarget()Methods in net.minecraft.world.entity.monster that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> Zoglin.findNearestValidAttackTarget(ServerLevel level, Mob mob) @Nullable EntityReference<LivingEntity> EnderMan.getPersistentAngerTarget()Methods in net.minecraft.world.entity.monster with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidRavager.blockedByItem(LivingEntity defender) protected voidZoglin.blockedByItem(LivingEntity defender) private booleanPhantom.canAttack(ServerLevel level, LivingEntity target, TargetingConditions targetConditions) protected voidSlime.dealDamage(LivingEntity target) Strider.getDismountLocationForPassenger(LivingEntity passenger) booleanCreeper.killedEntity(ServerLevel level, LivingEntity entity, DamageSource source) default voidCrossbowAttackMob.performCrossbowAttack(LivingEntity body, float crossbowPower) voidRangedAttackMob.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.voidWitch.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.private voidZoglin.setAttackTarget(LivingEntity target) voidCreeper.setTarget(@Nullable LivingEntity target) voidEnderMan.setTarget(@Nullable LivingEntity target) Sets the active target the Task system uses for trackingbooleanGuardian.GuardianAttackSelector.test(@Nullable LivingEntity target, ServerLevel level) Method parameters in net.minecraft.world.entity.monster with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidEnderMan.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
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 TypeMethodDescriptionbooleanBreeze.canAttack(LivingEntity target) private static booleanShoot.isTargetWithinRange(Breeze body, LivingEntity target) private static booleanLongJump.outOfAggroRange(Breeze breeze, LivingEntity attackTarget) static Vec3BreezeUtil.randomPointBehindTarget(LivingEntity enemy, RandomSource random) private static Vec3Slide.randomPointInMiddleCircle(Breeze breeze, LivingEntity enemy) private static @Nullable BlockPosLongJump.snapToSurface(LivingEntity entity, Vec3 target) private static booleanLongJump.tooCloseForJump(Breeze breeze, LivingEntity attackTarget) -
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 booleanCreakingAi.isAttackTargetStillReachable(Creaking creaking, LivingEntity target) -
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 level, Hoglin body) Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHoglin.blockedByItem(LivingEntity defender) private static voidHoglinAi.broadcastAttackTarget(Hoglin body, LivingEntity target) private static voidHoglinAi.broadcastRetreat(Hoglin body, LivingEntity target) static booleanHoglinBase.hurtAndThrowTarget(ServerLevel level, LivingEntity body, LivingEntity target) private static voidHoglinAi.maybeRetaliate(ServerLevel level, Hoglin body, LivingEntity attacker) protected static voidHoglinAi.onHitTarget(Hoglin attackerBody, LivingEntity target) private static voidHoglinAi.retreatFromNearestTarget(Hoglin body, LivingEntity newAvoidTarget) private static voidHoglinAi.setAttackTarget(Hoglin body, LivingEntity target) private static voidHoglinAi.setAttackTargetIfCloserThanCurrent(Hoglin body, LivingEntity newTarget) private static voidHoglinAi.setAvoidTarget(Hoglin body, LivingEntity avoidTarget) static voidHoglinBase.throwTarget(LivingEntity body, LivingEntity target) protected static voidHoglinAi.wasHurtBy(ServerLevel level, Hoglin body, LivingEntity attacker) -
Uses of LivingEntity in net.minecraft.world.entity.monster.illager
Subclasses of LivingEntity in net.minecraft.world.entity.monster.illagerModifier and TypeClassDescriptionclassclassclassclassclassclassSubclasses with type arguments of type LivingEntity in net.minecraft.world.entity.monster.illagerMethods in net.minecraft.world.entity.monster.illager with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanAbstractIllager.canAttack(LivingEntity target) voidIllusioner.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.voidPillager.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack. -
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 admireDuration) static BehaviorControl<LivingEntity> StopAdmiringIfItemTooFarAway.create(int maxDistanceToItem) static BehaviorControl<LivingEntity> StopAdmiringIfTiredOfTryingToReachItem.create(int maxTimeToReachItem, int disableTime) private static RunOne<LivingEntity> PiglinAi.createIdleLookBehaviors()private static ImmutableList<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> PiglinAi.createLookBehaviors()private static Optional<? extends LivingEntity> PiglinAi.findNearestValidAttackTarget(ServerLevel level, Piglin body) private static Optional<? extends LivingEntity> PiglinBruteAi.findNearestValidAttackTarget(ServerLevel level, AbstractPiglin body) private static Optional<LivingEntity> PiglinAi.getAngerTarget(AbstractPiglin body) static Optional<LivingEntity> PiglinAi.getAvoidTarget(Piglin body) Methods in net.minecraft.world.entity.monster.piglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static voidPiglinAi.admireGoldItem(LivingEntity body) protected static voidPiglinAi.broadcastAngerTarget(ServerLevel level, AbstractPiglin body, LivingEntity target) private static voidPiglinAi.broadcastRetreat(Piglin body, LivingEntity target) private static booleanPiglinAi.doesntSeeAnyPlayerHoldingLovedItem(LivingEntity body) private static booleanPiglinAi.hasCrossbow(LivingEntity body) private static booleanPiglinAi.isNearestValidAttackTarget(ServerLevel level, Piglin body, LivingEntity target) private static booleanPiglinBruteAi.isNearestValidAttackTarget(ServerLevel level, AbstractPiglin body, LivingEntity target) static booleanPiglinAi.isPlayerHoldingLovedItem(LivingEntity entity) static booleanPiglinAi.isWearingSafeArmor(LivingEntity livingEntity) protected static voidPiglinAi.maybeRetaliate(ServerLevel level, AbstractPiglin body, LivingEntity attacker) voidPiglin.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.private static voidPiglinAi.retreatFromNearestTarget(Piglin body, LivingEntity newAvoidTarget) private static booleanPiglinAi.seesPlayerHoldingLovedItem(LivingEntity body) protected static voidPiglinAi.setAngerTarget(ServerLevel level, AbstractPiglin body, LivingEntity target) protected static voidPiglinBruteAi.setAngerTarget(PiglinBrute body, LivingEntity target) private static voidPiglinAi.setAngerTargetIfCloserThanCurrent(ServerLevel level, AbstractPiglin body, LivingEntity newTarget) private static voidPiglinAi.setAngerTargetToNearestTargetablePlayerIfFound(ServerLevel level, AbstractPiglin body, LivingEntity targetIfNoPlayerFound) private static voidPiglinAi.setAvoidTargetAndDontHuntForAWhile(Piglin body, LivingEntity target) private static booleanPiglinAi.wantsToDance(LivingEntity body, LivingEntity killedTarget) protected static voidPiglinAi.wasHurtBy(ServerLevel level, Piglin body, LivingEntity attacker) protected static voidPiglinBruteAi.wasHurtBy(ServerLevel level, PiglinBrute body, LivingEntity attacker) private static booleanPiglinAi.wasHurtRecently(LivingEntity body) -
Uses of LivingEntity in net.minecraft.world.entity.monster.skeleton
Subclasses of LivingEntity in net.minecraft.world.entity.monster.skeletonModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in net.minecraft.world.entity.monster.skeleton with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidAbstractSkeleton.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack. -
Uses of LivingEntity in net.minecraft.world.entity.monster.spider
Classes in net.minecraft.world.entity.monster.spider with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classSpider.SpiderTargetGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.monster.spider -
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 booleanWardenAi.isTarget(Warden body, LivingEntity living) private static voidWardenAi.onTargetInvalid(ServerLevel level, Warden body, LivingEntity attackTarget) voidWarden.setAttackTarget(LivingEntity target) static voidWardenAi.setDigCooldown(LivingEntity body) -
Uses of LivingEntity in net.minecraft.world.entity.monster.zombie
Subclasses of LivingEntity in net.minecraft.world.entity.monster.zombieModifier and TypeClassDescriptionclassclassclassclassclassFields in net.minecraft.world.entity.monster.zombie with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> ZombifiedPiglin.persistentAngerTargetMethods in net.minecraft.world.entity.monster.zombie that return types with arguments of type LivingEntityModifier and TypeMethodDescription@Nullable EntityReference<LivingEntity> ZombifiedPiglin.getPersistentAngerTarget()Methods in net.minecraft.world.entity.monster.zombie with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanZombie.killedEntity(ServerLevel level, LivingEntity entity, DamageSource source) booleanDrowned.okTarget(@Nullable LivingEntity target) voidDrowned.performRangedAttack(LivingEntity target, float power) Attack the specified entity using a ranged attack.voidZombifiedPiglin.setTarget(@Nullable LivingEntity target) Sets the active target the Task system uses for trackingMethod parameters in net.minecraft.world.entity.monster.zombie with type arguments of type LivingEntityModifier and TypeMethodDescriptionvoidZombifiedPiglin.setPersistentAngerTarget(@Nullable EntityReference<LivingEntity> persistentAngerTarget) -
Uses of LivingEntity in net.minecraft.world.entity.npc.villager
Subclasses of LivingEntity in net.minecraft.world.entity.npc.villagerMethods in net.minecraft.world.entity.npc.villager with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidVillager.setLastHurtByMob(@Nullable LivingEntity hurtBy) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate. -
Uses of LivingEntity in net.minecraft.world.entity.npc.wanderingtrader
Subclasses of LivingEntity in net.minecraft.world.entity.npc.wanderingtrader -
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 voidPlayer.blockUsingItem(ServerLevel level, LivingEntity attacker) protected voidPlayer.doAutoAttackOnTouch(LivingEntity entity) booleanPlayer.killedEntity(ServerLevel level, LivingEntity entity, DamageSource source) -
Uses of LivingEntity in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityFireworkRocketEntity.attachedToEntityFields in net.minecraft.world.entity.projectile with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<LivingEntity> EvokerFangs.ownerMethods 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.DoubleDoubleImmutablePairFireworkRocketEntity.calculateHorizontalHurtKnockbackDirection(LivingEntity hurtEntity, DamageSource damageSource) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairProjectile.calculateHorizontalHurtKnockbackDirection(LivingEntity hurtEntity, DamageSource damageSource) Projectile.ProjectileFactory.create(ServerLevel level, LivingEntity entity, ItemStack itemStack) private voidEvokerFangs.dealDamageTo(LivingEntity entity) static AbstractArrowProjectileUtil.getMobArrow(LivingEntity mob, ItemStack projectile, float power, @Nullable ItemStack firedFromWeapon) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity mob, Item weaponItem) Deprecated.voidEvokerFangs.setOwner(@Nullable LivingEntity owner) static <T extends Projectile>
TProjectile.spawnProjectileFromRotation(Projectile.ProjectileFactory<T> creator, ServerLevel serverLevel, ItemStack itemStack, LivingEntity source, float yOffset, float pow, float uncertainty) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot(Projectile.ProjectileFactory<T> creator, ServerLevel serverLevel, ItemStack itemStack, LivingEntity source, double targetX, double targetY, double targetZ, float pow, float uncertainty) Constructors in net.minecraft.world.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionEvokerFangs(Level level, double x, double y, double z, float rotaionRadians, int warmupDelayTicks, LivingEntity owner) FireworkRocketEntity(Level level, ItemStack sourceItemStack, LivingEntity stuckTo) ShulkerBullet(Level level, LivingEntity owner, Entity target, Direction.Axis invalidStartAxis) -
Uses of LivingEntity in net.minecraft.world.entity.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidAbstractArrow.doKnockback(LivingEntity mob, DamageSource damageSource) protected voidAbstractArrow.doPostHurtEffects(LivingEntity mob) protected voidArrow.doPostHurtEffects(LivingEntity mob) protected voidSpectralArrow.doPostHurtEffects(LivingEntity mob) Constructors in net.minecraft.world.entity.projectile.arrow with parameters of type LivingEntityModifierConstructorDescriptionprotectedAbstractArrow(EntityType<? extends AbstractArrow> type, LivingEntity mob, Level level, ItemStack pickupItemStack, @Nullable ItemStack firedFromWeapon) Arrow(Level level, LivingEntity owner, ItemStack pickupItemStack, @Nullable ItemStack firedFromWeapon) SpectralArrow(Level level, LivingEntity owner, ItemStack pickupItemStack, @Nullable ItemStack firedFromWeapon) ThrownTrident(Level level, LivingEntity owner, ItemStack tridentItem) -
Uses of LivingEntity in net.minecraft.world.entity.projectile.hurtingprojectile
Constructors in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type LivingEntityModifierConstructorDescriptionAbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> type, LivingEntity mob, Vec3 direction, Level level) DragonFireball(Level level, LivingEntity mob, Vec3 direction) Fireball(EntityType<? extends Fireball> type, LivingEntity mob, Vec3 direction, Level level) LargeFireball(Level level, LivingEntity mob, Vec3 direction, int explosionPower) SmallFireball(Level level, LivingEntity mob, Vec3 direction) WitherSkull(Level level, LivingEntity mob, Vec3 direction) -
Uses of LivingEntity in net.minecraft.world.entity.projectile.throwableitemprojectile
Fields in net.minecraft.world.entity.projectile.throwableitemprojectile with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> AbstractThrownPotion.WATER_SENSITIVE_OR_ON_FIREMethods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type LivingEntityModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairAbstractThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity hurtEntity, DamageSource damageSource) Constructors in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type LivingEntityModifierConstructorDescriptionAbstractThrownPotion(EntityType<? extends AbstractThrownPotion> type, Level level, LivingEntity owner, ItemStack itemStack) Snowball(Level level, LivingEntity mob, ItemStack itemStack) ThrowableItemProjectile(EntityType<? extends ThrowableItemProjectile> type, LivingEntity owner, Level level, ItemStack itemStack) ThrownEgg(Level level, LivingEntity mob, ItemStack itemStack) ThrownEnderpearl(Level level, LivingEntity mob, ItemStack itemStack) ThrownExperienceBottle(Level level, LivingEntity mob, ItemStack itemStack) ThrownLingeringPotion(Level level, LivingEntity owner, ItemStack itemStack) ThrownSplashPotion(Level level, LivingEntity owner, ItemStack itemStack) -
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 with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter level, LivingEntity passenger, AABB box) static booleanDismountHelper.canDismountTo(CollisionGetter level, Vec3 location, LivingEntity passenger, Pose dismountPose) -
Uses of LivingEntity in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat that return LivingEntityMethods in net.minecraft.world.entity.vehicle.boat with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractBoat.getDismountLocationForPassenger(LivingEntity passenger) -
Uses of LivingEntity in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractMinecart.getDismountLocationForPassenger(LivingEntity passenger) -
Uses of LivingEntity in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidFoodProperties.onConsume(Level level, LivingEntity user, ItemStack stack, Consumable consumable) -
Uses of LivingEntity in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as LivingEntityModifier and TypeFieldDescriptionprotected final LivingEntityAbstractMountInventoryMenu.mountprivate final LivingEntityArmorSlot.ownerConstructors in net.minecraft.world.inventory with parameters of type LivingEntityModifierConstructorDescriptionprotectedAbstractMountInventoryMenu(int containerId, Inventory playerInventory, Container mountInventory, LivingEntity mount) ArmorSlot(Container inventory, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, @Nullable Identifier emptyIcon) -
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 attacker, Entity entity) Methods in net.minecraft.world.item with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate ItemStackItemStack.applyAfterUseComponentSideEffects(LivingEntity user, ItemStack stackBeforeUsing) private voidItemStack.applyDamage(int newDamage, @Nullable LivingEntity player, Consumer<Item> onBreak) private Vec3MaceItem.calculateImpactPosition(LivingEntity attacker) booleanDebugStickItem.canDestroyBlock(ItemStack itemStack, BlockState state, Level level, BlockPos pos, LivingEntity user) booleanItem.canDestroyBlock(ItemStack itemStack, BlockState state, Level level, BlockPos pos, LivingEntity user) static booleanMaceItem.canSmashAttack(LivingEntity attacker) voidBucketItem.checkExtraContent(@Nullable LivingEntity user, Level level, ItemStack itemStack, BlockPos pos) default voidDispensibleContainerItem.checkExtraContent(@Nullable LivingEntity user, Level level, ItemStack itemStack, BlockPos pos) voidMobBucketItem.checkExtraContent(@Nullable LivingEntity user, Level level, ItemStack itemStack, BlockPos pos) voidItemStack.consume(int amount, @Nullable LivingEntity owner) ItemStack.consumeAndReturn(int amount, @Nullable LivingEntity owner) ArrowItem.createArrow(Level level, ItemStack itemStack, LivingEntity owner, @Nullable ItemStack firedFromWeapon) SpectralArrowItem.createArrow(Level level, ItemStack itemStack, LivingEntity owner, @Nullable ItemStack firedFromWeapon) protected AbstractThrownPotionLingeringPotionItem.createPotion(ServerLevel level, LivingEntity owner, ItemStack itemStack) protected AbstractThrownPotionSplashPotionItem.createPotion(ServerLevel level, LivingEntity owner, ItemStack itemStack) protected abstract AbstractThrownPotionThrowablePotionItem.createPotion(ServerLevel level, LivingEntity owner, ItemStack itemStack) protected ProjectileCrossbowItem.createProjectile(Level level, LivingEntity shooter, ItemStack heldItem, ItemStack projectile, boolean isCrit) protected ProjectileProjectileWeaponItem.createProjectile(Level level, LivingEntity shooter, ItemStack weapon, ItemStack projectile, boolean isCrit) ProjectileWeaponItem.draw(ItemStack weapon, ItemStack projectile, LivingEntity shooter) booleanBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) Deprecated.booleanBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack containerItem) booleanDispensibleContainerItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) Deprecated.booleanSolidBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) Item.finishUsingItem(ItemStack itemStack, Level level, LivingEntity entity) Called when the player finishes using this Item (E.g. finishes eating.).ItemStack.finishUsingItem(Level level, LivingEntity livingEntity) Called when the item in use count reach 0, e.g. item food eaten.SpyglassItem.finishUsingItem(ItemStack itemStack, Level level, LivingEntity entity) static intCrossbowItem.getChargeDuration(ItemStack crossbow, LivingEntity user) ItemStack.getDamageSource(LivingEntity attacker, Supplier<DamageSource> defaultSource) static ItemStackProjectileWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> valid) @Nullable DamageSourceItem.getItemDamageSource(LivingEntity attacker) Deprecated.@Nullable DamageSourceMaceItem.getItemDamageSource(LivingEntity attacker) private static doubleMaceItem.getKnockbackPower(Entity attacker, LivingEntity nearby, Vec3 direction) private static floatCrossbowItem.getPowerForTime(int timeHeld, ItemStack itemStack, LivingEntity holder) private static Vector3fCrossbowItem.getProjectileShotVector(LivingEntity body, Vec3 originalVector, float angle) intBowItem.getUseDuration(ItemStack itemStack, LivingEntity user) intBrushItem.getUseDuration(ItemStack itemStack, LivingEntity user) intBundleItem.getUseDuration(ItemStack itemStack, LivingEntity entity) intCrossbowItem.getUseDuration(ItemStack itemStack, LivingEntity user) intEnderEyeItem.getUseDuration(ItemStack itemStack, LivingEntity user) intInstrumentItem.getUseDuration(ItemStack itemStack, LivingEntity user) intItem.getUseDuration(ItemStack itemStack, LivingEntity user) intItemStack.getUseDuration(LivingEntity user) intSpyglassItem.getUseDuration(ItemStack itemStack, LivingEntity user) intTridentItem.getUseDuration(ItemStack itemStack, LivingEntity user) voidItemStack.hurtAndBreak(int amount, ServerLevel level, @Nullable LivingEntity player, Consumer<Item> onBreak) voidItemStack.hurtAndBreak(int amount, LivingEntity owner, EquipmentSlot slot) voidItemStack.hurtAndBreak(int amount, LivingEntity owner, InteractionHand hand) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike newItem, LivingEntity owner, EquipmentSlot slot) voidItem.hurtEnemy(ItemStack itemStack, LivingEntity mob, LivingEntity attacker) booleanItemStack.hurtEnemy(LivingEntity mob, LivingEntity attacker) voidMaceItem.hurtEnemy(ItemStack itemStack, LivingEntity mob, LivingEntity attacker) DyeItem.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.Item.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity target, InteractionHand hand) NameTagItem.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(ItemStack, Player, LivingEntity, InteractionHand)to call into IShearable instead of relying onMob.mobInteract(Player, InteractionHand)booleanArrowItem.isInfinite(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.booleanItem.mineBlock(ItemStack itemStack, Level level, BlockState state, BlockPos pos, LivingEntity owner) Called when aBlockis destroyed using this Item.booleanShearsItem.mineBlock(ItemStack itemStack, Level level, BlockState state, BlockPos pos, LivingEntity miner) Called when aBlockis destroyed using this Item.voidBrushItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack itemStack, int ticksRemaining) voidBundleItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack itemStack, int ticksRemaining) voidCrossbowItem.onUseTick(Level level, LivingEntity entity, ItemStack itemStack, int ticksRemaining) Called as the item is being used by an entity.voidItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack itemStack, int ticksRemaining) Called as the item is being used by an entity.voidItemStack.onUseTick(Level level, LivingEntity livingEntity, int ticksRemaining) Called as the stack is being used by an entity.voidCrossbowItem.performShooting(Level level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, float power, float uncertainty, @Nullable LivingEntity targetOverride) protected voidBucketItem.playEmptySound(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos) protected voidMobBucketItem.playEmptySound(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos) voidItem.postHurtEnemy(ItemStack itemStack, LivingEntity mob, LivingEntity attacker) voidItemStack.postHurtEnemy(LivingEntity mob, LivingEntity attacker) voidMaceItem.postHurtEnemy(ItemStack itemStack, LivingEntity mob, LivingEntity attacker) private intItemStack.processDurabilityChange(int amount, ServerLevel level, @Nullable LivingEntity player) booleanBowItem.releaseUsing(ItemStack itemStack, Level level, LivingEntity entity, int remainingTime) booleanCrossbowItem.releaseUsing(ItemStack itemStack, Level level, LivingEntity entity, int remainingTime) booleanItem.releaseUsing(ItemStack itemStack, Level level, LivingEntity entity, int remainingTime) voidItemStack.releaseUsing(Level level, LivingEntity entity, int remainingTime) Called when the player releases the use item button.booleanSpyglassItem.releaseUsing(ItemStack itemStack, Level level, LivingEntity entity, int remainingTime) booleanTridentItem.releaseUsing(ItemStack itemStack, Level level, LivingEntity entity, int remainingTime) protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectiles, float power, float uncertainty, boolean isCrit, @Nullable LivingEntity targetOverride) protected voidBowItem.shootProjectile(LivingEntity shooter, Projectile projectileEntity, int index, float power, float uncertainty, float angle, @Nullable LivingEntity targetOverrride) protected voidCrossbowItem.shootProjectile(LivingEntity livingEntity, Projectile projectileEntity, int index, float power, float uncertainty, float angle, @Nullable LivingEntity targetOverride) protected abstract voidProjectileWeaponItem.shootProjectile(LivingEntity shooter, Projectile projectileEntity, int index, float power, float uncertainty, float angle, @Nullable LivingEntity targetOverrride) private static InteractionResultSpawnEggItem.spawnMob(@Nullable LivingEntity user, ItemStack itemStack, Level level, BlockPos spawnPos, boolean tryMoveDown, boolean movedUp) private voidSpyglassItem.stopUsing(LivingEntity entity) private static booleanCrossbowItem.tryLoadProjectiles(LivingEntity shooter, ItemStack heldItem) protected static ItemStackProjectileWeaponItem.useAmmo(ItemStack weapon, ItemStack projectile, LivingEntity holder, boolean forceInfinite) -
Uses of LivingEntity in net.minecraft.world.item.alchemy
Methods in net.minecraft.world.item.alchemy with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPotionContents.applyToLivingEntity(LivingEntity entity, float durationScale) voidPotionContents.onConsume(Level level, LivingEntity user, ItemStack stack, Consumable consumable) -
Uses of LivingEntity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidUseCooldown.apply(ItemStack stack, LivingEntity user) voidDeathProtection.applyEffects(ItemStack itemStack, LivingEntity entity) voidPiercingWeapon.attack(LivingEntity attacker, EquipmentSlot hand) booleanConsumable.canConsume(LivingEntity user, ItemStack stack) voidKineticWeapon.damageEntities(ItemStack stack, int ticksRemaining, LivingEntity livingEntity, EquipmentSlot equipmentSlot) static AttackRangeAttackRange.defaultFor(LivingEntity livingEntity) voidBlocksAttacks.disable(ServerLevel level, LivingEntity user, float baseSeconds, ItemStack blockingWith) voidConsumable.emitParticlesAndSounds(RandomSource random, LivingEntity user, ItemStack itemStack, int particleCount) voidBlocksAttacks.hurtBlockingItem(Level level, ItemStack item, LivingEntity user, InteractionHand hand, float damage) voidBlocksAttacks.hurtBlockingItem(Level level, ItemStack item, LivingEntity user, InteractionHand hand, float damage, int fixedDamage) private booleanAttackRange.isInRange(LivingEntity attacker, ToDoubleFunction<Vec3> distanceFunction, double extraBuffer) booleanAttackRange.isInRange(LivingEntity attacker, AABB boundingBox, double extraBuffer) booleanAttackRange.isInRange(LivingEntity attacker, Vec3 location) voidBlocksAttacks.onBlocked(ServerLevel level, LivingEntity user) Consumable.onConsume(Level level, LivingEntity user, ItemStack stack) voidConsumableListener.onConsume(Level level, LivingEntity user, ItemStack stack, Consumable consumable) voidOminousBottleAmplifier.onConsume(Level level, LivingEntity user, ItemStack stack, Consumable consumable) voidSuspiciousStewEffects.onConsume(Level level, LivingEntity user, ItemStack stack, Consumable consumable) Consumable.startConsuming(LivingEntity user, ItemStack stack, InteractionHand hand) -
Uses of LivingEntity in net.minecraft.world.item.consume_effects
Methods in net.minecraft.world.item.consume_effects with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanApplyStatusEffectsConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) booleanClearAllStatusEffectsConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) booleanConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) booleanPlaySoundConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) booleanRemoveStatusEffectsConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) booleanTeleportRandomlyConsumeEffect.apply(Level level, ItemStack stack, LivingEntity user) -
Uses of LivingEntity in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as LivingEntityModifier and TypeFieldDescriptionprivate final @Nullable LivingEntityEnchantedItemInUse.ownerThe field for theownerrecord component.Methods in net.minecraft.world.item.enchantment that return LivingEntityModifier and TypeMethodDescription@Nullable LivingEntityEnchantedItemInUse.owner()Returns the value of theownerrecord component.Methods in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.doPostPiercingAttackEffects(ServerLevel serverLevel, LivingEntity user) static floatEnchantmentHelper.getDamageProtection(ServerLevel serverLevel, LivingEntity victim, DamageSource source) static intEnchantmentHelper.getEnchantmentLevel(Holder<Enchantment> enchantment, LivingEntity entity) static Optional<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith(DataComponentType<?> componentType, LivingEntity source, Predicate<ItemStack> predicate) Enchantment.getSlotItems(LivingEntity entity) Creates a new map containing all items equipped by an entity in.invalid reference
slots that the enchantment cares about
static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack trident, LivingEntity holder) static booleanEnchantmentHelper.isImmuneToDamage(ServerLevel serverLevel, LivingEntity victim, DamageSource source) static floatEnchantmentHelper.modifyCrossbowChargingTime(ItemStack crossbow, LivingEntity holder, float time) static voidEnchantmentHelper.onHitBlock(ServerLevel serverLevel, ItemStack weapon, @Nullable LivingEntity owner, Entity entity, @Nullable EquipmentSlot slot, Vec3 hitLocation, BlockState hitBlock, Consumer<Item> onBreak) static floatEnchantmentHelper.processEquipmentDropChance(ServerLevel serverLevel, LivingEntity entity, DamageSource killingBlow, float chance) static voidEnchantmentHelper.runIterationOnEquipment(LivingEntity owner, EnchantmentHelper.EnchantmentInSlotVisitor method) static voidEnchantmentHelper.runIterationOnItem(ItemStack piece, EquipmentSlot slot, LivingEntity owner, EnchantmentHelper.EnchantmentInSlotVisitor method) voidEnchantment.runLocationChangedEffects(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, LivingEntity entity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel serverLevel, LivingEntity entity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel serverLevel, ItemStack stack, LivingEntity entity, EquipmentSlot slot) voidEnchantment.stopLocationBasedEffects(int enchantmentLevel, EnchantedItemInUse item, LivingEntity entity) static voidEnchantmentHelper.stopLocationBasedEffects(LivingEntity entity) static voidEnchantmentHelper.stopLocationBasedEffects(ItemStack stack, LivingEntity entity, EquipmentSlot slot) static voidEnchantmentHelper.tickEffects(ServerLevel serverLevel, LivingEntity entity) Constructors in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantedItemInUse(ItemStack itemStack, @Nullable EquipmentSlot inSlot, @Nullable LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUserecord class.EnchantedItemInUse(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner) -
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 player, LivingEntity target, ItemStack itemStack) -
Uses of LivingEntity in net.minecraft.world.level
Methods in net.minecraft.world.level that return LivingEntityModifier and TypeMethodDescription@Nullable LivingEntityExplosion.getIndirectSourceEntity()static @Nullable LivingEntityExplosion.getIndirectSourceEntity(@Nullable Entity source) @Nullable LivingEntityServerExplosion.getIndirectSourceEntity() -
Uses of LivingEntity in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate Optional<LivingEntity> LiquidBlock.ifMobIsColliding(CollisionContext context) Methods in net.minecraft.world.level.block with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanBarrierBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanKelpBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanKelpPlantBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanLiquidBlockContainer.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanSeagrassBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) default booleanSimpleWaterloggedBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanSlabBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanTallSeagrassBlock.canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type) booleanTrapDoorBlock.isLadder(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity) booleanTntBlock.onCaughtFire(BlockState state, Level world, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) BarrierBlock.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) BubbleColumnBlock.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) BucketPickup.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) LiquidBlock.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) PowderSnowBlock.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) default ItemStackSimpleWaterloggedBlock.pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state) private static voidLecternBlock.placeBook(@Nullable LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack book) private static booleanTntBlock.prime(Level level, BlockPos pos, @Nullable LivingEntity source) Deprecated.voidBedBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) Called by BlockItem after this block has been placed.voidCommandBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidCrafterBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidDiodeBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidDoorBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidDoublePlantBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidDriedGhastBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidJukeboxBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidMossyCarpetBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidPitcherCropBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidSmallDripleafBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidStructureBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidTripWireHookBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidWitherSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) voidWitherWallSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) Called by ItemBlocks after a block is set in the world, to allow post-place logicstatic booleanLecternBlock.tryPlaceBook(@Nullable LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack item) -
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 @Nullable EntityReference<LivingEntity> ConduitBlockEntity.destroyTargetprivate List<LivingEntity> BellBlockEntity.nearbyEntitiesMethods in net.minecraft.world.level.block.entity that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static @Nullable EntityReference<LivingEntity> ConduitBlockEntity.selectNewTarget(ServerLevel level, BlockPos pos) private static @Nullable EntityReference<LivingEntity> ConduitBlockEntity.updateDestroyTarget(@Nullable EntityReference<LivingEntity> target, ServerLevel level, BlockPos pos, boolean isActive) Methods in net.minecraft.world.level.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanBrushableBlockEntity.brush(long gameTime, ServerLevel level, LivingEntity user, Direction direction, ItemStack brush) private voidBrushableBlockEntity.brushingCompleted(ServerLevel level, LivingEntity user, ItemStack brush) voidStructureBlockEntity.createdBy(LivingEntity creator) voidContainerOpenersCounter.decrementOpeners(LivingEntity entity, Level level, BlockPos pos, BlockState blockState) private voidBrushableBlockEntity.dropContent(ServerLevel level, LivingEntity user, ItemStack brush) private static voidBellBlockEntity.glow(LivingEntity raider) voidContainerOpenersCounter.incrementOpeners(LivingEntity entity, Level level, BlockPos pos, BlockState blockState, double maxInteractionRange) private static booleanBellBlockEntity.isRaiderWithinRange(BlockPos blockPos, LivingEntity entity) booleanCampfireBlockEntity.placeFood(ServerLevel serverLevel, @Nullable LivingEntity sourceEntity, ItemStack placeItem) private voidSculkCatalystBlockEntity.CatalystListener.tryAwardItSpreadsAdvancement(Level level, LivingEntity mob) private voidBrushableBlockEntity.unpackLootTable(ServerLevel level, LivingEntity user, ItemInstance brush) Method parameters in net.minecraft.world.level.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanBellBlockEntity.areRaidersNearby(BlockPos bellPos, List<LivingEntity> nearbyEntities) private static voidBellBlockEntity.makeRaidersGlow(Level level, BlockPos blockPos, List<LivingEntity> nearbyEntities) voidBellBlockEntity.ResonationEndAction.run(Level level, BlockPos pos, List<LivingEntity> nearbyEntities) private static voidBellBlockEntity.showBellParticles(Level level, BlockPos bellPos, List<LivingEntity> nearbyEntities) private static @Nullable EntityReference<LivingEntity> ConduitBlockEntity.updateDestroyTarget(@Nullable EntityReference<LivingEntity> target, ServerLevel level, BlockPos pos, boolean isActive) -
Uses of LivingEntity in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPistonBaseBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) -
Uses of LivingEntity in net.minecraft.world.waypoints
Fields in net.minecraft.world.waypoints declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntityWaypointTransmitter.EntityAzimuthConnection.sourceprivate final LivingEntityWaypointTransmitter.EntityBlockConnection.sourceprivate final LivingEntityWaypointTransmitter.EntityChunkConnection.sourceMethods in net.minecraft.world.waypoints with parameters of type LivingEntityModifier and TypeMethodDescriptionWaypoint.Icon.cloneAndAssignStyle(LivingEntity livingEntity) static booleanWaypointTransmitter.doesSourceIgnoreReceiver(LivingEntity source, ServerPlayer receiver) static booleanWaypointTransmitter.isReallyFar(LivingEntity source, ServerPlayer receiver) Constructors in net.minecraft.world.waypoints with parameters of type LivingEntityModifierConstructorDescriptionEntityAzimuthConnection(LivingEntity source, Waypoint.Icon icon, ServerPlayer receiver) EntityBlockConnection(LivingEntity source, Waypoint.Icon icon, ServerPlayer receiver) EntityChunkConnection(LivingEntity source, Waypoint.Icon icon, ServerPlayer receiver) -
Uses of LivingEntity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic booleanClientHooks.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 TypeMethodDescriptionintFluidContentsTint.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 TypeClassDescriptionclassRenderLivingEvent<T extends LivingEntity, S extends LivingEntityRenderState, M extends EntityModel<? super S>>Fired when aLivingEntityis rendered.static classRenderLivingEvent.Post<T extends LivingEntity, S extends LivingEntityRenderState, M extends EntityModel<? super S>>Fired after an entity is rendered, if the correspondingRenderLivingEvent.Postis not cancelled.static classRenderLivingEvent.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 @Nullable HumanoidModel.ArmPoseIClientItemExtensions.getArmPose(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using themethod.invalid reference
net.minecraft.client.model.HumanoidModel.ArmPose#create(String, boolean, IArmPoseTransformer)default voidIClientItemExtensions.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.common
Fields in net.neoforged.neoforge.common with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends LivingEntity>, AttributeSupplier> CommonHooks.FORGE_ATTRIBUTESMethods 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 booleanCommonHooks.canEntityDestroy(ServerLevel level, BlockPos pos, LivingEntity entity) static booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect, @Nullable Entity source) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable.static doubleCommonHooks.getEntityVisibilityMultiplier(LivingEntity entity, Entity lookingEntity, double originalMultiplier) static ItemStackCommonHooks.getProjectile(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent.CommonHooks.isLivingOnLadder(BlockState state, Level level, BlockPos pos, LivingEntity entity) static voidCommonHooks.onArmorHurt(DamageSource source, EquipmentSlot[] slots, float damage, LivingEntity armoredEntity) This is invoked inLivingEntity.doHurtEquipment(DamageSource, float, EquipmentSlot...)and replaces the existing item hurt and break logic with an event-sensitive version.static LivingShieldBlockEventCommonHooks.onDamageBlock(LivingEntity blocker, DamageContainer container, float blockedDamage, boolean originalBlocked) Creates, posts, and returns aLivingShieldBlockEvent.static booleanCommonHooks.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 voidCommonHooks.onLivingBreathe(LivingEntity entity, int consumeAirAmount, int refillAirAmount) Handles living entities being underwater.static LivingChangeTargetEventCommonHooks.onLivingChangeTarget(LivingEntity entity, @Nullable LivingEntity originalTarget, LivingChangeTargetEvent.ILivingTargetType targetType) static voidCommonHooks.onLivingDamagePost(LivingEntity entity, DamageContainer container) Creates and posts aLivingDamageEvent.Post.static floatCommonHooks.onLivingDamagePre(LivingEntity entity, DamageContainer container) Creates and posts anLivingDamageEvent.Pre.static booleanCommonHooks.onLivingDeath(LivingEntity entity, DamageSource src) static booleanCommonHooks.onLivingDrops(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) static LivingFallEventCommonHooks.onLivingFall(LivingEntity entity, double distance, float damageMultiplier) static voidCommonHooks.onLivingJump(LivingEntity entity) static LivingKnockBackEventCommonHooks.onLivingKnockBack(LivingEntity target, float strength, double ratioX, double ratioZ) static LivingSwapItemsEvent.HandsCommonHooks.onLivingSwapHandItems(LivingEntity livingEntity) static booleanCommonHooks.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, @Nullable 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 booleanIBlockExtension.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 booleanIBlockStateExtension.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 booleanIItemExtension.canEquip(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIItemStackExtension.canEquip(EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIItemExtension.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 booleanIItemStackExtension.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 booleanIDispensibleContainerItemExtension.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 booleanIBlockExtension.isBed(BlockState state, BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlockchecks.default booleanIBlockStateExtension.isBed(BlockGetter level, BlockPos pos, LivingEntity sleeper) Determines if this block is classified as a bed, replacinginstanceof BedBlockchecks.default booleanIItemExtension.isGazeDisguise(ItemStack stack, Player player, @Nullable LivingEntity entity) Whether thisItemcan be used to hide player's gaze from Endermen and Creakings.default booleanIItemStackExtension.isGazeDisguise(Player player, @Nullable LivingEntity entity) Whether thisItemcan be used to hide player's gaze from Endermen and Creakings.default booleanIBlockExtension.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 booleanIBlockStateExtension.isLadder(LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity can use this block to 'climb' like a ladder.default booleanIBlockExtension.isScaffolding(BlockState state, LevelReader level, BlockPos pos, LivingEntity entity) Checks if a player or entity handles movement on this block like scaffolding.default booleanIBlockStateExtension.isScaffolding(LivingEntity entity) Checks if a player or entity handles movement on this block like scaffolding.default booleanIItemExtension.makesPiglinsNeutral(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default booleanIItemStackExtension.makesPiglinsNeutral(LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default booleanIFluidExtension.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanIFluidStateExtension.move(LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanIBlockExtension.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 booleanIBlockStateExtension.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 booleanIItemExtension.onEntitySwing(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default booleanIItemStackExtension.onEntitySwing(LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default voidIItemExtension.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 voidIItemStackExtension.onStopUsing(LivingEntity entity, int count) Called when an entity stops using an item item for any reason.default voidIBlockExtension.playFallSound(BlockState state, Level level, BlockPos pos, LivingEntity entity) Allows a block to override the standard fall sound played inLivingEntity.playBlockFallSound().default voidIBlockStateExtension.playFallSound(Level level, BlockPos pos, LivingEntity entity) Allows a block to override the standard fall sound played inLivingEntity.playBlockFallSound().default voidIBlockExtension.setBedOccupied(BlockState state, Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) Called when a user either starts or stops sleeping in the bed.default voidIBlockStateExtension.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 TypeClassDescriptionclassA 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 booleanEventHooks.canEntityContinueSleeping(LivingEntity sleeper, @Nullable Player.BedSleepingProblem problem) Checks if a sleeping entity can continue sleeping with the given sleeping problem.static booleanEventHooks.canLivingConvert(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) static intEventHooks.getExperienceDrop(LivingEntity entity, @Nullable Player attackingPlayer, int originalExperience) static booleanEventHooks.onEffectRemoved(LivingEntity entity, Holder<MobEffect> effect) static booleanEventHooks.onEffectRemoved(LivingEntity entity, MobEffectInstance effectInstance) EventHooks.onEnderTeleport(LivingEntity entity, double targetX, double targetY, double targetZ) static booleanEventHooks.onEntityDestroyBlock(LivingEntity entity, BlockPos pos, BlockState state) EventHooks.onItemConsumptionTeleport(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) static ItemStackEventHooks.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) static intEventHooks.onItemUseStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) static intEventHooks.onItemUseTick(LivingEntity entity, ItemStack item, int duration) static voidEventHooks.onLivingConvert(LivingEntity entity, LivingEntity outcome) static floatEventHooks.onLivingHeal(LivingEntity entity, float amount) static booleanEventHooks.onUseItemStop(LivingEntity entity, ItemStack item, int duration) Method parameters in net.neoforged.neoforge.event with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanEventHooks.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 LivingEntityEntityTeleportEvent.EnderEntity.entityLivingprivate final LivingEntityEntityTeleportEvent.ItemConsumption.entityLivingFields in net.neoforged.neoforge.event.entity with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> EntityAttributeModificationEvent.entityAttributesprivate final List<EntityType<? extends LivingEntity>> EntityAttributeModificationEvent.entityTypesprivate final Map<EntityType<? extends LivingEntity>, AttributeSupplier> EntityAttributeCreationEvent.mapMethods 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 TypeMethodDescriptionvoidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) voidEntityAttributeModificationEvent.add(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute, double value) booleanEntityAttributeModificationEvent.has(EntityType<? extends LivingEntity> entityType, Holder<Attribute> attribute) voidEntityAttributeCreationEvent.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 LivingEntityLivingEvent.livingEntityprivate @Nullable LivingEntityLivingChangeTargetEvent.newAboutToBeSetTargetprivate final @Nullable LivingEntityLivingChangeTargetEvent.originalAboutToBeSetTargetprivate final LivingEntityLivingConversionEvent.Post.outcomeFields in net.neoforged.neoforge.event.entity.living with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final EntityType<? extends LivingEntity> LivingConversionEvent.Pre.outcomeMethods in net.neoforged.neoforge.event.entity.living that return LivingEntityModifier and TypeMethodDescriptionLivingEvent.getEntity()@Nullable LivingEntityLivingChangeTargetEvent.getNewAboutToBeSetTarget()Returns the new target that this entity will begin to track..@Nullable LivingEntityLivingChangeTargetEvent.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 TypeMethodDescriptionvoidLivingChangeTargetEvent.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, DamageSource source) 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) privateLivingDamageEvent(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.privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, int duration) privateLivingEntityUseItemEvent(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) protectedMobEffectEvent(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, 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 TypeMethodDescriptionbooleanFluidType.canDrownIn(LivingEntity entity) Returns whether the entity can drown in the fluid.@Nullable SoundEventFluidType.getSound(@Nullable LivingEntity entity, BlockGetter getter, BlockPos pos, SoundAction action) Returns a sound to play when a certain action is performed at a position.booleanFluidType.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.voidFluidType.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 LivingEntityEntityEquipmentInvWrapper.entityDeprecated, for removal: This API element is subject to removal in a future version.The entity.Constructors in net.neoforged.neoforge.items.wrapper with parameters of type LivingEntityModifierConstructorDescriptionEntityArmorInvWrapper(LivingEntity entity) Deprecated, for removal: This API element is subject to removal in a future version.EntityEquipmentInvWrapper(LivingEntity entity, EquipmentSlot.Type slotType) Deprecated, for removal: This API element is subject to removal in a future version.EntityHandsInvWrapper(LivingEntity entity) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of LivingEntity in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item declared as LivingEntityFields in net.neoforged.neoforge.transfer.item with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map<LivingEntity, LivingEntityEquipmentWrapper> LivingEntityEquipmentWrapper.wrappersSeeVanillaContainerWrapper.wrapperswhich is similar.Methods in net.neoforged.neoforge.transfer.item with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityEquipmentWrapper.EquipmentTypeWrapperLivingEntityEquipmentWrapper.internalOf(LivingEntity entity, EquipmentSlot.Type equipmentType) static ResourceHandler<ItemResource> LivingEntityEquipmentWrapper.of(LivingEntity entity, EquipmentSlot equipmentSlot) Gets a wrapper for a single equipment slot.static ResourceHandler<ItemResource> LivingEntityEquipmentWrapper.of(LivingEntity entity, EquipmentSlot.Type equipmentType) Gets a wrapper for all equipment slots of a given type.Constructors in net.neoforged.neoforge.transfer.item with parameters of type LivingEntity
LivingEntity.PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGETwith target info instead