Uses of Class
net.minecraft.world.entity.LivingEntity
Packages that use LivingEntity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of LivingEntity in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.client.gui
Methods in net.minecraft.client.gui that return LivingEntityMethods in net.minecraft.client.gui with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate intGui.getVehicleMaxHearts(LivingEntity vehicle) Retrieves the maximum number of hearts representing the vehicle's health for the given mount entity.voidGuiGraphics.renderItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) Renders an item stack for a living entity at the specified coordinates with a random seed.private voidGuiGraphics.renderItem(LivingEntity entity, Level level, ItemStack stack, 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.private voidGuiGraphics.renderItem(LivingEntity entity, Level level, ItemStack stack, int x, int y, int seed, int guiOffset) Renders an item stack for a living entity in a specific level at the specified coordinates with a random seed and a custom GUI offset. -
Uses of LivingEntity in net.minecraft.client.gui.screens.inventory
Methods in net.minecraft.client.gui.screens.inventory with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidInventoryScreen.renderEntityInInventory(GuiGraphics guiGraphics, float x, float y, float scale, org.joml.Vector3f translate, org.joml.Quaternionf pose, org.joml.Quaternionf cameraOrientation, LivingEntity entity) static voidInventoryScreen.renderEntityInInventoryFollowsAngle(GuiGraphics p_282802_, int p_275688_, int p_275245_, int p_275535_, int p_294406_, int p_294663_, float p_275604_, float angleXComponent, float angleYComponent, LivingEntity p_275689_) static voidInventoryScreen.renderEntityInInventoryFollowsMouse(GuiGraphics guiGraphics, int x1, int y1, int x2, int y2, int scale, float yOffset, float mouseX, float mouseY, LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.model
Classes in net.minecraft.client.model with type parameters of type LivingEntityModifier and TypeClassDescriptionclassElytraModel<T extends LivingEntity>classEndermanModel<T extends LivingEntity>classHumanoidArmorModel<T extends LivingEntity>classHumanoidModel<T extends LivingEntity>classPlayerModel<T extends LivingEntity>Methods in net.minecraft.client.model with type parameters of type LivingEntityModifier and TypeMethodDescription<T extends LivingEntity>
voidHumanoidModel.ArmPose.applyTransform(HumanoidModel<T> model, T entity, HumanoidArm arm) Methods in net.minecraft.client.model with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidAnimationUtils.animateCrossbowCharge(ModelPart rightArm, ModelPart leftArm, LivingEntity livingEntity, boolean rightHanded) -
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 floatLightTexture.calculateDarknessScale(LivingEntity entity, float gamma, float partialTick) floatFogRenderer.DarknessFogFunction.getModifiedVoidDarkness(LivingEntity p_234189_, MobEffectInstance p_234190_, float p_234191_, float p_234192_) default floatFogRenderer.MobEffectFogFunction.getModifiedVoidDarkness(LivingEntity entity, MobEffectInstance effectInstance, float p_234210_, float partialTick) static floatGameRenderer.getNightVisionScale(LivingEntity livingEntity, float nanoTime) default booleanFogRenderer.MobEffectFogFunction.isEnabled(LivingEntity entity, float p_234207_) voidItemInHandRenderer.renderItem(LivingEntity entity, ItemStack itemStack, ItemDisplayContext displayContext, boolean leftHand, PoseStack poseStack, MultiBufferSource buffer, int seed) voidFogRenderer.BlindnessFogFunction.setupFog(FogRenderer.FogData p_234181_, LivingEntity p_234182_, MobEffectInstance p_234183_, float p_234184_, float p_234185_) voidFogRenderer.DarknessFogFunction.setupFog(FogRenderer.FogData p_234194_, LivingEntity p_234195_, MobEffectInstance p_234196_, float p_234197_, float p_234198_) voidFogRenderer.MobEffectFogFunction.setupFog(FogRenderer.FogData fogData, LivingEntity entity, MobEffectInstance effectInstance, float farPlaneDistance, float p_234216_) -
Uses of LivingEntity in net.minecraft.client.renderer.block.model
Methods in net.minecraft.client.renderer.block.model with parameters of type LivingEntityModifier and TypeMethodDescriptionItemOverrides.resolve(BakedModel model, ItemStack stack, ClientLevel level, LivingEntity entity, int seed) -
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,M extends EntityModel<T>> Methods in net.minecraft.client.renderer.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionItemRenderer.getModel(ItemStack stack, Level level, LivingEntity entity, int seed) static intLivingEntityRenderer.getOverlayCoords(LivingEntity livingEntity, float u) private Vec3GuardianRenderer.getPosition(LivingEntity livingEntity, double yOffset, float partialTick) static booleanLivingEntityRenderer.isEntityUpsideDown(LivingEntity entity) voidItemRenderer.renderStatic(LivingEntity entity, ItemStack itemStack, ItemDisplayContext diplayContext, boolean leftHand, PoseStack poseStack, MultiBufferSource bufferSource, Level level, int combinedLight, int combinedOverlay, int seed) -
Uses of LivingEntity in net.minecraft.client.renderer.entity.layers
Classes in net.minecraft.client.renderer.entity.layers with type parameters of type LivingEntityModifier and TypeClassDescriptionclassArrowLayer<T extends LivingEntity,M extends PlayerModel<T>> classBeeStingerLayer<T extends LivingEntity,M extends PlayerModel<T>> classCrossedArmsItemLayer<T extends LivingEntity,M extends EntityModel<T>> classCustomHeadLayer<T extends LivingEntity,M extends EntityModel<T> & HeadedModel> classElytraLayer<T extends LivingEntity,M extends EntityModel<T>> classEnderEyesLayer<T extends LivingEntity>classHumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>, A extends HumanoidModel<T>> classItemInHandLayer<T extends LivingEntity,M extends EntityModel<T> & ArmedModel> classSlimeOuterLayer<T extends LivingEntity>classSpinAttackEffectLayer<T extends LivingEntity>classStuckInBodyLayer<T extends LivingEntity,M extends PlayerModel<T>> classVillagerProfessionLayer<T extends LivingEntity & VillagerDataHolder,M extends EntityModel<T> & VillagerHeadModel> classWitchItemLayer<T extends LivingEntity>Methods in net.minecraft.client.renderer.entity.layers with type parameters of type LivingEntityModifier and TypeMethodDescriptionprotected static <T extends LivingEntity>
voidRenderLayer.coloredCutoutModelCopyLayerRender(EntityModel<T> modelParent, EntityModel<T> model, ResourceLocation textureLocation, PoseStack poseStack, MultiBufferSource buffer, int packedLight, T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float partialTick, int color) protected static <T extends LivingEntity>
voidRenderLayer.renderColoredCutoutModel(EntityModel<T> model, ResourceLocation textureLocation, PoseStack poseStack, MultiBufferSource buffer, int packedLight, T entity, int color) Methods in net.minecraft.client.renderer.entity.layers with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidItemInHandLayer.renderArmWithItem(LivingEntity livingEntity, ItemStack itemStack, ItemDisplayContext displayContext, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int packedLight) protected voidPlayerItemInHandLayer.renderArmWithItem(LivingEntity livingEntity, ItemStack itemStack, ItemDisplayContext displayContext, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int packedLight) private voidPlayerItemInHandLayer.renderArmWithSpyglass(LivingEntity entity, ItemStack stack, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int combinedLight) -
Uses of LivingEntity in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault floatClampedItemPropertyFunction.call(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) Deprecated.floatItemPropertyFunction.call(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) Deprecated.floatClampedItemPropertyFunction.unclampedCall(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) floatCompassItemPropertyFunction.unclampedCall(ItemStack stack, ClientLevel level, LivingEntity p_entity, int seed) -
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> effect, int amplifier) GameTestHelper.makeAboutToDrown(LivingEntity entity) GameTestHelper.withLowHealth(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugPackets.getMemoryDescriptions(LivingEntity entity, long gameTime) static voidDebugPackets.sendEntityBrain(LivingEntity livingEntity) Constructors in net.minecraft.network.protocol.game with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityAttributeCommand.getEntityWithAttribute(Entity entity, Holder<Attribute> attribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity target) -
Uses of LivingEntity in net.minecraft.server.level
Subclasses of LivingEntity in net.minecraft.server.level -
Uses of LivingEntity in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPlayerList.sendActiveEffects(LivingEntity entity, ServerGamePacketListenerImpl connection) -
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 FallLocationFallLocation.getCurrentFallLocation(LivingEntity entity) static floatCombatRules.getDamageAfterAbsorb(LivingEntity entity, float damage, DamageSource damageSource, float armorValue, float armorToughness) DamageSource.getLocalizedDeathMessage(LivingEntity livingEntity) Gets the death message that is displayed when the player diesDamageSources.mobAttack(LivingEntity mob) DamageSources.mobProjectile(Entity projectile, LivingEntity thrower) DamageSources.noAggroMobAttack(LivingEntity mob) DamageSources.spit(Entity spit, LivingEntity thrower) DamageSources.sting(LivingEntity entity) DamageSources.windCharge(Entity windCharge, LivingEntity thrower) 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(LivingEntity p_294484_, int p_294672_) booleanBadOmenMobEffect.applyEffectTick(LivingEntity p_296327_, int p_294357_) booleanHealOrHarmMobEffect.applyEffectTick(LivingEntity livingEntity, int amplifier) booleanHungerMobEffect.applyEffectTick(LivingEntity p_296407_, int p_296356_) booleanMobEffect.applyEffectTick(LivingEntity livingEntity, int amplifier) booleanPoisonMobEffect.applyEffectTick(LivingEntity p_296276_, int p_296233_) booleanRaidOmenMobEffect.applyEffectTick(LivingEntity p_338728_, int p_338249_) booleanRegenerationMobEffect.applyEffectTick(LivingEntity p_295924_, int p_296417_) booleanSaturationMobEffect.applyEffectTick(LivingEntity p_295892_, int p_296026_) booleanWitherMobEffect.applyEffectTick(LivingEntity p_296279_, int p_294798_) voidHealOrHarmMobEffect.applyInstantenousEffect(Entity source, Entity indirectSource, LivingEntity livingEntity, int amplifier, double health) voidMobEffect.applyInstantenousEffect(Entity source, Entity indirectSource, LivingEntity livingEntity, int amplifier, double health) static OozingMobEffect.NearbySlimesOozingMobEffect.NearbySlimes.closeTo(LivingEntity entity) floatMobEffectInstance.getBlendFactor(LivingEntity entity, float delta) static intMobEffectUtil.getDigSpeedAmplification(LivingEntity entity) floatMobEffectInstance.BlendState.getFactor(LivingEntity entity, float delta) static booleanMobEffectUtil.hasDigSpeed(LivingEntity entity) static booleanMobEffectUtil.hasWaterBreathing(LivingEntity entity) voidMobEffect.onEffectAdded(LivingEntity livingEntity, int amplifier) voidMobEffectInstance.onEffectAdded(LivingEntity livingEntity) voidAbsorptionMobEffect.onEffectStarted(LivingEntity p_294820_, int p_295222_) voidMobEffect.onEffectStarted(LivingEntity livingEntity, int amplifier) voidMobEffectInstance.onEffectStarted(LivingEntity entity) voidInfestedMobEffect.onMobHurt(LivingEntity livingEntity, int amplifier, DamageSource damageSource, float amount) voidMobEffect.onMobHurt(LivingEntity livingEntity, int amplifier, DamageSource damageSource, float amount) voidMobEffectInstance.onMobHurt(LivingEntity livingEntity, DamageSource damageSource, float amount) voidMobEffect.onMobRemoved(LivingEntity livingEntity, int amplifier, Entity.RemovalReason reason) voidMobEffectInstance.onMobRemoved(LivingEntity livingEntity, Entity.RemovalReason reason) voidOozingMobEffect.onMobRemoved(LivingEntity livingEntity, int amplifier, Entity.RemovalReason reason) voidWeavingMobEffect.onMobRemoved(LivingEntity livingEntity, int amplifier, Entity.RemovalReason reason) voidWindChargedMobEffect.onMobRemoved(LivingEntity p_338439_, int p_338875_, Entity.RemovalReason p_338258_) private voidInfestedMobEffect.spawnSilverfish(Level level, LivingEntity entity, double x, double y, double z) booleanMobEffectInstance.tick(LivingEntity entity, Runnable onExpirationRunnable) -
Uses of LivingEntity in net.minecraft.world.entity
Subclasses of LivingEntity in net.minecraft.world.entityModifier and TypeClassDescriptionclassclassclassclassclassclassFields in net.minecraft.world.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityLivingEntity.lastHurtByMobprivate LivingEntityLivingEntity.lastHurtMobprivate LivingEntityAreaEffectCloud.ownerprivate LivingEntityMob.targetMethods in net.minecraft.world.entity that return LivingEntityModifier and TypeMethodDescriptionEntity.getControllingPassenger()Mob.getControllingPassenger()LivingEntity.getKillCredit()Attackable.getLastAttacker()Interaction.getLastAttacker()LivingEntity.getLastAttacker()LivingEntity.getLastHurtByMob()NeutralMob.getLastHurtByMob()LivingEntity.getLastHurtMob()AreaEffectCloud.getOwner()default LivingEntityOwnableEntity.getOwner()Interaction.getTarget()Mob.getTarget()NeutralMob.getTarget()Targeting.getTarget()protected final LivingEntityMob.getTargetFromBrain()Methods in net.minecraft.world.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidLivingEntity.blockedByShield(LivingEntity defender) protected voidLivingEntity.blockUsingShield(LivingEntity attacker) booleanLivingEntity.canAttack(LivingEntity target) booleanLivingEntity.canAttack(LivingEntity livingentity, TargetingConditions condition) booleanNeutralMob.canAttack(LivingEntity entity) booleanTamableAnimal.canAttack(LivingEntity target) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity entity, EquipmentSlot slot) protected voidLivingEntity.createWitherRose(LivingEntity entitySource) protected voidLivingEntity.doAutoAttackOnTouch(LivingEntity target) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> stackFilter) Entity.getDismountLocationForPassenger(LivingEntity passenger) default booleanNeutralMob.isAngryAt(LivingEntity target) booleanTamableAnimal.isOwnedBy(LivingEntity entity) booleanMob.isWithinMeleeAttackRange(LivingEntity entity) booleanEntity.killedEntity(ServerLevel level, LivingEntity entity) voidLivingEntity.setLastHurtByMob(LivingEntity livingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidNeutralMob.setLastHurtByMob(LivingEntity livingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidAreaEffectCloud.setOwner(LivingEntity owner) voidMob.setTarget(LivingEntity target) Sets the active target the Goal system uses for trackingvoidNeutralMob.setTarget(LivingEntity livingEntity) Sets the active target the Task system uses for trackingbooleanTamableAnimal.wantsToAttack(LivingEntity target, LivingEntity owner) Method parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> glowSquid, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) Constructor parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotectedLivingEntity(EntityType<? extends LivingEntity> entityType, 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 TypeClassDescriptionclassBrain<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>
com.mojang.serialization.Codec<Brain<E>> Brain.codec(Collection<? extends MemoryModuleType<?>> memoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> sensorTypes) static <E extends LivingEntity>
Brain.Provider<E> Brain.provider(Collection<? extends MemoryModuleType<?>> memoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> sensorTypes) -
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> livingEntity) -
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>Fields in net.minecraft.world.entity.ai.behavior declared as LivingEntityModifier and TypeFieldDescription(package private) 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 owner, long gameTime) static <E extends LivingEntity,T>
BehaviorControl<E> CopyMemoryWithExpiry.create(Predicate<E> canCopyMemory, MemoryModuleType<? extends T> sourceMemory, MemoryModuleType<T> targetMemory, UniformInt durationOfCopy) static <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create(int maxDistanceFromVehicle, BiPredicate<E, Entity> shouldStopRiding) static <E extends LivingEntity>
BehaviorControl<E> EraseMemoryIf.create(Predicate<E> shouldEraseMemory, MemoryModuleType<?> erasingMemory) static <E extends LivingEntity>
BehaviorControl<E> GoToWantedItem.create(Predicate<E> canWalkToItem, float speedModifier, boolean hasTarget, 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> memory, float speedModifier, int maxDist) 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> memory, float speedModifier, int maxDist) static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of(EntityType<? extends T> type, int interactionRange, MemoryModuleType<T> interactMemory, float speedModifier, int maxDist) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> triggers, 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>> triggers) Methods in net.minecraft.world.entity.ai.behavior that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity shooter) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity centerEntity, Optional<LivingEntity> optionalEntity, LivingEntity livingEntity) PrepareRamNearestTarget.RamCandidate.getTarget()static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity centerEntity, LivingEntity livingEntity1, LivingEntity livingEntity2) private LivingEntityShowTradesToPlayer.lookAtTarget(Villager villager) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity kid) 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> kids) static BehaviorControl<LivingEntity> BecomePassiveIfMemoryPresent.create(MemoryModuleType<?> pacifyingMemory, int pacifyDuration) static BehaviorControl<LivingEntity> GoToWantedItem.create(float speedModifier, boolean hasTarget, 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> canLootAtTarget, float maxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(EntityType<?> entityType, float maxDist) static BehaviorControl<LivingEntity> SetEntityLookTarget.create(MobCategory category, float makDist) static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval) Deprecated.private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval, Predicate<LivingEntity> canLookAtTarget) Deprecated.static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(EntityType<?> entityType, float maxDist, UniformInt interval) Deprecated.static BehaviorControl<LivingEntity> SetHiddenState.create(int stayHiddenSeconds, int closeEnoughdist) static BehaviorControl<LivingEntity> SetLookAndInteract.create(EntityType<?> entityType, int maxDist) static BehaviorControl<LivingEntity> SetRaidStatus.create()static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(float speedModifier, int closeEnoughDist) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTarget, Function<LivingEntity, Float> speedModifier, int closeEnoughDist) static OneShot<LivingEntity> SocializeAtBell.create()static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int duration, BiPredicate<LivingEntity, LivingEntity> canDance) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> predicate, int closeEnoughDist, int tooClose, float speedModifier) static BehaviorControl<LivingEntity> StopBeingAngryIfTargetDead.create()static BehaviorControl<LivingEntity> static BehaviorControl<LivingEntity> UpdateActivityFromSchedule.create()static BehaviorControl<LivingEntity> ValidateNearbyPoi.create(Predicate<Holder<PoiType>> poiValidator, MemoryModuleType<GlobalPos> poiPosMemory) static BehaviorControl<LivingEntity> VillagerCalmDown.create()static BehaviorControl<LivingEntity> WakeUp.create()private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> kids) private static com.mojang.datafixers.util.Pair<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getFullLookBehavior()static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity livingEntity, MemoryModuleType<UUID> targetMemory) 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> interactMemory, float speedModifier, int maxDist) Methods in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> nearestLivingEntities) private static booleanValidateNearbyPoi.bedIsOccupied(ServerLevel level, BlockPos pos, LivingEntity entity) PrepareRamNearestTarget.calculateRammingStartPosition(PathfinderMob pathfinder, LivingEntity entity) static booleanBehaviorUtils.canSee(LivingEntity livingEntity, LivingEntity target) protected booleanCountDownCooldownTicks.canStillUse(ServerLevel level, LivingEntity entity, long gameTime) protected booleanSleepInBed.canStillUse(ServerLevel level, LivingEntity entity, long gameTime) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kid) protected booleanSleepInBed.checkExtraStartConditions(ServerLevel level, LivingEntity owner) private voidPrepareRamNearestTarget.chooseRamPosition(PathfinderMob pathfinder, LivingEntity entity) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity entity, Node previous, Node next, Set<GlobalPos> doorPositions, Optional<List<LivingEntity>> nearestLivingEntities) private voidCrossbowAttack.crossbowAttack(E shooter, LivingEntity target) final voidDoNothing.doStop(ServerLevel level, LivingEntity entity, long gameTime) static booleanBehaviorUtils.entityIsVisible(Brain<?> brain, LivingEntity target) private voidShowTradesToPlayer.findItemsToDisplay(LivingEntity entity, Villager villager) private static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity shooter) CountDownCooldownTicks.getCooldownTickMemory(LivingEntity entity) static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity livingEntity, MemoryModuleType<UUID> targetMemory) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity centerEntity, Optional<LivingEntity> optionalEntity, LivingEntity livingEntity) private static Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel level, LivingEntity entity) static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity centerEntity, LivingEntity livingEntity1, LivingEntity livingEntity2) static booleanVillagerPanicTrigger.hasHostile(LivingEntity entity) static booleanMoveToSkySeeingSpot.hasNoBlocksAbove(ServerLevel level, LivingEntity entity, BlockPos pos) static booleanBehaviorUtils.isBreeding(LivingEntity entity) private static booleanPlayTagWithOtherKids.isChasingSomeone(LivingEntity kid) private static booleanInteractWithDoor.isDoorTooFarAway(ServerLevel level, LivingEntity entity, GlobalPos pos) private static booleanPlayTagWithOtherKids.isFriendChasingMe(LivingEntity entity, LivingEntity kid) static booleanVillagerPanicTrigger.isHurt(LivingEntity entity) static booleanBehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity livingEntity, LivingEntity target, double distance) private static booleanStopAttackingIfTargetInvalid.isTiredOfTryingToReachTarget(LivingEntity entity, Optional<Long> timeSinceInvalidTarget) private static booleanDismountOrSkipMounting.isVehicleValid(LivingEntity entity, Entity vehicle, int distance) booleanBlockPosTracker.isVisibleBy(LivingEntity entity) booleanEntityTracker.isVisibleBy(LivingEntity entity) booleanPositionTracker.isVisibleBy(LivingEntity entity) static booleanBehaviorUtils.isWithinAttackRange(Mob mob, LivingEntity target, int cooldown) static voidBehaviorUtils.lockGazeAndWalkToEachOther(LivingEntity firstEntity, LivingEntity secondEntity, float speed, int distance) private static voidBehaviorUtils.lookAtEachOther(LivingEntity firstEntity, LivingEntity secondEntity) static voidBehaviorUtils.lookAtEntity(LivingEntity entity, LivingEntity target) private voidCrossbowAttack.lookAtTarget(Mob shooter, LivingEntity target) private static booleanVillagerGoalPackages.raidExistsAndActive(ServerLevel level, LivingEntity entity) private static booleanVillagerGoalPackages.raidExistsAndNotVictory(ServerLevel level, LivingEntity entity) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity livingEntity, BlockPos pos, float speed, int distance) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity entity, PositionTracker positionTracker, float speedModifier, int closeEnoughDist) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity livingEntity, Entity target, float speed, int distance) private static voidBehaviorUtils.setWalkAndLookTargetMemoriesToEachOther(LivingEntity firstEntity, LivingEntity secondEntity, float speed, int distance) protected voidSleepInBed.start(ServerLevel level, LivingEntity entity, long gameTime) protected voidCountDownCooldownTicks.stop(ServerLevel level, LivingEntity entity, long gameTime) protected voidSleepInBed.stop(ServerLevel level, LivingEntity entity, long gameTime) private voidGiveGiftToHero.throwGift(Villager villager, LivingEntity hero) private static voidTradeWithVillager.throwHalfStack(Villager villager, Set<Item> stack, LivingEntity entity) static voidBehaviorUtils.throwItem(LivingEntity livingEntity, ItemStack stack, Vec3 offset) static voidBehaviorUtils.throwItem(LivingEntity entity, ItemStack stack, Vec3 offset, Vec3 speedMultiplier, float yOffset) static voidGoAndGiveItemsToTarget.throwItem(LivingEntity entity, ItemStack stack, Vec3 throwPos) protected voidCountDownCooldownTicks.tick(ServerLevel level, LivingEntity owner, long gameTime) final voidDoNothing.tickOrStop(ServerLevel level, LivingEntity entity, long gameTime) final booleanDoNothing.tryStart(ServerLevel level, LivingEntity entity, long gameTime) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity kid) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> nearestLivingEntities) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> interactionTarget, MemoryAccessor<?, PositionTracker> lookTarget, MemoryAccessor<?, WalkTarget> walkTarget, LivingEntity kid) private static Map<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas(List<LivingEntity> kids) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity entity, Node previous, Node next, Set<GlobalPos> doorPositions, Optional<List<LivingEntity>> nearestLivingEntities) static OneShot<AgeableMob> BabyFollowAdult.create(UniformInt followRange, Function<LivingEntity, Float> speedModifier) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> canLootAtTarget, float maxDist) private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float maxDist, UniformInt interval, Predicate<LivingEntity> canLookAtTarget) Deprecated.static BehaviorControl<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create(Function<LivingEntity, Float> speedModifier) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTarget, Function<LivingEntity, Float> speedModifier, int closeEnoughDist) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> canSetWalkTarget, Function<LivingEntity, Float> speedModifier, int closeEnoughDist) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Function<E, Optional<? extends LivingEntity>> targetFinder) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Predicate<E> canAttack, Function<E, Optional<? extends LivingEntity>> targetFinder) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int duration, BiPredicate<LivingEntity, LivingEntity> canDance) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int duration, BiPredicate<LivingEntity, LivingEntity> canDance) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> predicate, int closeEnoughDist, int tooClose, float speedModifier) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, Predicate<LivingEntity> predicate, int closeEnoughDist, int tooClose, float speedModifier) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(BiConsumer<E, LivingEntity> onStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> canStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> canStopAttacking, BiConsumer<E, LivingEntity> onStopAttacking, boolean canGrowTiredOfTryingToReachTarget) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> canStopAttacking, BiConsumer<E, LivingEntity> onStopAttacking, boolean canGrowTiredOfTryingToReachTarget) private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> kids) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity centerEntity, Optional<LivingEntity> optionalEntity, LivingEntity livingEntity) private static booleanBehaviorUtils.targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> livingPredicate) private static booleanBehaviorUtils.targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> livingPredicate) static booleanBehaviorUtils.targetIsValid(Brain<?> brains, MemoryModuleType<? extends LivingEntity> memorymodule, EntityType<?> entityType) 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) GoAndGiveItemsToTarget(Function<LivingEntity, Optional<PositionTracker>> targetPositionGetter, float speedModifier, int duration) -
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> (package private) static final classBehaviorBuilder.Constant<E extends LivingEntity,A> static final classBehaviorBuilder.Instance<E extends LivingEntity>(package private) static final classBehaviorBuilder.Instance.Mu<E extends LivingEntity>static final classBehaviorBuilder.Mu<E extends LivingEntity>(package private) static final classBehaviorBuilder.PureMemory<E extends LivingEntity,F extends com.mojang.datafixers.kinds.K1, Value> (package private) static interfaceBehaviorBuilder.TriggerWithResult<E extends LivingEntity,R> (package 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>>> initializer) (package private) static <E extends LivingEntity,M>
BehaviorBuilder<E, M> BehaviorBuilder.create(BehaviorBuilder.TriggerWithResult<E, M> trigger) (package private) static <E extends LivingEntity,M>
BehaviorBuilder.TriggerWithResult<E, M> BehaviorBuilder.get(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> app) 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> app) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.warden
Methods in net.minecraft.world.entity.ai.behavior.warden that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic BehaviorControl<LivingEntity> SetWardenLookTarget.create()static BehaviorControl<LivingEntity> TryToSniff.create()Methods in net.minecraft.world.entity.ai.behavior.warden with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected booleanForceUnmount.checkExtraStartConditions(ServerLevel p_238424_, LivingEntity p_238425_) static voidSonicBoom.setCooldown(LivingEntity entity, int cooldown) protected voidForceUnmount.start(ServerLevel p_238410_, LivingEntity p_238411_, long p_238412_) Method parameters in net.minecraft.world.entity.ai.behavior.warden with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends Warden>
BehaviorControl<E> SetRoarTarget.create(Function<E, Optional<? extends LivingEntity>> targetFinder) -
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 LivingEntityFollowOwnerGoal.ownerprivate LivingEntityLeapAtTargetGoal.targetprivate LivingEntityMoveTowardsTargetGoal.targetprivate LivingEntityOcelotAttackGoal.targetprivate LivingEntityRangedAttackGoal.targetprivate LivingEntitySwellGoal.targetprotected TAvoidEntityGoal.toAvoidFields in net.minecraft.world.entity.ai.goal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected final Predicate<LivingEntity> AvoidEntityGoal.avoidPredicateprotected final Class<? extends LivingEntity> LookAtPlayerGoal.lookAtTypeprotected final Predicate<LivingEntity> AvoidEntityGoal.predicateOnAvoidEntityMethods in net.minecraft.world.entity.ai.goal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected booleanMeleeAttackGoal.canPerformAttack(LivingEntity entity) protected voidMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) private booleanTemptGoal.shouldFollow(LivingEntity entity) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionAvoidEntityGoal(PathfinderMob mob, Class<T> entityClassToAvoid, float maxDistance, double walkSpeedModifier, double sprintSpeedModifier, Predicate<LivingEntity> predicateOnAvoidEntity) AvoidEntityGoal(PathfinderMob mob, Class<T> entityClassToAvoid, Predicate<LivingEntity> avoidPredicate, float maxDistance, double walkSpeedModifier, double sprintSpeedModifier, Predicate<LivingEntity> predicateOnAvoidEntity) Goal that helps mobs avoid mobs of a specific classInteractGoal(Mob p_148111_, Class<? extends LivingEntity> p_148112_, float p_148113_) InteractGoal(Mob p_25415_, Class<? extends LivingEntity> p_25416_, float p_25417_, float p_25418_) LookAtPlayerGoal(Mob 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 LivingEntityDefendVillageTargetGoal.potentialTargetprotected LivingEntityNearestAttackableTargetGoal.targetprotected LivingEntityTargetGoal.targetMobMethods in net.minecraft.world.entity.ai.goal.target with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHurtByTargetGoal.alertOther(Mob mob, LivingEntity target) protected booleanTargetGoal.canAttack(LivingEntity potentialTarget, TargetingConditions targetPredicate) 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(LivingEntity target) Constructor parameters in net.minecraft.world.entity.ai.goal.target with type arguments of type LivingEntityModifierConstructorDescriptionNearestAttackableTargetGoal(Mob mob, Class<T> targetType, boolean mustSee, Predicate<LivingEntity> targetPredicate) NearestAttackableTargetGoal(Mob mob, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, Predicate<LivingEntity> targetPredicate) NearestAttackableWitchTargetGoal(Raider mob, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, Predicate<LivingEntity> targetPredicate) NearestHealableRaiderTargetGoal(Raider mob, Class<T> targetType, boolean mustSee, Predicate<LivingEntity> targetPredicate) NonTameRandomTargetGoal(TamableAnimal tamableMob, Class<T> targetType, boolean mustSee, Predicate<LivingEntity> targetPredicate) -
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_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> predicate) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> predicate) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> predicate) Methods in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(LivingEntity entity) Method parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(Predicate<LivingEntity> predicate) NearestVisibleLivingEntities.find(Predicate<LivingEntity> predicate) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> predicate) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> predicate) Constructors in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(LivingEntity livingEntity, List<LivingEntity> nearbyLivingEntities) Constructor parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(LivingEntity livingEntity, List<LivingEntity> nearbyLivingEntities) -
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>Fields 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 warden, Predicate<LivingEntity> predicate) protected MemoryModuleType<LivingEntity> AxolotlAttackablesSensor.getMemory()protected MemoryModuleType<LivingEntity> FrogAttackablesSensor.getMemory()protected abstract MemoryModuleType<LivingEntity> NearestVisibleLivingEntitySensor.getMemory()protected MemoryModuleType<LivingEntity> VillagerHostilesSensor.getMemory()private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(LivingEntity entity) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity livingEntity) Methods in net.minecraft.world.entity.ai.sensing with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidGolemSensor.checkForNearbyGolem(LivingEntity livingEntity) protected voidDummySensor.doTick(ServerLevel level, LivingEntity entity) protected voidGolemSensor.doTick(ServerLevel level, LivingEntity entity) protected voidHurtBySensor.doTick(ServerLevel level, LivingEntity p_entity) protected voidIsInWaterSensor.doTick(ServerLevel p_217816_, LivingEntity p_217817_) protected voidNearestVisibleLivingEntitySensor.doTick(ServerLevel level, LivingEntity entity) protected voidPiglinBruteSpecificSensor.doTick(ServerLevel level, LivingEntity entity) protected voidPiglinSpecificSensor.doTick(ServerLevel level, LivingEntity entity) protected voidPlayerSensor.doTick(ServerLevel level, LivingEntity entity) protected voidVillagerBabiesSensor.doTick(ServerLevel level, LivingEntity entity) PiglinSpecificSensor.findNearestRepellent(ServerLevel level, LivingEntity livingEntity) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(LivingEntity entity) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity livingEntity) protected Optional<NearestVisibleLivingEntities> NearestVisibleLivingEntitySensor.getVisibleEntities(LivingEntity entity) private NearestVisibleLivingEntitiesVillagerBabiesSensor.getVisibleEntities(LivingEntity livingEntity) static voidGolemSensor.golemDetected(LivingEntity livingEntity) private booleanAxolotlAttackablesSensor.isClose(LivingEntity attacker, LivingEntity target) private booleanVillagerHostilesSensor.isClose(LivingEntity attacker, LivingEntity target) static booleanSensor.isEntityAttackable(LivingEntity attacker, LivingEntity target) static booleanSensor.isEntityAttackableIgnoringLineOfSight(LivingEntity attacker, LivingEntity target) static booleanSensor.isEntityTargetable(LivingEntity livingEntity, LivingEntity target) private booleanVillagerHostilesSensor.isHostile(LivingEntity entity) private booleanAxolotlAttackablesSensor.isHostileTarget(LivingEntity target) private booleanAxolotlAttackablesSensor.isHuntTarget(LivingEntity attacker, LivingEntity target) protected booleanAxolotlAttackablesSensor.isMatchingEntity(LivingEntity attacker, LivingEntity target) protected booleanFrogAttackablesSensor.isMatchingEntity(LivingEntity attacker, LivingEntity target) protected abstract booleanNearestVisibleLivingEntitySensor.isMatchingEntity(LivingEntity attacker, LivingEntity target) protected booleanVillagerHostilesSensor.isMatchingEntity(LivingEntity attacker, LivingEntity target) private booleanFrogAttackablesSensor.isUnreachableAttackTarget(LivingEntity attacker, LivingEntity target) private booleanVillagerBabiesSensor.isVillagerBaby(LivingEntity livingEntity) Method parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenEntitySensor.getClosest(Warden warden, Predicate<LivingEntity> predicate) 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
Fields in net.minecraft.world.entity.ai.targeting with type parameters of type LivingEntityMethods in net.minecraft.world.entity.ai.targeting with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanTargetingConditions.test(LivingEntity attacker, LivingEntity target) Method parameters in net.minecraft.world.entity.ai.targeting with type arguments of type LivingEntityModifier and TypeMethodDescriptionTargetingConditions.selector(Predicate<LivingEntity> customPredicate) -
Uses of LivingEntity in net.minecraft.world.entity.ambient
Subclasses of LivingEntity in net.minecraft.world.entity.ambient -
Uses of LivingEntity in net.minecraft.world.entity.animal
Classes in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier and TypeClassDescription(package private) static classCat.CatAvoidEntityGoal<T extends LivingEntity>(package private) static classOcelot.OcelotAvoidEntityGoal<T extends LivingEntity>(package private) static classPanda.PandaAvoidGoal<T extends LivingEntity>(package private) static classRabbit.RabbitAvoidEntityGoal<T extends LivingEntity>(package private) classWolf.WolfAvoidEntityGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.animalModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.animal declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityFox.DefendTrustedTargetGoal.trustedLastHurtprivate LivingEntityFox.DefendTrustedTargetGoal.trustedLastHurtByFields in net.minecraft.world.entity.animal with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> Turtle.BABY_ON_LAND_SELECTORstatic final Predicate<LivingEntity> Wolf.PREY_SELECTORprivate static final Predicate<LivingEntity> Pufferfish.SCARY_MOBMethods 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 entity) Methods in net.minecraft.world.entity.animal that return LivingEntityMethods in net.minecraft.world.entity.animal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidBee.BeeHurtByOtherGoal.alertOther(Mob mob, LivingEntity target) protected voidPanda.PandaHurtByTargetGoal.alertOther(Mob mob, LivingEntity target) protected voidPolarBear.PolarBearHurtByTargetGoal.alertOther(Mob mob, LivingEntity target) protected voidFox.FoxMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) protected voidPolarBear.PolarBearMeleeAttackGoal.checkAndPerformAttack(LivingEntity target) Pig.getDismountLocationForPassenger(LivingEntity livingEntity) static booleanFox.isPathClear(Fox fox, LivingEntity livingEntity) voidSnowGolem.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.voidFox.setTarget(LivingEntity livingEntity) Sets the active target the Task system uses for trackingvoidPanda.PandaLookAtPlayerGoal.setTarget(LivingEntity lookAt) booleanFox.FoxAlertableEntitiesSelector.test(LivingEntity entity) booleanWolf.wantsToAttack(LivingEntity target, LivingEntity owner) Constructor parameters in net.minecraft.world.entity.animal with type arguments of type LivingEntityModifierConstructorDescriptionDefendTrustedTargetGoal(Class<LivingEntity> targetType, boolean mustSee, boolean mustReach, Predicate<LivingEntity> predicate) DefendTrustedTargetGoal(Class<LivingEntity> targetType, boolean mustSee, boolean mustReach, Predicate<LivingEntity> predicate) FoxLookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) PandaLookAtPlayerGoal(Panda panda, Class<? extends LivingEntity> lookAtType, float lookDistance) -
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 entity) static Optional<ServerPlayer> AllayAi.getLikedPlayer(LivingEntity entity) private static Optional<PositionTracker> AllayAi.getLikedPlayerPositionTracker(LivingEntity entity) private static booleanAllayAi.hasWantedItem(LivingEntity entity) static voidAllayAi.hearNoteblock(LivingEntity entity, BlockPos pos) private static booleanAllayAi.shouldDepositItemsAtLikedNoteblock(LivingEntity entity, Brain<?> brain, GlobalPos pos) -
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(Axolotl axolotl) Methods in net.minecraft.world.entity.animal.axolotl with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanAxolotlAi.canSetWalkTargetFromLookTarget(LivingEntity entity) private static floatAxolotlAi.getSpeedModifier(LivingEntity entity) private static floatAxolotlAi.getSpeedModifierChasing(LivingEntity entity) private static floatAxolotlAi.getSpeedModifierFollowingAdult(LivingEntity entity) static voidAxolotl.onStopAttacking(Axolotl axolotl, LivingEntity target) Method parameters in net.minecraft.world.entity.animal.axolotl with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanAxolotl.checkAxolotlSpawnRules(EntityType<? extends LivingEntity> axolotl, ServerLevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) -
Uses of LivingEntity in net.minecraft.world.entity.animal.camel
Subclasses of LivingEntity in net.minecraft.world.entity.animal.camelMethods in net.minecraft.world.entity.animal.camel with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.frog
Subclasses of LivingEntity in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog that return LivingEntityMethods in net.minecraft.world.entity.animal.frog with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate voidShootTongue.addUnreachableTargetToMemory(Frog frog, LivingEntity target) static booleanFrog.canEat(LivingEntity entity) private booleanShootTongue.canPathfindToTarget(Frog frog, 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.horse
Subclasses of LivingEntity in net.minecraft.world.entity.animal.horseModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.animal.horse declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityTraderLlama.TraderLlamaDefendWanderingTraderGoal.ownerLastHurtByFields in net.minecraft.world.entity.animal.horse with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Predicate<LivingEntity> AbstractHorse.PARENT_HORSE_SELECTORMethods in net.minecraft.world.entity.animal.horse that return LivingEntityMethods in net.minecraft.world.entity.animal.horse with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger(LivingEntity livingEntity) private Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) protected Vec2AbstractHorse.getRiddenRotation(LivingEntity entity) voidLlama.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.private voidLlama.spit(LivingEntity target) -
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.boss.enderdragon
Subclasses of LivingEntity in net.minecraft.world.entity.boss.enderdragonMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.boss.enderdragon.phases
Fields in net.minecraft.world.entity.boss.enderdragon.phases declared as LivingEntityMethods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidDragonStrafePlayerPhase.setTarget(LivingEntity attackTarget) -
Uses of LivingEntity in net.minecraft.world.entity.boss.wither
Subclasses of LivingEntity in net.minecraft.world.entity.boss.witherFields in net.minecraft.world.entity.boss.wither with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Predicate<LivingEntity> WitherBoss.LIVING_ENTITY_SELECTORMethods 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 distanceFactor) 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 declared as 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, LivingEntity owner) -
Uses of LivingEntity in net.minecraft.world.entity.monster
Classes in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeClassDescription(package private) static classSpider.SpiderTargetGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.monster declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityGuardian.clientSideCachedAttackTargetprivate LivingEntityEnderMan.EndermanFreezeWhenLookedAt.targetFields in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Predicate<LivingEntity> EnderMan.EndermanLookForPlayerGoal.isAngerInducingMethods in net.minecraft.world.entity.monster that return LivingEntityModifier and TypeMethodDescriptionGuardian.getActiveAttackTarget()Strider.getControllingPassenger()CrossbowAttackMob.getTarget()Zoglin.getTarget()Methods in net.minecraft.world.entity.monster that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate Optional<? extends LivingEntity> Zoglin.findNearestValidAttackTarget()Methods in net.minecraft.world.entity.monster with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidRavager.blockedByShield(LivingEntity entity) protected voidZoglin.blockedByShield(LivingEntity entity) booleanAbstractIllager.canAttack(LivingEntity target) protected voidSlime.dealDamage(LivingEntity livingEntity) Strider.getDismountLocationForPassenger(LivingEntity livingEntity) private booleanZoglin.isTargetable(LivingEntity livingEntity) booleanZombie.killedEntity(ServerLevel level, LivingEntity entity) booleanDrowned.okTarget(LivingEntity target) default voidCrossbowAttackMob.performCrossbowAttack(LivingEntity user, float velocity) voidAbstractSkeleton.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.voidDrowned.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.voidIllusioner.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.voidPillager.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.voidRangedAttackMob.performRangedAttack(LivingEntity target, float velocity) Attack the specified entity using a ranged attack.voidWitch.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.private voidZoglin.setAttackTarget(LivingEntity target) voidCreeper.setTarget(LivingEntity target) Sets the active target the Goal system uses for trackingvoidEnderMan.setTarget(LivingEntity livingEntity) Sets the active target the Task system uses for trackingvoidZombifiedPiglin.setTarget(LivingEntity livingEntity) Sets the active target the Task system uses for trackingbooleanGuardian.GuardianAttackSelector.test(LivingEntity entity) Constructor parameters in net.minecraft.world.entity.monster with type arguments of type LivingEntityModifierConstructorDescriptionEndermanLookForPlayerGoal(EnderMan enderman, Predicate<LivingEntity> selectionPredicate) -
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 TypeMethodDescriptionstatic booleanShoot.isFacingTarget(Breeze breeze, LivingEntity target) private static booleanShoot.isTargetWithinRange(Breeze breeze, LivingEntity target) private static booleanLongJump.outOfAggroRange(Breeze breeze, LivingEntity target) static Vec3BreezeUtil.randomPointBehindTarget(LivingEntity target, RandomSource random) private static Vec3Slide.randomPointInMiddleCircle(Breeze breeze, LivingEntity target) private static BlockPosLongJump.snapToSurface(LivingEntity owner, Vec3 targetPos) private static booleanLongJump.tooCloseForJump(Breeze breeze, 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(Hoglin hoglin) Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHoglin.blockedByShield(LivingEntity entity) private static voidHoglinAi.broadcastAttackTarget(Hoglin hoglin, LivingEntity target) private static voidHoglinAi.broadcastRetreat(Hoglin hoglin, LivingEntity target) static booleanHoglinBase.hurtAndThrowTarget(LivingEntity hoglin, LivingEntity target) private static voidHoglinAi.maybeRetaliate(Hoglin hoglin, LivingEntity livingEntity) protected static voidHoglinAi.onHitTarget(Hoglin hoglin, LivingEntity target) private static voidHoglinAi.retreatFromNearestTarget(Hoglin hoglin, LivingEntity target) private static voidHoglinAi.setAttackTarget(Hoglin hoglin, LivingEntity target) private static voidHoglinAi.setAttackTargetIfCloserThanCurrent(Hoglin hoglin, LivingEntity target) private static voidHoglinAi.setAvoidTarget(Hoglin hoglin, LivingEntity target) static voidHoglinBase.throwTarget(LivingEntity hoglin, LivingEntity target) protected static voidHoglinAi.wasHurtBy(Hoglin hoglin, LivingEntity livingEntity) -
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 maxDist) static BehaviorControl<LivingEntity> StopAdmiringIfTiredOfTryingToReachItem.create(int maxTimeToReachItem, int disableDuration) private static RunOne<LivingEntity> PiglinAi.createIdleLookBehaviors()private static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> PiglinAi.createLookBehaviors()private static Optional<? extends LivingEntity> PiglinAi.findNearestValidAttackTarget(Piglin piglin) private static Optional<? extends LivingEntity> PiglinBruteAi.findNearestValidAttackTarget(AbstractPiglin piglinBrute) private static Optional<LivingEntity> PiglinAi.getAngerTarget(AbstractPiglin piglin) static Optional<LivingEntity> PiglinAi.getAvoidTarget(Piglin piglin) private static Optional<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange(AbstractPiglin piglinBrute, MemoryModuleType<? extends LivingEntity> memoryType) Methods in net.minecraft.world.entity.monster.piglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static voidPiglinAi.admireGoldItem(LivingEntity piglin) protected static voidPiglinAi.broadcastAngerTarget(AbstractPiglin piglin, LivingEntity target) private static voidPiglinAi.broadcastRetreat(Piglin piglin, LivingEntity target) private static booleanPiglinAi.doesntSeeAnyPlayerHoldingLovedItem(LivingEntity piglin) private static booleanPiglinAi.hasCrossbow(LivingEntity piglin) private static booleanPiglinAi.isNearestValidAttackTarget(Piglin piglin, LivingEntity target) private static booleanPiglinBruteAi.isNearestValidAttackTarget(AbstractPiglin piglinBrute, LivingEntity target) static booleanPiglinAi.isPlayerHoldingLovedItem(LivingEntity player) static booleanPiglinAi.isWearingGold(LivingEntity livingEntity) protected static voidPiglinAi.maybeRetaliate(AbstractPiglin piglin, LivingEntity target) voidPiglin.performRangedAttack(LivingEntity target, float distanceFactor) Attack the specified entity using a ranged attack.private static voidPiglinAi.retreatFromNearestTarget(Piglin piglin, LivingEntity target) private static booleanPiglinAi.seesPlayerHoldingLovedItem(LivingEntity piglin) protected static voidPiglinAi.setAngerTarget(AbstractPiglin piglin, LivingEntity target) protected static voidPiglinBruteAi.setAngerTarget(PiglinBrute piglinBrute, LivingEntity angerTarget) private static voidPiglinAi.setAngerTargetIfCloserThanCurrent(AbstractPiglin piglin, LivingEntity currentTarget) private static voidPiglinAi.setAngerTargetToNearestTargetablePlayerIfFound(AbstractPiglin piglin, LivingEntity currentTarget) private static voidPiglinAi.setAvoidTargetAndDontHuntForAWhile(Piglin piglin, LivingEntity target) private static booleanPiglinAi.wantsToDance(LivingEntity piglin, LivingEntity target) protected static voidPiglinAi.wasHurtBy(Piglin piglin, LivingEntity target) protected static voidPiglinBruteAi.wasHurtBy(PiglinBrute piglinBrute, LivingEntity target) private static booleanPiglinAi.wasHurtRecently(LivingEntity piglin) Method parameters in net.minecraft.world.entity.monster.piglin with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange(AbstractPiglin piglinBrute, MemoryModuleType<? extends LivingEntity> memoryType) -
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 warden, LivingEntity entity) private static voidWardenAi.onTargetInvalid(Warden warden, LivingEntity target) voidWarden.setAttackTarget(LivingEntity attackTarget) static voidWardenAi.setDigCooldown(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.world.entity.npc
Subclasses of LivingEntity in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidVillager.setLastHurtByMob(LivingEntity livingBase) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate. -
Uses of LivingEntity in net.minecraft.world.entity.player
Subclasses of LivingEntity in net.minecraft.world.entity.playerMethods in net.minecraft.world.entity.player with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPlayer.blockUsingShield(LivingEntity entity) protected voidPlayer.doAutoAttackOnTouch(LivingEntity target) booleanPlayer.killedEntity(ServerLevel level, LivingEntity entity) -
Uses of LivingEntity in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityFireworkRocketEntity.attachedToEntityprivate LivingEntityEvokerFangs.ownerFields in net.minecraft.world.entity.projectile with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> ThrownPotion.WATER_SENSITIVE_OR_ON_FIREMethods 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 entity, DamageSource damageSource) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairProjectile.calculateHorizontalHurtKnockbackDirection(LivingEntity entity, DamageSource damageSource) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity entity, DamageSource damageSource) private voidEvokerFangs.dealDamageTo(LivingEntity target) protected voidAbstractArrow.doKnockback(LivingEntity entity, DamageSource damageSource) protected voidAbstractArrow.doPostHurtEffects(LivingEntity target) protected voidArrow.doPostHurtEffects(LivingEntity living) protected voidSpectralArrow.doPostHurtEffects(LivingEntity living) static AbstractArrowProjectileUtil.getMobArrow(LivingEntity shooter, ItemStack arrow, float velocity, ItemStack weapon) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity shooter, Item weapon) Deprecated.voidEvokerFangs.setOwner(LivingEntity owner) Constructors in net.minecraft.world.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionprotectedAbstractArrow(EntityType<? extends AbstractArrow> entityType, LivingEntity owner, Level level, ItemStack pickupItemStack, ItemStack firedFromWeapon) AbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> entityType, LivingEntity owner, Vec3 movement, Level level) Arrow(Level level, LivingEntity owner, ItemStack pickupItemStack, ItemStack firedFromWeapon) DragonFireball(Level level, LivingEntity owner, Vec3 movement) EvokerFangs(Level level, double x, double y, double z, float yRot, int warmupDelay, LivingEntity owner) Fireball(EntityType<? extends Fireball> entityType, LivingEntity owner, Vec3 movement, Level level) FireworkRocketEntity(Level level, ItemStack stack, LivingEntity shooter) LargeFireball(Level level, LivingEntity owner, Vec3 movement, int explosionPower) ShulkerBullet(Level level, LivingEntity shooter, Entity finalTarget, Direction.Axis axis) SmallFireball(Level level, LivingEntity owner, Vec3 movement) Snowball(Level level, LivingEntity shooter) SpectralArrow(Level level, LivingEntity owner, ItemStack pickupItemStack, ItemStack firedFromWeapon) ThrowableItemProjectile(EntityType<? extends ThrowableItemProjectile> entityType, LivingEntity shooter, Level level) protectedThrowableProjectile(EntityType<? extends ThrowableProjectile> entityType, LivingEntity shooter, Level level) ThrownEgg(Level level, LivingEntity shooter) ThrownEnderpearl(Level level, LivingEntity shooter) ThrownExperienceBottle(Level level, LivingEntity shooter) ThrownPotion(Level level, LivingEntity shooter) ThrownTrident(Level level, LivingEntity shooter, ItemStack pickupItemStack) WitherSkull(Level level, LivingEntity owner, Vec3 movement) -
Uses of LivingEntity in net.minecraft.world.entity.raid
Subclasses of LivingEntity in net.minecraft.world.entity.raid -
Uses of LivingEntity in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return LivingEntityMethods in net.minecraft.world.entity.vehicle with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter level, LivingEntity passenger, AABB boundingBox) static booleanDismountHelper.canDismountTo(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) AbstractMinecart.getDismountLocationForPassenger(LivingEntity livingEntity) Boat.getDismountLocationForPassenger(LivingEntity livingEntity) -
Uses of LivingEntity in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as LivingEntityConstructors in net.minecraft.world.inventory with parameters of type LivingEntityModifierConstructorDescriptionArmorSlot(Container container, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, ResourceLocation 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(Player player, Entity entity) Methods in net.minecraft.world.item with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanElytraItem.canElytraFly(ItemStack stack, LivingEntity entity) static booleanMaceItem.canSmashAttack(LivingEntity entity) voidItemStack.consume(int amount, LivingEntity entity) ItemStack.consumeAndReturn(int amount, LivingEntity entity) ArrowItem.createArrow(Level level, ItemStack ammo, LivingEntity shooter, ItemStack weapon) SpectralArrowItem.createArrow(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_, ItemStack p_345773_) protected ProjectileCrossbowItem.createProjectile(Level level, LivingEntity shooter, ItemStack weapon, ItemStack ammo, boolean isCrit) protected ProjectileProjectileWeaponItem.createProjectile(Level level, LivingEntity shooter, ItemStack weapon, ItemStack ammo, boolean isCrit) ProjectileWeaponItem.draw(ItemStack weapon, ItemStack ammo, LivingEntity shooter) booleanElytraItem.elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks) ChorusFruitItem.finishUsingItem(ItemStack stack, Level level, LivingEntity entityLiving) Called when the player finishes using this Item (E.g.HoneyBottleItem.finishUsingItem(ItemStack stack, Level level, LivingEntity entityLiving) Called when the player finishes using this Item (E.g.Item.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g.ItemStack.finishUsingItem(Level level, LivingEntity livingEntity) Called when the item in use count reach 0, e.g.MilkBucketItem.finishUsingItem(ItemStack stack, Level level, LivingEntity entityLiving) Called when the player finishes using this Item (E.g.OminousBottleItem.finishUsingItem(ItemStack p_338871_, Level p_338693_, LivingEntity p_338370_) PotionItem.finishUsingItem(ItemStack stack, Level level, LivingEntity entityLiving) Called when the player finishes using this Item (E.g.SpyglassItem.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g.SuspiciousStewItem.finishUsingItem(ItemStack stack, Level level, LivingEntity entityLiving) Called when the player finishes using this Item (E.g.static intCrossbowItem.getChargeDuration(ItemStack stack, LivingEntity shooter) static ItemStackProjectileWeaponItem.getHeldProjectile(LivingEntity shooter, Predicate<ItemStack> isAmmo) private static doubleMaceItem.getKnockbackPower(Player player, LivingEntity entity, Vec3 entityPos) private static floatCrossbowItem.getPowerForTime(int timeLeft, ItemStack stack, LivingEntity shooter) private static org.joml.Vector3fCrossbowItem.getProjectileShotVector(LivingEntity shooter, Vec3 distance, float angle) intBowItem.getUseDuration(ItemStack stack, LivingEntity entity) intBrushItem.getUseDuration(ItemStack stack, LivingEntity entity) intCrossbowItem.getUseDuration(ItemStack stack, LivingEntity entity) intEnderEyeItem.getUseDuration(ItemStack stack, LivingEntity entity) intHoneyBottleItem.getUseDuration(ItemStack stack, LivingEntity entity) intInstrumentItem.getUseDuration(ItemStack stack, LivingEntity entity) intItem.getUseDuration(ItemStack stack, LivingEntity entity) intItemStack.getUseDuration(LivingEntity entity) intMilkBucketItem.getUseDuration(ItemStack stack, LivingEntity entity) intOminousBottleItem.getUseDuration(ItemStack p_338822_, LivingEntity p_345182_) intPotionItem.getUseDuration(ItemStack stack, LivingEntity entity) intShieldItem.getUseDuration(ItemStack stack, LivingEntity entity) intSpyglassItem.getUseDuration(ItemStack stack, LivingEntity entity) intTridentItem.getUseDuration(ItemStack stack, LivingEntity entity) voidItemStack.hurtAndBreak(int p_220158_, ServerLevel p_346256_, LivingEntity p_220160_, Consumer<Item> p_348596_) voidItemStack.hurtAndBreak(int amount, LivingEntity entity, EquipmentSlot slot) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike item, LivingEntity entity, EquipmentSlot slot) booleanDiggerItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanItemStack.hurtEnemy(LivingEntity target, Player attacker) booleanMaceItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanSwordItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanTridentItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) Current implementations of this method in child classes do not use the entry argument beside ev.DyeItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.Item.interactLivingEntity(ItemStack stack, Player player, LivingEntity interactionTarget, InteractionHand usedHand) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity entity, InteractionHand usedHand) NameTagItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.SaddleItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)booleanArrowItem.isInfinite(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.booleanItem.mineBlock(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity miningEntity) Called when aBlockis destroyed using this Item.booleanShearsItem.mineBlock(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity entityLiving) Called when aBlockis destroyed using this Item.voidBrushItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int remainingUseDuration) Called as the item is being used by an entity.voidCrossbowItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int count) Called as the item is being used by an entity.voidItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int remainingUseDuration) Called as the item is being used by an entity.voidItemStack.onUseTick(Level level, LivingEntity livingEntity, int count) Called as the stack is being used by an entity.voidCrossbowItem.performShooting(Level level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, float velocity, float inaccuracy, LivingEntity target) voidDiggerItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItemStack.postHurtEnemy(LivingEntity target, Player attacker) voidMaceItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidSwordItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidTridentItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidBowItem.releaseUsing(ItemStack stack, Level level, LivingEntity entityLiving, int timeLeft) Called when the player stops using an Item (stops holding the right mouse button).voidCrossbowItem.releaseUsing(ItemStack stack, Level level, LivingEntity entityLiving, int timeLeft) Called when the player stops using an Item (stops holding the right mouse button).voidItem.releaseUsing(ItemStack stack, Level level, LivingEntity livingEntity, int timeCharged) Called when the player stops using an Item (stops holding the right mouse button).voidItemStack.releaseUsing(Level level, LivingEntity livingEntity, int timeLeft) Called when the player releases the use item button.voidSpyglassItem.releaseUsing(ItemStack stack, Level level, LivingEntity livingEntity, int timeCharged) Called when the player stops using an Item (stops holding the right mouse button).voidTridentItem.releaseUsing(ItemStack stack, Level level, LivingEntity entityLiving, int timeLeft) Called when the player stops using an Item (stops holding the right mouse button).protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectileItems, float velocity, float inaccuracy, boolean isCrit, LivingEntity target) protected voidBowItem.shootProjectile(LivingEntity shooter, Projectile projectile, int index, float velocity, float inaccuracy, float angle, LivingEntity target) protected voidCrossbowItem.shootProjectile(LivingEntity shooter, Projectile projectile, int index, float velocity, float inaccuracy, float angle, LivingEntity target) protected abstract voidProjectileWeaponItem.shootProjectile(LivingEntity shooter, Projectile projectile, int index, float velocity, float inaccuracy, float angle, LivingEntity target) private voidSpyglassItem.stopUsing(LivingEntity user) private static booleanCrossbowItem.tryLoadProjectiles(LivingEntity shooter, ItemStack crossbowStack) protected static ItemStackProjectileWeaponItem.useAmmo(ItemStack weapon, ItemStack ammo, LivingEntity shooter, boolean intangable) -
Uses of LivingEntity in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as LivingEntityModifier and TypeFieldDescriptionprivate final LivingEntityEnchantedItemInUse.ownerThe field for theownerrecord component.Methods in net.minecraft.world.item.enchantment that return LivingEntityModifier and TypeMethodDescriptionEnchantedItemInUse.owner()Returns the value of theownerrecord component.Methods in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic floatEnchantmentHelper.getDamageProtection(ServerLevel level, LivingEntity entity, DamageSource damageSource) static intEnchantmentHelper.getEnchantmentLevel(Holder<Enchantment> enchantment, LivingEntity entity) static Optional<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith(DataComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> filter) 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 stack, LivingEntity entity) static booleanEnchantmentHelper.isImmuneToDamage(ServerLevel level, LivingEntity entity, DamageSource damageSource) static floatEnchantmentHelper.modifyCrossbowChargingTime(ItemStack stack, LivingEntity entity, float crossbowChargingTime) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) static floatEnchantmentHelper.processEquipmentDropChance(ServerLevel level, LivingEntity entity, DamageSource damageSource, float equipmentDropChance) static voidEnchantmentHelper.runIterationOnEquipment(LivingEntity entity, EnchantmentHelper.EnchantmentInSlotVisitor visitor) static voidEnchantmentHelper.runIterationOnItem(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.EnchantmentInSlotVisitor visitor) voidEnchantment.runLocationChangedEffects(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, LivingEntity entity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel level, LivingEntity entity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel level, 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 level, LivingEntity entity) Constructors in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantedItemInUse(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) EnchantedItemInUse(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUserecord class. -
Uses of LivingEntity in net.minecraft.world.level
Methods in net.minecraft.world.level with type parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> EntityGetter.getNearbyEntities(Class<T> entityClazz, TargetingConditions entityPredicate, LivingEntity entity, AABB area) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(Class<? extends T> entityClazz, TargetingConditions conditions, LivingEntity target, double x, double y, double z, AABB boundingBox) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(List<? extends T> entities, TargetingConditions predicate, LivingEntity target, double x, double y, double z) Methods in net.minecraft.world.level that return LivingEntityModifier and TypeMethodDescriptionExplosion.getIndirectSourceEntity()private static LivingEntityExplosion.getIndirectSourceEntityInternal(Entity source) Methods in net.minecraft.world.level with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> EntityGetter.getNearbyEntities(Class<T> entityClazz, TargetingConditions entityPredicate, LivingEntity entity, AABB area) EntityGetter.getNearbyPlayers(TargetingConditions predicate, LivingEntity target, AABB area) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(Class<? extends T> entityClazz, TargetingConditions conditions, LivingEntity target, double x, double y, double z, AABB boundingBox) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(List<? extends T> entities, TargetingConditions predicate, LivingEntity target, double x, double y, double z) default PlayerEntityGetter.getNearestPlayer(TargetingConditions predicate, LivingEntity target) default PlayerEntityGetter.getNearestPlayer(TargetingConditions predicate, LivingEntity target, double x, double y, double z) -
Uses of LivingEntity in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static voidTntBlock.explode(Level level, BlockPos pos, LivingEntity entity) Deprecated.booleanTrapDoorBlock.isLadder(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity) voidTntBlock.onCaughtFire(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) private static voidLecternBlock.placeBook(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) voidBedBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidCommandBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidCrafterBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDiodeBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDoorBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDoublePlantBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidJukeboxBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidPitcherCropBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidSmallDripleafBlock.setPlacedBy(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) voidStructureBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidTripWireHookBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidWitherSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidWitherWallSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by ItemBlocks after a block is set in the world, to allow post-place logicstatic booleanLecternBlock.tryPlaceBook(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) -
Uses of LivingEntity in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as LivingEntityFields in net.minecraft.world.level.block.entity with type parameters of type LivingEntityMethods in net.minecraft.world.level.block.entity that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityConduitBlockEntity.findDestroyTarget(Level level, BlockPos pos, UUID targetId) Methods in net.minecraft.world.level.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidStructureBlockEntity.createdBy(LivingEntity author) private static voidBellBlockEntity.glow(LivingEntity entity) private static booleanBellBlockEntity.isRaiderWithinRange(BlockPos pos, LivingEntity raider) booleanCampfireBlockEntity.placeFood(LivingEntity entity, ItemStack food, int cookTime) private voidSculkCatalystBlockEntity.CatalystListener.tryAwardItSpreadsAdvancement(Level level, LivingEntity entity) Method parameters in net.minecraft.world.level.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanBellBlockEntity.areRaidersNearby(BlockPos pos, List<LivingEntity> raiders) private static voidBellBlockEntity.makeRaidersGlow(Level level, BlockPos pos, List<LivingEntity> raiders) voidBellBlockEntity.ResonationEndAction.run(Level level, BlockPos pos, List<LivingEntity> raiders) private static voidBellBlockEntity.showBellParticles(Level level, BlockPos pos, List<LivingEntity> raiders) -
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, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed. -
Uses of LivingEntity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <T extends LivingEntity>
voidClientHooks.copyModelProperties(HumanoidModel<T> original, HumanoidModel<?> replacement) Copies humanoid model properties from the original model to another, used for armor modelsMethods in net.neoforged.neoforge.client with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidIArmPoseTransformer.applyTransform(HumanoidModel<?> model, LivingEntity entity, HumanoidArm arm) This method should be used to apply all wanted transformations to the player when the ArmPose is active.static ModelClientHooks.getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) -
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,M extends EntityModel<T>> Fired when aLivingEntityis rendered.static classRenderLivingEvent.Post<T extends LivingEntity,M extends EntityModel<T>> Fired after an entity is rendered, if the correspondingRenderLivingEvent.Postis not cancelled.static classRenderLivingEvent.Pre<T extends LivingEntity,M extends EntityModel<T>> Fired before an entity is rendered.Fields in net.neoforged.neoforge.client.event declared as LivingEntityMethods in net.neoforged.neoforge.client.event that return LivingEntityConstructors in net.neoforged.neoforge.client.event with parameters of type LivingEntityModifierConstructorDescriptionPost(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) Pre(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) protectedRenderLivingEvent(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
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 intIClientItemExtensions.getArmorLayerTintColor(ItemStack stack, LivingEntity entity, ArmorMaterial.Layer layer, int layerIdx, int fallbackColor) Called when armor layers are rendered byHumanoidArmorLayer.default 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 ModelIClientItemExtensions.getGenericArmorModel(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the armor model for this item when it's equipped.default HumanoidModel<?> IClientItemExtensions.getHumanoidArmorModel(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the humanoid armor model for this item when it's equipped.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.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type LivingEntityModifier and TypeMethodDescriptionDynamicFluidContainerModel.ContainedFluidOverrideHandler.resolve(BakedModel originalModel, ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity, int seed) -
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(Level level, BlockPos pos, LivingEntity entity) static booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect) 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 indoHurtEquipment(DamageSource, float, EquipmentSlot...)and replaces the existing item hurt and break logic with an event-sensitive version.static LivingShieldBlockEventCommonHooks.onDamageBlock(LivingEntity blocker, DamageContainer container, boolean originalBlocked) Creates, posts, and returns aLivingShieldBlockEvent.static booleanCommonHooks.onEntityIncomingDamage(LivingEntity entity, DamageContainer container) Called after invulnerability checks inhurt(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 @org.jetbrains.annotations.Nullable float[]CommonHooks.onLivingFall(LivingEntity entity, float 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, 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.canDisableShield(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault booleanIItemStackExtension.canDisableShield(ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault booleanIItemExtension.canElytraFly(ItemStack stack, LivingEntity entity) Used to determine if the player can use Elytra flight.default booleanIItemStackExtension.canElytraFly(LivingEntity entity) Used to determine if the player can use Elytra flight.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 booleanIItemExtension.elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default booleanIItemStackExtension.elytraFlightTick(LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default @Nullable FoodPropertiesIItemExtension.getFoodProperties(ItemStack stack, @Nullable LivingEntity entity) Get the food properties for this item.default @Nullable FoodPropertiesIItemStackExtension.getFoodProperties(@Nullable LivingEntity entity) Get the food properties for this item.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 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 voidIBlockExtension.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 voidIBlockStateExtension.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) Deprecated, for removal: This API element is subject to removal in a future version.To be replaced with hand sensitive version in 21.2default booleanIItemExtension.onEntitySwing(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default booleanIItemStackExtension.onEntitySwing(LivingEntity entity) Deprecated, for removal: This API element is subject to removal in a future version.To be replaced with hand sensitive version in 21.2default 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.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, Player attackingPlayer, int originalExperience) EventHooks.onChorusFruitTeleport(LivingEntity entity, double targetX, double targetY, double targetZ) static booleanEventHooks.onEffectRemoved(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) static booleanEventHooks.onEffectRemoved(LivingEntity entity, MobEffectInstance effectInstance, @Nullable EffectCure cure) EventHooks.onEnderTeleport(LivingEntity entity, double targetX, double targetY, double targetZ) static booleanEventHooks.onEntityDestroyBlock(LivingEntity entity, BlockPos pos, BlockState state) static ItemStackEventHooks.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) static intEventHooks.onItemUseStart(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive versionas this version provides wrong hand informationstatic 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.ChorusFruit.entityLivingprivate final LivingEntityEntityTeleportEvent.EnderEntity.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.ChorusFruit.getEntityLiving()EntityTeleportEvent.EnderEntity.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 LivingEntityModifierConstructorDescriptionChorusFruit(LivingEntity entity, double targetX, double targetY, double targetZ) EnderEntity(LivingEntity entity, 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) ArmorHurtEvent(EnumMap<EquipmentSlot, ArmorHurtEvent.ArmorEntry> armorMap, LivingEntity player) EffectParticleModificationEvent(LivingEntity entity, MobEffectInstance effect) Expired(LivingEntity living, MobEffectInstance effectInstance) Finish(LivingEntity entity, ItemStack item, int duration, ItemStack result) Hands(LivingEntity entity) LivingBreatheEvent(LivingEntity entity, boolean canBreathe, int consumeAirAmount, int refillAirAmount) LivingChangeTargetEvent(LivingEntity entity, @Nullable LivingEntity aboutToBeSetTarget, LivingChangeTargetEvent.ILivingTargetType targetType) LivingConversionEvent(LivingEntity entity) 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, float 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, 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, @Nullable EffectCure cure) Remove(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure) Start(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive versionas this version provides wrong hand informationStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) Stop(LivingEntity entity, ItemStack item, int duration) Tick(LivingEntity entity, ItemStack item, int duration) Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type LivingEntityModifierConstructorDescriptionPre(LivingEntity entity, EntityType<? extends LivingEntity> outcome, Consumer<Integer> timer) -
Uses of LivingEntity in net.neoforged.neoforge.event.entity.player
Constructors in net.neoforged.neoforge.event.entity.player with parameters of type LivingEntityModifierConstructorDescriptionCanContinueSleepingEvent(LivingEntity entity, @Nullable Player.BedSleepingProblem problem) -
Uses of LivingEntity in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanFluidType.canDrownIn(LivingEntity entity) Returns whether the entity can drown in the fluid.booleanFluidType.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid. -
Uses of LivingEntity in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as LivingEntityModifier and TypeFieldDescriptionprotected final LivingEntityEntityEquipmentInvWrapper.entityThe entity.Constructors in net.neoforged.neoforge.items.wrapper with parameters of type LivingEntityModifierConstructorDescriptionEntityArmorInvWrapper(LivingEntity entity) EntityEquipmentInvWrapper(LivingEntity entity, EquipmentSlot.Type slotType) EntityHandsInvWrapper(LivingEntity entity)