Uses of Class
net.minecraft.world.entity.LivingEntity
Packages that use LivingEntity
Package
Description
-
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 pVehicle) Retrieves the maximum number of hearts representing the vehicle's health for the given mount entity.voidGuiGraphics.renderItem(LivingEntity pEntity, ItemStack pStack, int pX, int pY, int pSeed) Renders an item stack for a living entity at the specified coordinates with a random seed.private voidGuiGraphics.renderItem(LivingEntity pEntity, Level pLevel, ItemStack pStack, int pX, int pY, int pSeed) Renders an item stack for a living entity in a specific level at the specified coordinates with a random seed.private voidGuiGraphics.renderItem(LivingEntity pEntity, Level pLevel, ItemStack pStack, int pX, int pY, int pSeed, int pGuiOffset) 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 pGuiGraphics, float pX, float pY, float pScale, org.joml.Vector3f pTranslate, org.joml.Quaternionf pPose, org.joml.Quaternionf pCameraOrientation, LivingEntity pEntity) 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 pGuiGraphics, int pX1, int pY1, int pX2, int pY2, int pScale, float pYOffset, float pMouseX, float pMouseY, LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.client.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 pRightArm, ModelPart pLeftArm, LivingEntity pLivingEntity, boolean pRightHanded) -
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 pEntity, float pGamma, float pPartialTick) floatFogRenderer.DarknessFogFunction.getModifiedVoidDarkness(LivingEntity p_234189_, MobEffectInstance p_234190_, float p_234191_, float p_234192_) default floatFogRenderer.MobEffectFogFunction.getModifiedVoidDarkness(LivingEntity pEntity, MobEffectInstance pEffectInstance, float p_234210_, float pPartialTick) static floatGameRenderer.getNightVisionScale(LivingEntity pLivingEntity, float pNanoTime) default booleanFogRenderer.MobEffectFogFunction.isEnabled(LivingEntity pEntity, float p_234207_) voidItemInHandRenderer.renderItem(LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBuffer, int pSeed) 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 pFogData, LivingEntity pEntity, MobEffectInstance pEffectInstance, float pFarPlaneDistance, 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 pModel, ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) -
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 pStack, Level pLevel, LivingEntity pEntity, int pSeed) static intLivingEntityRenderer.getOverlayCoords(LivingEntity pLivingEntity, float pU) private Vec3GuardianRenderer.getPosition(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) static booleanLivingEntityRenderer.isEntityUpsideDown(LivingEntity pEntity) voidItemRenderer.renderStatic(LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) -
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> pModelParent, EntityModel<T> pModel, ResourceLocation pTextureLocation, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch, float pPartialTick, int pColor) protected static <T extends LivingEntity>
voidRenderLayer.renderColoredCutoutModel(EntityModel<T> pModel, ResourceLocation pTextureLocation, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pEntity, int pColor) Methods in net.minecraft.client.renderer.entity.layers with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidItemInHandLayer.renderArmWithItem(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) protected voidPlayerItemInHandLayer.renderArmWithItem(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) private voidPlayerItemInHandLayer.renderArmWithSpyglass(LivingEntity pEntity, ItemStack pStack, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight) -
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 pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) Deprecated.floatItemPropertyFunction.call(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) Deprecated.floatClampedItemPropertyFunction.unclampedCall(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) floatCompassItemPropertyFunction.unclampedCall(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed) -
Uses of LivingEntity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type LivingEntityModifier and TypeMethodDescription<E extends LivingEntity>
voidGameTestHelper.assertEntityIsHolding(BlockPos pPos, EntityType<E> pEntityType, Item pItem) Methods in net.minecraft.gametest.framework that return LivingEntityModifier and TypeMethodDescriptionGameTestHelper.makeAboutToDrown(LivingEntity pEntity) GameTestHelper.withLowHealth(LivingEntity pEntity) Methods in net.minecraft.gametest.framework with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidGameTestHelper.assertLivingEntityHasMobEffect(LivingEntity pEntity, Holder<MobEffect> pEffect, int pAmplifier) GameTestHelper.makeAboutToDrown(LivingEntity pEntity) GameTestHelper.withLowHealth(LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugPackets.getMemoryDescriptions(LivingEntity pEntity, long pGameTime) static voidDebugPackets.sendEntityBrain(LivingEntity pLivingEntity) 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 pEntity, Holder<Attribute> pAttribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity pTarget) -
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 pEntity, ServerGamePacketListenerImpl pConnection) -
Uses of LivingEntity in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as LivingEntityMethods in net.minecraft.world.damagesource with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic FallLocationFallLocation.getCurrentFallLocation(LivingEntity pEntity) static floatCombatRules.getDamageAfterAbsorb(LivingEntity pEntity, float pDamage, DamageSource pDamageSource, float pArmorValue, float pArmorToughness) DamageSource.getLocalizedDeathMessage(LivingEntity pLivingEntity) Gets the death message that is displayed when the player diesDamageSources.mobAttack(LivingEntity pMob) DamageSources.mobProjectile(Entity pProjectile, LivingEntity pThrower) DamageSources.noAggroMobAttack(LivingEntity pMob) DamageSources.spit(Entity pSpit, LivingEntity pThrower) DamageSources.sting(LivingEntity pEntity) DamageSources.windCharge(Entity pWindCharge, LivingEntity pThrower) Constructors in net.minecraft.world.damagesource with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanAbsorptionMobEffect.applyEffectTick(LivingEntity p_294484_, int p_294672_) booleanBadOmenMobEffect.applyEffectTick(LivingEntity p_296327_, int p_294357_) booleanHealOrHarmMobEffect.applyEffectTick(LivingEntity pLivingEntity, int pAmplifier) booleanHungerMobEffect.applyEffectTick(LivingEntity p_296407_, int p_296356_) booleanMobEffect.applyEffectTick(LivingEntity pLivingEntity, int pAmplifier) 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 pSource, Entity pIndirectSource, LivingEntity pLivingEntity, int pAmplifier, double pHealth) voidMobEffect.applyInstantenousEffect(Entity pSource, Entity pIndirectSource, LivingEntity pLivingEntity, int pAmplifier, double pHealth) static OozingMobEffect.NearbySlimesOozingMobEffect.NearbySlimes.closeTo(LivingEntity pEntity) floatMobEffectInstance.getBlendFactor(LivingEntity pEntity, float pDelta) static intMobEffectUtil.getDigSpeedAmplification(LivingEntity pEntity) floatMobEffectInstance.BlendState.getFactor(LivingEntity pEntity, float pDelta) static booleanMobEffectUtil.hasDigSpeed(LivingEntity pEntity) static booleanMobEffectUtil.hasWaterBreathing(LivingEntity pEntity) voidMobEffect.onEffectAdded(LivingEntity pLivingEntity, int pAmplifier) voidMobEffectInstance.onEffectAdded(LivingEntity pLivingEntity) voidAbsorptionMobEffect.onEffectStarted(LivingEntity p_294820_, int p_295222_) voidMobEffect.onEffectStarted(LivingEntity pLivingEntity, int pAmplifier) voidMobEffectInstance.onEffectStarted(LivingEntity pEntity) voidInfestedMobEffect.onMobHurt(LivingEntity pLivingEntity, int pAmplifier, DamageSource pDamageSource, float pAmount) voidMobEffect.onMobHurt(LivingEntity pLivingEntity, int pAmplifier, DamageSource pDamageSource, float pAmount) voidMobEffectInstance.onMobHurt(LivingEntity pLivingEntity, DamageSource pDamageSource, float pAmount) voidMobEffect.onMobRemoved(LivingEntity pLivingEntity, int pAmplifier, Entity.RemovalReason pReason) voidMobEffectInstance.onMobRemoved(LivingEntity pLivingEntity, Entity.RemovalReason pReason) voidOozingMobEffect.onMobRemoved(LivingEntity pLivingEntity, int pAmplifier, Entity.RemovalReason pReason) voidWeavingMobEffect.onMobRemoved(LivingEntity pLivingEntity, int pAmplifier, Entity.RemovalReason pReason) voidWindChargedMobEffect.onMobRemoved(LivingEntity p_338439_, int p_338875_, Entity.RemovalReason p_338258_) private voidInfestedMobEffect.spawnSilverfish(Level pLevel, LivingEntity pEntity, double pX, double pY, double pZ) booleanMobEffectInstance.tick(LivingEntity pEntity, Runnable pOnExpirationRunnable) -
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 pDefender) protected voidLivingEntity.blockUsingShield(LivingEntity pAttacker) booleanLivingEntity.canAttack(LivingEntity pTarget) booleanLivingEntity.canAttack(LivingEntity pLivingentity, TargetingConditions pCondition) booleanNeutralMob.canAttack(LivingEntity pEntity) booleanTamableAnimal.canAttack(LivingEntity pTarget) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity pEntity, EquipmentSlot pSlot) protected voidLivingEntity.createWitherRose(LivingEntity pEntitySource) protected voidLivingEntity.doAutoAttackOnTouch(LivingEntity pTarget) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity pEntity, EquipmentSlot pSlot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity pEntity, EquipmentSlot pSlot, Predicate<ItemStack> pStackFilter) Entity.getDismountLocationForPassenger(LivingEntity pPassenger) default booleanNeutralMob.isAngryAt(LivingEntity pTarget) booleanTamableAnimal.isOwnedBy(LivingEntity pEntity) booleanMob.isWithinMeleeAttackRange(LivingEntity pEntity) booleanEntity.killedEntity(ServerLevel pLevel, LivingEntity pEntity) voidLivingEntity.setLastHurtByMob(LivingEntity pLivingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidNeutralMob.setLastHurtByMob(LivingEntity pLivingEntity) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate.voidAreaEffectCloud.setOwner(LivingEntity pOwner) voidMob.setTarget(LivingEntity pTarget) Sets the active target the Goal system uses for trackingvoidNeutralMob.setTarget(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingbooleanTamableAnimal.wantsToAttack(LivingEntity pTarget, LivingEntity pOwner) Method parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> pGlowSquid, ServerLevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) Constructor parameters in net.minecraft.world.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotectedLivingEntity(EntityType<? extends LivingEntity> pEntityType, Level pLevel) -
Uses of LivingEntity in net.minecraft.world.entity.ai
Classes in net.minecraft.world.entity.ai with type parameters of type LivingEntityModifier and 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<?>> pMemoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> pSensorTypes) static <E extends LivingEntity>
Brain.Provider<E> Brain.provider(Collection<? extends MemoryModuleType<?>> pMemoryTypes, Collection<? extends SensorType<? extends Sensor<? super E>>> pSensorTypes) -
Uses of LivingEntity in net.minecraft.world.entity.ai.attributes
Fields in net.minecraft.world.entity.ai.attributes with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends LivingEntity>, AttributeSupplier> DefaultAttributes.SUPPLIERSMethod parameters in net.minecraft.world.entity.ai.attributes with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic AttributeSupplierDefaultAttributes.getSupplier(EntityType<? extends LivingEntity> pLivingEntity) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior
Classes in net.minecraft.world.entity.ai.behavior with type parameters of type LivingEntityModifier and 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>> pBehaviors, ServerLevel pLevel, E pOwner, long pGameTime) static <E extends LivingEntity,T>
BehaviorControl<E> CopyMemoryWithExpiry.create(Predicate<E> pCanCopyMemory, MemoryModuleType<? extends T> pSourceMemory, MemoryModuleType<T> pTargetMemory, UniformInt pDurationOfCopy) static <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create(int pMaxDistanceFromVehicle, BiPredicate<E, Entity> pShouldStopRiding) static <E extends LivingEntity>
BehaviorControl<E> EraseMemoryIf.create(Predicate<E> pShouldEraseMemory, MemoryModuleType<?> pErasingMemory) static <E extends LivingEntity>
BehaviorControl<E> GoToWantedItem.create(Predicate<E> pCanWalkToItem, float pSpeedModifier, boolean pHasTarget, int pMaxDistToWalk) static <E extends LivingEntity,T extends LivingEntity>
BehaviorControl<E> InteractWith.of(EntityType<? extends T> pType, int pInteractionRange, Predicate<E> pSelfFilter, Predicate<T> pTargetFilter, MemoryModuleType<T> pMemory, float pSpeedModifier, int pMaxDist) static <E extends LivingEntity,T extends LivingEntity>
BehaviorControl<E> InteractWith.of(EntityType<? extends T> pType, int pInteractionRange, Predicate<E> pSelfFilter, Predicate<T> pTargetFilter, MemoryModuleType<T> pMemory, float pSpeedModifier, int pMaxDist) static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of(EntityType<? extends T> pType, int pInteractionRange, MemoryModuleType<T> pInteractMemory, float pSpeedModifier, int pMaxDist) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerGate(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> pTriggers, GateBehavior.OrderPolicy pOrderPolicy, GateBehavior.RunningPolicy pRunningPolicy) static <E extends LivingEntity>
OneShot<E> TriggerGate.triggerOneShuffled(List<com.mojang.datafixers.util.Pair<? extends Trigger<? super E>, Integer>> pTriggers) Methods in net.minecraft.world.entity.ai.behavior that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity pShooter) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) PrepareRamNearestTarget.RamCandidate.getTarget()static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity pCenterEntity, LivingEntity pLivingEntity1, LivingEntity pLivingEntity2) private LivingEntityShowTradesToPlayer.lookAtTarget(Villager pVillager) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity pKid) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Map<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas(List<LivingEntity> pKids) static BehaviorControl<LivingEntity> BecomePassiveIfMemoryPresent.create(MemoryModuleType<?> pPacifyingMemory, int pPacifyDuration) static BehaviorControl<LivingEntity> GoToWantedItem.create(float pSpeedModifier, boolean pHasTarget, int pMaxDistToWalk) static BehaviorControl<LivingEntity> InteractWithDoor.create()static OneShot<LivingEntity> LocateHidingPlace.create(int pRadius, float pSpeedModifier, int pCloseEnoughDist) static BehaviorControl<LivingEntity> Mount.create(float pSpeedModifier) static OneShot<LivingEntity> MoveToSkySeeingSpot.create(float pSpeedModifier) static BehaviorControl<LivingEntity> ReactToBell.create()static BehaviorControl<LivingEntity> ResetRaidStatus.create()static BehaviorControl<LivingEntity> RingBell.create()static OneShot<LivingEntity> SetEntityLookTarget.create(float pMaxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> pCanLootAtTarget, float pMaxDist) static OneShot<LivingEntity> SetEntityLookTarget.create(EntityType<?> pEntityType, float pMaxDist) static BehaviorControl<LivingEntity> SetEntityLookTarget.create(MobCategory pCategory, float pMakDist) static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float pMaxDist, UniformInt pInterval) Deprecated.private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float pMaxDist, UniformInt pInterval, Predicate<LivingEntity> pCanLookAtTarget) Deprecated.static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(EntityType<?> pEntityType, float pMaxDist, UniformInt pInterval) Deprecated.static BehaviorControl<LivingEntity> SetHiddenState.create(int pStayHiddenSeconds, int pCloseEnoughdist) static BehaviorControl<LivingEntity> SetLookAndInteract.create(EntityType<?> pEntityType, int pMaxDist) static BehaviorControl<LivingEntity> SetRaidStatus.create()static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(float pSpeedModifier, int pCloseEnoughDist) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static OneShot<LivingEntity> SocializeAtBell.create()static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) static BehaviorControl<LivingEntity> StopBeingAngryIfTargetDead.create()static BehaviorControl<LivingEntity> static BehaviorControl<LivingEntity> UpdateActivityFromSchedule.create()static BehaviorControl<LivingEntity> ValidateNearbyPoi.create(Predicate<Holder<PoiType>> pPoiValidator, MemoryModuleType<GlobalPos> pPoiPosMemory) static BehaviorControl<LivingEntity> VillagerCalmDown.create()static BehaviorControl<LivingEntity> WakeUp.create()private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> pKids) private static com.mojang.datafixers.util.Pair<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getFullLookBehavior()static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity pLivingEntity, MemoryModuleType<UUID> pTargetMemory) private static com.mojang.datafixers.util.Pair<Integer, BehaviorControl<LivingEntity>> VillagerGoalPackages.getMinimalLookBehavior()static <T extends LivingEntity>
BehaviorControl<LivingEntity> InteractWith.of(EntityType<? extends T> pType, int pInteractionRange, MemoryModuleType<T> pInteractMemory, float pSpeedModifier, int pMaxDist) Methods in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity pEntity, BlockPos pPos, Optional<List<LivingEntity>> pNearestLivingEntities) private static booleanValidateNearbyPoi.bedIsOccupied(ServerLevel pLevel, BlockPos pPos, LivingEntity pEntity) PrepareRamNearestTarget.calculateRammingStartPosition(PathfinderMob pPathfinder, LivingEntity pEntity) static booleanBehaviorUtils.canSee(LivingEntity pLivingEntity, LivingEntity pTarget) protected booleanCountDownCooldownTicks.canStillUse(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected booleanSleepInBed.canStillUse(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> pInteractionTarget, MemoryAccessor<?, PositionTracker> pLookTarget, MemoryAccessor<?, WalkTarget> pWalkTarget, LivingEntity pKid) protected booleanSleepInBed.checkExtraStartConditions(ServerLevel pLevel, LivingEntity pOwner) private voidPrepareRamNearestTarget.chooseRamPosition(PathfinderMob pPathfinder, LivingEntity pEntity) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel pLevel, LivingEntity pEntity, Node pPrevious, Node pNext, Set<GlobalPos> pDoorPositions, Optional<List<LivingEntity>> pNearestLivingEntities) private voidCrossbowAttack.crossbowAttack(E pShooter, LivingEntity pTarget) final voidDoNothing.doStop(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) static booleanBehaviorUtils.entityIsVisible(Brain<?> pBrain, LivingEntity pTarget) private voidShowTradesToPlayer.findItemsToDisplay(LivingEntity pEntity, Villager pVillager) private static LivingEntityCrossbowAttack.getAttackTarget(LivingEntity pShooter) CountDownCooldownTicks.getCooldownTickMemory(LivingEntity pEntity) static Optional<LivingEntity> BehaviorUtils.getLivingEntityFromUUIDMemory(LivingEntity pLivingEntity, MemoryModuleType<UUID> pTargetMemory) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) private static Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel pLevel, LivingEntity pEntity) static LivingEntityBehaviorUtils.getTargetNearestMe(LivingEntity pCenterEntity, LivingEntity pLivingEntity1, LivingEntity pLivingEntity2) static booleanVillagerPanicTrigger.hasHostile(LivingEntity pEntity) static booleanMoveToSkySeeingSpot.hasNoBlocksAbove(ServerLevel pLevel, LivingEntity pEntity, BlockPos pPos) static booleanBehaviorUtils.isBreeding(LivingEntity pEntity) private static booleanPlayTagWithOtherKids.isChasingSomeone(LivingEntity p_23668_) private static booleanInteractWithDoor.isDoorTooFarAway(ServerLevel pLevel, LivingEntity pEntity, GlobalPos pPos) private static booleanPlayTagWithOtherKids.isFriendChasingMe(LivingEntity pEntity, LivingEntity pKid) static booleanVillagerPanicTrigger.isHurt(LivingEntity pEntity) static booleanBehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity pLivingEntity, LivingEntity pTarget, double pDistance) private static booleanStopAttackingIfTargetInvalid.isTiredOfTryingToReachTarget(LivingEntity pEntity, Optional<Long> pTimeSinceInvalidTarget) private static booleanDismountOrSkipMounting.isVehicleValid(LivingEntity pEntity, Entity pVehicle, int pDistance) booleanBlockPosTracker.isVisibleBy(LivingEntity pEntity) booleanEntityTracker.isVisibleBy(LivingEntity pEntity) booleanPositionTracker.isVisibleBy(LivingEntity pEntity) static booleanBehaviorUtils.isWithinAttackRange(Mob pMob, LivingEntity pTarget, int pCooldown) static voidBehaviorUtils.lockGazeAndWalkToEachOther(LivingEntity pFirstEntity, LivingEntity pSecondEntity, float pSpeed, int pDistance) private static voidBehaviorUtils.lookAtEachOther(LivingEntity pFirstEntity, LivingEntity pSecondEntity) static voidBehaviorUtils.lookAtEntity(LivingEntity pEntity, LivingEntity pTarget) private voidCrossbowAttack.lookAtTarget(Mob pShooter, LivingEntity pTarget) private static booleanVillagerGoalPackages.raidExistsAndActive(ServerLevel p_260274_, LivingEntity p_260163_) private static booleanVillagerGoalPackages.raidExistsAndNotVictory(ServerLevel p_259939_, LivingEntity p_259384_) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity pLivingEntity, BlockPos pPos, float pSpeed, int pDistance) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity pEntity, PositionTracker pPositionTracker, float pSpeedModifier, int pCloseEnoughDist) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity pLivingEntity, Entity pTarget, float pSpeed, int pDistance) private static voidBehaviorUtils.setWalkAndLookTargetMemoriesToEachOther(LivingEntity pFirstEntity, LivingEntity pSecondEntity, float pSpeed, int pDistance) protected voidSleepInBed.start(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected voidCountDownCooldownTicks.stop(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) protected voidSleepInBed.stop(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) private voidGiveGiftToHero.throwGift(Villager pVillager, LivingEntity pHero) private static voidTradeWithVillager.throwHalfStack(Villager pVillager, Set<Item> pStack, LivingEntity pEntity) static voidBehaviorUtils.throwItem(LivingEntity pLivingEntity, ItemStack pStack, Vec3 pOffset) static voidBehaviorUtils.throwItem(LivingEntity pEntity, ItemStack pStack, Vec3 pOffset, Vec3 pSpeedMultiplier, float pYOffset) static voidGoAndGiveItemsToTarget.throwItem(LivingEntity pEntity, ItemStack pStack, Vec3 pThrowPos) protected voidCountDownCooldownTicks.tick(ServerLevel pLevel, LivingEntity pOwner, long pGameTime) final voidDoNothing.tickOrStop(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) final booleanDoNothing.tryStart(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) private static LivingEntityPlayTagWithOtherKids.whoAreYouChasing(LivingEntity pKid) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanInteractWithDoor.areOtherMobsComingThroughDoor(LivingEntity pEntity, BlockPos pPos, Optional<List<LivingEntity>> pNearestLivingEntities) private static voidPlayTagWithOtherKids.chaseKid(MemoryAccessor<?, LivingEntity> pInteractionTarget, MemoryAccessor<?, PositionTracker> pLookTarget, MemoryAccessor<?, WalkTarget> pWalkTarget, LivingEntity pKid) private static Map<LivingEntity, Integer> PlayTagWithOtherKids.checkHowManyChasersEachFriendHas(List<LivingEntity> pKids) static voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel pLevel, LivingEntity pEntity, Node pPrevious, Node pNext, Set<GlobalPos> pDoorPositions, Optional<List<LivingEntity>> pNearestLivingEntities) static OneShot<AgeableMob> BabyFollowAdult.create(UniformInt pFollowRange, Function<LivingEntity, Float> pSpeedModifier) static OneShot<LivingEntity> SetEntityLookTarget.create(Predicate<LivingEntity> pCanLootAtTarget, float pMaxDist) private static BehaviorControl<LivingEntity> SetEntityLookTargetSometimes.create(float pMaxDist, UniformInt pInterval, Predicate<LivingEntity> pCanLookAtTarget) Deprecated.static BehaviorControl<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create(Function<LivingEntity, Float> pSpeedModifier) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static OneShot<LivingEntity> SetWalkTargetFromLookTarget.create(Predicate<LivingEntity> pCanSetWalkTarget, Function<LivingEntity, Float> pSpeedModifier, int pCloseEnoughDist) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Function<E, Optional<? extends LivingEntity>> pTargetFinder) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Predicate<E> pCanAttack, Function<E, Optional<? extends LivingEntity>> pTargetFinder) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl<LivingEntity> StartCelebratingIfTargetDead.create(int pDuration, BiPredicate<LivingEntity, LivingEntity> pCanDance) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) static BehaviorControl<LivingEntity> StayCloseToTarget.create(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, Predicate<LivingEntity> pPredicate, int pCloseEnoughDist, int pTooClose, float pSpeedModifier) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(BiConsumer<E, LivingEntity> pOnStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> pCanStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> pCanStopAttacking, BiConsumer<E, LivingEntity> pOnStopAttacking, boolean pCanGrowTiredOfTryingToReachTarget) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> pCanStopAttacking, BiConsumer<E, LivingEntity> pOnStopAttacking, boolean pCanGrowTiredOfTryingToReachTarget) private static Optional<LivingEntity> PlayTagWithOtherKids.findSomeoneBeingChased(List<LivingEntity> pKids) static LivingEntityBehaviorUtils.getNearestTarget(LivingEntity pCenterEntity, Optional<LivingEntity> pOptionalEntity, LivingEntity pLivingEntity) private static booleanBehaviorUtils.targetIsValid(Brain<?> pBrain, MemoryModuleType<? extends LivingEntity> pMemoryType, Predicate<LivingEntity> pLivingPredicate) private static booleanBehaviorUtils.targetIsValid(Brain<?> pBrain, MemoryModuleType<? extends LivingEntity> pMemoryType, Predicate<LivingEntity> pLivingPredicate) static booleanBehaviorUtils.targetIsValid(Brain<?> pBrains, MemoryModuleType<? extends LivingEntity> pMemorymodule, EntityType<?> pEntityType) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type LivingEntityModifierConstructorDescriptionRamCandidate(BlockPos pStartPosition, BlockPos pTargetPosition, LivingEntity pTarget) Constructor parameters in net.minecraft.world.entity.ai.behavior with type arguments of type LivingEntityModifierConstructorDescriptionFollowTemptation(Function<LivingEntity, Float> pSpeedModifier) FollowTemptation(Function<LivingEntity, Float> pSpeedModifier, Function<LivingEntity, Double> pCloseEnoughDistance) GoAndGiveItemsToTarget(Function<LivingEntity, Optional<PositionTracker>> pTargetPositionGetter, float pSpeedModifier, int pDuration) -
Uses of LivingEntity in net.minecraft.world.entity.ai.behavior.declarative
Classes in net.minecraft.world.entity.ai.behavior.declarative with type parameters of type LivingEntityModifier and 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>>> pInitializer) (package private) static <E extends LivingEntity,M>
BehaviorBuilder<E, M> BehaviorBuilder.create(BehaviorBuilder.TriggerWithResult<E, M> pTrigger) (package private) static <E extends LivingEntity,M>
BehaviorBuilder.TriggerWithResult<E, M> BehaviorBuilder.get(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> pApp) static <E extends LivingEntity>
BehaviorBuilder.Instance<E> BehaviorBuilder.instance()static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> BehaviorBuilder.triggerIf(BiPredicate<ServerLevel, E> pPredicate) static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity,M>
BehaviorBuilder<E, M> BehaviorBuilder.unbox(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> pApp) -
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 pEntity, int pCooldown) 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>> pTargetFinder) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal
Classes in net.minecraft.world.entity.ai.goal with type parameters of type LivingEntityFields in net.minecraft.world.entity.ai.goal declared as LivingEntityModifier and TypeFieldDescriptionprivate 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 pEntity) protected voidMeleeAttackGoal.checkAndPerformAttack(LivingEntity pTarget) private booleanTemptGoal.shouldFollow(LivingEntity p_148139_) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionAvoidEntityGoal(PathfinderMob pMob, Class<T> pEntityClassToAvoid, float pMaxDistance, double pWalkSpeedModifier, double pSprintSpeedModifier, Predicate<LivingEntity> pPredicateOnAvoidEntity) AvoidEntityGoal(PathfinderMob pMob, Class<T> pEntityClassToAvoid, Predicate<LivingEntity> pAvoidPredicate, float pMaxDistance, double pWalkSpeedModifier, double pSprintSpeedModifier, Predicate<LivingEntity> pPredicateOnAvoidEntity) Goal that helps mobs avoid mobs of a specific classInteractGoal(Mob p_148111_, Class<? extends LivingEntity> p_148112_, float p_148113_) InteractGoal(Mob p_25415_, Class<? extends LivingEntity> p_25416_, float p_25417_, float p_25418_) LookAtPlayerGoal(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) LookAtPlayerGoal(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability) LookAtPlayerGoal(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability, boolean pOnlyHorizontal) -
Uses of LivingEntity in net.minecraft.world.entity.ai.goal.target
Classes in net.minecraft.world.entity.ai.goal.target with type parameters of type LivingEntityModifier and 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 pMob, LivingEntity pTarget) protected booleanTargetGoal.canAttack(LivingEntity pPotentialTarget, TargetingConditions pTargetPredicate) Checks if this is a suitable target.private booleanTargetGoal.canReach(LivingEntity pTarget) Checks to see if this entity can find a short path to the given target.voidNearestAttackableTargetGoal.setTarget(LivingEntity pTarget) Constructor parameters in net.minecraft.world.entity.ai.goal.target with type arguments of type LivingEntityModifierConstructorDescriptionNearestAttackableTargetGoal(Mob pMob, Class<T> pTargetType, boolean pMustSee, Predicate<LivingEntity> pTargetPredicate) NearestAttackableTargetGoal(Mob pMob, Class<T> pTargetType, int pRandomInterval, boolean pMustSee, boolean pMustReach, Predicate<LivingEntity> pTargetPredicate) NearestAttackableWitchTargetGoal(Raider pMob, Class<T> pTargetType, int pRandomInterval, boolean pMustSee, boolean pMustReach, Predicate<LivingEntity> pTargetPredicate) NearestHealableRaiderTargetGoal(Raider pMob, Class<T> pTargetType, boolean pMustSee, Predicate<LivingEntity> pTargetPredicate) NonTameRandomTargetGoal(TamableAnimal pTamableMob, Class<T> pTargetType, boolean pMustSee, Predicate<LivingEntity> pTargetPredicate) -
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> pPredicate) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> pPredicate) Methods in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(LivingEntity pEntity) Method parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifier and TypeMethodDescriptionbooleanNearestVisibleLivingEntities.contains(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.find(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findAll(Predicate<LivingEntity> pPredicate) NearestVisibleLivingEntities.findClosest(Predicate<LivingEntity> pPredicate) Constructors in net.minecraft.world.entity.ai.memory with parameters of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(LivingEntity pLivingEntity, List<LivingEntity> pNearbyLivingEntities) Constructor parameters in net.minecraft.world.entity.ai.memory with type arguments of type LivingEntityModifierConstructorDescriptionNearestVisibleLivingEntities(LivingEntity pLivingEntity, List<LivingEntity> pNearbyLivingEntities) -
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 pWarden, Predicate<LivingEntity> pPredicate) protected MemoryModuleType<LivingEntity> AxolotlAttackablesSensor.getMemory()protected MemoryModuleType<LivingEntity> FrogAttackablesSensor.getMemory()protected abstract MemoryModuleType<LivingEntity> NearestVisibleLivingEntitySensor.getMemory()protected MemoryModuleType<LivingEntity> VillagerHostilesSensor.getMemory()private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(LivingEntity pEntity) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity pLivingEntity) Methods in net.minecraft.world.entity.ai.sensing with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidGolemSensor.checkForNearbyGolem(LivingEntity pLivingEntity) protected voidDummySensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidGolemSensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidHurtBySensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidIsInWaterSensor.doTick(ServerLevel p_217816_, LivingEntity p_217817_) protected voidNearestVisibleLivingEntitySensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidPiglinBruteSpecificSensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidPiglinSpecificSensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidPlayerSensor.doTick(ServerLevel pLevel, LivingEntity pEntity) protected voidVillagerBabiesSensor.doTick(ServerLevel pLevel, LivingEntity pEntity) PiglinSpecificSensor.findNearestRepellent(ServerLevel pLevel, LivingEntity pLivingEntity) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestEntity(LivingEntity pEntity) private List<LivingEntity> VillagerBabiesSensor.getNearestVillagerBabies(LivingEntity pLivingEntity) protected Optional<NearestVisibleLivingEntities> NearestVisibleLivingEntitySensor.getVisibleEntities(LivingEntity pEntity) private NearestVisibleLivingEntitiesVillagerBabiesSensor.getVisibleEntities(LivingEntity pLivingEntity) static voidGolemSensor.golemDetected(LivingEntity pLivingEntity) private booleanAxolotlAttackablesSensor.isClose(LivingEntity pAttacker, LivingEntity pTarget) private booleanVillagerHostilesSensor.isClose(LivingEntity pAttacker, LivingEntity pTarget) static booleanSensor.isEntityAttackable(LivingEntity pAttacker, LivingEntity pTarget) static booleanSensor.isEntityAttackableIgnoringLineOfSight(LivingEntity pAttacker, LivingEntity pTarget) static booleanSensor.isEntityTargetable(LivingEntity pLivingEntity, LivingEntity pTarget) private booleanVillagerHostilesSensor.isHostile(LivingEntity pEntity) private booleanAxolotlAttackablesSensor.isHostileTarget(LivingEntity pTarget) private booleanAxolotlAttackablesSensor.isHuntTarget(LivingEntity pAttacker, LivingEntity pTarget) protected booleanAxolotlAttackablesSensor.isMatchingEntity(LivingEntity pAttacker, LivingEntity pTarget) protected booleanFrogAttackablesSensor.isMatchingEntity(LivingEntity pAttacker, LivingEntity pTarget) protected abstract booleanNearestVisibleLivingEntitySensor.isMatchingEntity(LivingEntity pAttacker, LivingEntity pTarget) protected booleanVillagerHostilesSensor.isMatchingEntity(LivingEntity pAttacker, LivingEntity pTarget) private booleanFrogAttackablesSensor.isUnreachableAttackTarget(LivingEntity pAttacker, LivingEntity pTarget) private booleanVillagerBabiesSensor.isVillagerBaby(LivingEntity p_26839_) Method parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenEntitySensor.getClosest(Warden pWarden, Predicate<LivingEntity> pPredicate) Constructor parameters in net.minecraft.world.entity.ai.sensing with type arguments of type LivingEntityModifierConstructorDescriptionMobSensor(int pScanRate, BiPredicate<T, LivingEntity> pMobTest, Predicate<T> pReadyTest, MemoryModuleType<Boolean> pToSet, int pMemoryTimeToLive) -
Uses of LivingEntity in net.minecraft.world.entity.ai.targeting
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 pAttacker, LivingEntity pTarget) Method parameters in net.minecraft.world.entity.ai.targeting with type arguments of type LivingEntityModifier and TypeMethodDescriptionTargetingConditions.selector(Predicate<LivingEntity> pCustomPredicate) -
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 pPlayer, InteractionHand pHand, T pEntity) 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 pMob, LivingEntity pTarget) protected voidPanda.PandaHurtByTargetGoal.alertOther(Mob pMob, LivingEntity pTarget) protected voidPolarBear.PolarBearHurtByTargetGoal.alertOther(Mob pMob, LivingEntity pTarget) protected voidFox.FoxMeleeAttackGoal.checkAndPerformAttack(LivingEntity pTarget) protected voidPolarBear.PolarBearMeleeAttackGoal.checkAndPerformAttack(LivingEntity pTarget) Pig.getDismountLocationForPassenger(LivingEntity pLivingEntity) static booleanFox.isPathClear(Fox pFox, LivingEntity pLivingEntity) voidSnowGolem.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.voidFox.setTarget(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingvoidPanda.PandaLookAtPlayerGoal.setTarget(LivingEntity pLookAt) booleanFox.FoxAlertableEntitiesSelector.test(LivingEntity pEntity) booleanWolf.wantsToAttack(LivingEntity pTarget, LivingEntity pOwner) Constructor parameters in net.minecraft.world.entity.animal with type arguments of type LivingEntityModifierConstructorDescriptionDefendTrustedTargetGoal(Class<LivingEntity> pTargetType, boolean pMustSee, boolean pMustReach, Predicate<LivingEntity> pPredicate) DefendTrustedTargetGoal(Class<LivingEntity> pTargetType, boolean pMustSee, boolean pMustReach, Predicate<LivingEntity> pPredicate) FoxLookAtPlayerGoal(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) PandaLookAtPlayerGoal(Panda pPanda, Class<? extends LivingEntity> pLookAtType, float pLookDistance) -
Uses of LivingEntity in net.minecraft.world.entity.animal.allay
Subclasses of LivingEntity in net.minecraft.world.entity.animal.allayMethods in net.minecraft.world.entity.animal.allay with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<PositionTracker> AllayAi.getItemDepositPosition(LivingEntity p_218424_) static Optional<ServerPlayer> AllayAi.getLikedPlayer(LivingEntity pEntity) private static Optional<PositionTracker> AllayAi.getLikedPlayerPositionTracker(LivingEntity pEntity) private static booleanAllayAi.hasWantedItem(LivingEntity p_273346_) static voidAllayAi.hearNoteblock(LivingEntity pEntity, BlockPos pPos) private static booleanAllayAi.shouldDepositItemsAtLikedNoteblock(LivingEntity pEntity, Brain<?> pBrain, GlobalPos pPos) -
Uses of LivingEntity in net.minecraft.world.entity.animal.armadillo
Subclasses of LivingEntity in net.minecraft.world.entity.animal.armadilloMethods in net.minecraft.world.entity.animal.armadillo with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.axolotl
Subclasses of LivingEntity in net.minecraft.world.entity.animal.axolotlMethods in net.minecraft.world.entity.animal.axolotl that return LivingEntityMethods in net.minecraft.world.entity.animal.axolotl that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic BehaviorControl<LivingEntity> ValidatePlayDead.create()private static Optional<? extends LivingEntity> AxolotlAi.findNearestValidAttackTarget(Axolotl p_149299_) Methods in net.minecraft.world.entity.animal.axolotl with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanAxolotlAi.canSetWalkTargetFromLookTarget(LivingEntity p_182381_) private static floatAxolotlAi.getSpeedModifier(LivingEntity p_149301_) private static floatAxolotlAi.getSpeedModifierChasing(LivingEntity p_149289_) private static floatAxolotlAi.getSpeedModifierFollowingAdult(LivingEntity p_149295_) static voidAxolotl.onStopAttacking(Axolotl pAxolotl, LivingEntity pTarget) Method parameters in net.minecraft.world.entity.animal.axolotl with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanAxolotl.checkAxolotlSpawnRules(EntityType<? extends LivingEntity> pAxolotl, ServerLevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
Uses of LivingEntity in net.minecraft.world.entity.animal.camel
Subclasses of LivingEntity in net.minecraft.world.entity.animal.camelMethods in net.minecraft.world.entity.animal.camel with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.world.entity.animal.frog
Subclasses of LivingEntity in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog that return LivingEntityMethods in net.minecraft.world.entity.animal.frog with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate voidShootTongue.addUnreachableTargetToMemory(Frog pFrog, LivingEntity pTarget) static booleanFrog.canEat(LivingEntity pEntity) private booleanShootTongue.canPathfindToTarget(Frog pFrog, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.animal.goat
Subclasses of LivingEntity in net.minecraft.world.entity.animal.goat -
Uses of LivingEntity in net.minecraft.world.entity.animal.horse
Subclasses of LivingEntity in net.minecraft.world.entity.animal.horseModifier and 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 pLivingEntity) private Vec3AbstractHorse.getDismountLocationInDirection(Vec3 pDirection, LivingEntity pPassenger) protected Vec2AbstractHorse.getRiddenRotation(LivingEntity pEntity) voidLlama.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.private voidLlama.spit(LivingEntity pTarget) -
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 pAttackTarget) -
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 pHead, LivingEntity pTarget) voidWitherBoss.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack. -
Uses of LivingEntity in net.minecraft.world.entity.decoration
Subclasses of LivingEntity in net.minecraft.world.entity.decoration -
Uses of LivingEntity in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item declared as LivingEntityMethods in net.minecraft.world.entity.item that return LivingEntityConstructors in net.minecraft.world.entity.item with parameters of type LivingEntityModifierConstructorDescriptionPrimedTnt(Level pLevel, double pX, double pY, double pZ, LivingEntity pOwner) -
Uses of LivingEntity in net.minecraft.world.entity.monster
Classes in net.minecraft.world.entity.monster with type parameters of type LivingEntityModifier and TypeClassDescription(package private) static 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 pEntity) protected voidZoglin.blockedByShield(LivingEntity pEntity) booleanAbstractIllager.canAttack(LivingEntity pTarget) protected voidSlime.dealDamage(LivingEntity pLivingEntity) Strider.getDismountLocationForPassenger(LivingEntity pLivingEntity) private booleanZoglin.isTargetable(LivingEntity p_34253_) booleanZombie.killedEntity(ServerLevel pLevel, LivingEntity pEntity) booleanDrowned.okTarget(LivingEntity p_32396_) default voidCrossbowAttackMob.performCrossbowAttack(LivingEntity pUser, float pVelocity) voidAbstractSkeleton.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.voidDrowned.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.voidIllusioner.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.voidPillager.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.voidRangedAttackMob.performRangedAttack(LivingEntity pTarget, float pVelocity) Attack the specified entity using a ranged attack.voidWitch.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.private voidZoglin.setAttackTarget(LivingEntity pTarget) voidCreeper.setTarget(LivingEntity pTarget) Sets the active target the Goal system uses for trackingvoidEnderMan.setTarget(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingvoidZombifiedPiglin.setTarget(LivingEntity pLivingEntity) Sets the active target the Task system uses for trackingbooleanGuardian.GuardianAttackSelector.test(LivingEntity pEntity) Constructor parameters in net.minecraft.world.entity.monster with type arguments of type LivingEntityModifierConstructorDescriptionEndermanLookForPlayerGoal(EnderMan pEnderman, Predicate<LivingEntity> pSelectionPredicate) -
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 pBreeze, LivingEntity pTarget) private static booleanShoot.isTargetWithinRange(Breeze pBreeze, LivingEntity pTarget) private static booleanLongJump.outOfAggroRange(Breeze pBreeze, LivingEntity pTarget) static Vec3BreezeUtil.randomPointBehindTarget(LivingEntity pTarget, RandomSource pRandom) private static Vec3Slide.randomPointInMiddleCircle(Breeze pBreeze, LivingEntity pTarget) private static BlockPosLongJump.snapToSurface(LivingEntity pOwner, Vec3 pTargetPos) private static booleanLongJump.tooCloseForJump(Breeze pBreeze, LivingEntity pTarget) -
Uses of LivingEntity in net.minecraft.world.entity.monster.hoglin
Subclasses of LivingEntity in net.minecraft.world.entity.monster.hoglinMethods in net.minecraft.world.entity.monster.hoglin that return LivingEntityMethods in net.minecraft.world.entity.monster.hoglin that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> HoglinAi.findNearestValidAttackTarget(Hoglin p_34611_) Methods in net.minecraft.world.entity.monster.hoglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHoglin.blockedByShield(LivingEntity pEntity) private static voidHoglinAi.broadcastAttackTarget(Hoglin pHoglin, LivingEntity pTarget) private static voidHoglinAi.broadcastRetreat(Hoglin pHoglin, LivingEntity pTarget) static booleanHoglinBase.hurtAndThrowTarget(LivingEntity pHoglin, LivingEntity pTarget) private static voidHoglinAi.maybeRetaliate(Hoglin pHoglin, LivingEntity pLivingEntity) protected static voidHoglinAi.onHitTarget(Hoglin pHoglin, LivingEntity pTarget) private static voidHoglinAi.retreatFromNearestTarget(Hoglin pHoglin, LivingEntity pTarget) private static voidHoglinAi.setAttackTarget(Hoglin pHoglin, LivingEntity pTarget) private static voidHoglinAi.setAttackTargetIfCloserThanCurrent(Hoglin pHoglin, LivingEntity pTarget) private static voidHoglinAi.setAvoidTarget(Hoglin pHoglin, LivingEntity pTarget) static voidHoglinBase.throwTarget(LivingEntity pHoglin, LivingEntity pTarget) protected static voidHoglinAi.wasHurtBy(Hoglin pHoglin, LivingEntity pLivingEntity) -
Uses of LivingEntity in net.minecraft.world.entity.monster.piglin
Subclasses of LivingEntity in net.minecraft.world.entity.monster.piglinMethods in net.minecraft.world.entity.monster.piglin that return LivingEntityMethods in net.minecraft.world.entity.monster.piglin that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static BehaviorControl<LivingEntity> PiglinAi.babySometimesRideBabyHoglin()static BehaviorControl<LivingEntity> RememberIfHoglinWasKilled.create()static BehaviorControl<LivingEntity> StartAdmiringItemIfSeen.create(int pAdmireDuration) static BehaviorControl<LivingEntity> StopAdmiringIfItemTooFarAway.create(int pMaxDist) static BehaviorControl<LivingEntity> StopAdmiringIfTiredOfTryingToReachItem.create(int pMaxTimeToReachItem, int pDisableDuration) private static RunOne<LivingEntity> PiglinAi.createIdleLookBehaviors()private static ImmutableList<com.mojang.datafixers.util.Pair<OneShot<LivingEntity>, Integer>> PiglinAi.createLookBehaviors()private static Optional<? extends LivingEntity> PiglinAi.findNearestValidAttackTarget(Piglin p_35001_) private static Optional<? extends LivingEntity> PiglinBruteAi.findNearestValidAttackTarget(AbstractPiglin p_35087_) private static Optional<LivingEntity> PiglinAi.getAngerTarget(AbstractPiglin pPiglin) static Optional<LivingEntity> PiglinAi.getAvoidTarget(Piglin pPiglin) private static Optional<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange(AbstractPiglin pPiglinBrute, MemoryModuleType<? extends LivingEntity> pMemoryType) Methods in net.minecraft.world.entity.monster.piglin with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static voidPiglinAi.admireGoldItem(LivingEntity pPiglin) protected static voidPiglinAi.broadcastAngerTarget(AbstractPiglin pPiglin, LivingEntity pTarget) private static voidPiglinAi.broadcastRetreat(Piglin pPiglin, LivingEntity pTarget) private static booleanPiglinAi.doesntSeeAnyPlayerHoldingLovedItem(LivingEntity p_34983_) private static booleanPiglinAi.hasCrossbow(LivingEntity p_34919_) private static booleanPiglinAi.isNearestValidAttackTarget(Piglin pPiglin, LivingEntity pTarget) private static booleanPiglinBruteAi.isNearestValidAttackTarget(AbstractPiglin pPiglinBrute, LivingEntity pTarget) static booleanPiglinAi.isPlayerHoldingLovedItem(LivingEntity p_34884_) static booleanPiglinAi.isWearingGold(LivingEntity pLivingEntity) protected static voidPiglinAi.maybeRetaliate(AbstractPiglin pPiglin, LivingEntity pTarget) voidPiglin.performRangedAttack(LivingEntity pTarget, float pDistanceFactor) Attack the specified entity using a ranged attack.private static voidPiglinAi.retreatFromNearestTarget(Piglin pPiglin, LivingEntity pTarget) private static booleanPiglinAi.seesPlayerHoldingLovedItem(LivingEntity pPiglin) protected static voidPiglinAi.setAngerTarget(AbstractPiglin pPiglin, LivingEntity pTarget) protected static voidPiglinBruteAi.setAngerTarget(PiglinBrute pPiglinBrute, LivingEntity pAngerTarget) private static voidPiglinAi.setAngerTargetIfCloserThanCurrent(AbstractPiglin pPiglin, LivingEntity pCurrentTarget) private static voidPiglinAi.setAngerTargetToNearestTargetablePlayerIfFound(AbstractPiglin pPiglin, LivingEntity pCurrentTarget) private static voidPiglinAi.setAvoidTargetAndDontHuntForAWhile(Piglin pPiglin, LivingEntity pTarget) private static booleanPiglinAi.wantsToDance(LivingEntity p_34811_, LivingEntity p_34812_) protected static voidPiglinAi.wasHurtBy(Piglin pPiglin, LivingEntity pTarget) protected static voidPiglinBruteAi.wasHurtBy(PiglinBrute pPiglinBrute, LivingEntity pTarget) private static booleanPiglinAi.wasHurtRecently(LivingEntity pPiglin) Method parameters in net.minecraft.world.entity.monster.piglin with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> PiglinBruteAi.getTargetIfWithinRange(AbstractPiglin pPiglinBrute, MemoryModuleType<? extends LivingEntity> pMemoryType) -
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 pWarden, LivingEntity pEntity) private static voidWardenAi.onTargetInvalid(Warden p_219529_, LivingEntity p_219530_) voidWarden.setAttackTarget(LivingEntity pAttackTarget) static voidWardenAi.setDigCooldown(LivingEntity pEntity) -
Uses of LivingEntity in net.minecraft.world.entity.npc
Subclasses of LivingEntity in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidVillager.setLastHurtByMob(LivingEntity pLivingBase) Hint to AI tasks that we were attacked by the passed EntityLivingBase and should retaliate. -
Uses of LivingEntity in net.minecraft.world.entity.player
Subclasses of LivingEntity in net.minecraft.world.entity.playerMethods in net.minecraft.world.entity.player with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPlayer.blockUsingShield(LivingEntity pEntity) protected voidPlayer.doAutoAttackOnTouch(LivingEntity pTarget) booleanPlayer.killedEntity(ServerLevel pLevel, LivingEntity pEntity) -
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 pEntity, DamageSource pDamageSource) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairProjectile.calculateHorizontalHurtKnockbackDirection(LivingEntity pEntity, DamageSource pDamageSource) it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePairThrownPotion.calculateHorizontalHurtKnockbackDirection(LivingEntity pEntity, DamageSource pDamageSource) private voidEvokerFangs.dealDamageTo(LivingEntity pTarget) protected voidAbstractArrow.doKnockback(LivingEntity pEntity, DamageSource pDamageSource) protected voidAbstractArrow.doPostHurtEffects(LivingEntity pTarget) protected voidArrow.doPostHurtEffects(LivingEntity pLiving) protected voidSpectralArrow.doPostHurtEffects(LivingEntity pLiving) static AbstractArrowProjectileUtil.getMobArrow(LivingEntity pShooter, ItemStack pArrow, float pVelocity, ItemStack pWeapon) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity pShooter, Item pWeapon) Deprecated.voidEvokerFangs.setOwner(LivingEntity pOwner) Constructors in net.minecraft.world.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionprotectedAbstractArrow(EntityType<? extends AbstractArrow> pEntityType, LivingEntity pOwner, Level pLevel, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) AbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) Arrow(Level pLevel, LivingEntity pOwner, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) DragonFireball(Level pLevel, LivingEntity pOwner, Vec3 pMovement) EvokerFangs(Level pLevel, double pX, double pY, double pZ, float pYRot, int pWarmupDelay, LivingEntity pOwner) Fireball(EntityType<? extends Fireball> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) FireworkRocketEntity(Level pLevel, ItemStack pStack, LivingEntity pShooter) LargeFireball(Level pLevel, LivingEntity pOwner, Vec3 pMovement, int pExplosionPower) ShulkerBullet(Level pLevel, LivingEntity pShooter, Entity pFinalTarget, Direction.Axis pAxis) SmallFireball(Level pLevel, LivingEntity pOwner, Vec3 pMovement) Snowball(Level pLevel, LivingEntity pShooter) SpectralArrow(Level pLevel, LivingEntity pOwner, ItemStack pPickupItemStack, ItemStack pFiredFromWeapon) ThrowableItemProjectile(EntityType<? extends ThrowableItemProjectile> pEntityType, LivingEntity pShooter, Level pLevel) protectedThrowableProjectile(EntityType<? extends ThrowableProjectile> pEntityType, LivingEntity pShooter, Level pLevel) ThrownEgg(Level pLevel, LivingEntity pShooter) ThrownEnderpearl(Level pLevel, LivingEntity pShooter) ThrownExperienceBottle(Level pLevel, LivingEntity pShooter) ThrownPotion(Level pLevel, LivingEntity pShooter) ThrownTrident(Level pLevel, LivingEntity pShooter, ItemStack pPickupItemStack) WitherSkull(Level pLevel, LivingEntity pOwner, Vec3 pMovement) -
Uses of LivingEntity in net.minecraft.world.entity.raid
Subclasses of LivingEntity in net.minecraft.world.entity.raid -
Uses of LivingEntity in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return LivingEntityMethods in net.minecraft.world.entity.vehicle with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter pLevel, LivingEntity pPassenger, AABB pBoundingBox) static booleanDismountHelper.canDismountTo(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) AbstractMinecart.getDismountLocationForPassenger(LivingEntity pLivingEntity) Boat.getDismountLocationForPassenger(LivingEntity pLivingEntity) -
Uses of LivingEntity in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as LivingEntityConstructors in net.minecraft.world.inventory with parameters of type LivingEntityModifierConstructorDescriptionArmorSlot(Container pContainer, LivingEntity pOwner, EquipmentSlot pSlot, int pSlotIndex, int pX, int pY, ResourceLocation pEmptyIcon) -
Uses of LivingEntity in net.minecraft.world.item
Methods in net.minecraft.world.item that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Predicate<LivingEntity> MaceItem.knockbackPredicate(Player pPlayer, Entity pEntity) Methods in net.minecraft.world.item with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanElytraItem.canElytraFly(ItemStack stack, LivingEntity entity) static booleanMaceItem.canSmashAttack(LivingEntity pEntity) voidItemStack.consume(int pAmount, LivingEntity pEntity) ItemStack.consumeAndReturn(int pAmount, LivingEntity pEntity) ArrowItem.createArrow(Level pLevel, ItemStack pAmmo, LivingEntity pShooter, ItemStack pWeapon) SpectralArrowItem.createArrow(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_, ItemStack p_345773_) protected ProjectileCrossbowItem.createProjectile(Level pLevel, LivingEntity pShooter, ItemStack pWeapon, ItemStack pAmmo, boolean pIsCrit) protected ProjectileProjectileWeaponItem.createProjectile(Level pLevel, LivingEntity pShooter, ItemStack pWeapon, ItemStack pAmmo, boolean pIsCrit) ProjectileWeaponItem.draw(ItemStack pWeapon, ItemStack pAmmo, LivingEntity pShooter) booleanElytraItem.elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks) ChorusFruitItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving) Called when the player finishes using this Item (E.g. finishes eating.).HoneyBottleItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving) Called when the player finishes using this Item (E.g. finishes eating.).Item.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity) Called when the player finishes using this Item (E.g. finishes eating.).ItemStack.finishUsingItem(Level pLevel, LivingEntity pLivingEntity) Called when the item in use count reach 0, e.g. item food eaten.MilkBucketItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving) Called when the player finishes using this Item (E.g. finishes eating.).OminousBottleItem.finishUsingItem(ItemStack p_338871_, Level p_338693_, LivingEntity p_338370_) PotionItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving) Called when the player finishes using this Item (E.g. finishes eating.).SpyglassItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity) Called when the player finishes using this Item (E.g. finishes eating.).SuspiciousStewItem.finishUsingItem(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving) Called when the player finishes using this Item (E.g. finishes eating.).static intCrossbowItem.getChargeDuration(ItemStack pStack, LivingEntity pShooter) static ItemStackProjectileWeaponItem.getHeldProjectile(LivingEntity pShooter, Predicate<ItemStack> pIsAmmo) private static doubleMaceItem.getKnockbackPower(Player pPlayer, LivingEntity pEntity, Vec3 pEntityPos) private static floatCrossbowItem.getPowerForTime(int pTimeLeft, ItemStack pStack, LivingEntity pShooter) private static org.joml.Vector3fCrossbowItem.getProjectileShotVector(LivingEntity pShooter, Vec3 pDistance, float pAngle) intBowItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intBrushItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intCrossbowItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intEnderEyeItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intHoneyBottleItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intInstrumentItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intItemStack.getUseDuration(LivingEntity pEntity) intMilkBucketItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intOminousBottleItem.getUseDuration(ItemStack p_338822_, LivingEntity p_345182_) intPotionItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intShieldItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intSpyglassItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) intTridentItem.getUseDuration(ItemStack pStack, LivingEntity pEntity) voidItemStack.hurtAndBreak(int p_220158_, ServerLevel p_346256_, LivingEntity p_220160_, Consumer<Item> p_348596_) voidItemStack.hurtAndBreak(int pAmount, LivingEntity pEntity, EquipmentSlot pSlot) ItemStack.hurtAndConvertOnBreak(int pAmount, ItemLike pItem, LivingEntity pEntity, EquipmentSlot pSlot) booleanDiggerItem.hurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanItem.hurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanItemStack.hurtEnemy(LivingEntity pTarget, Player pAttacker) booleanMaceItem.hurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanSwordItem.hurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) Current implementations of this method in child classes do not use the entry argument beside ev.booleanTridentItem.hurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) Current implementations of this method in child classes do not use the entry argument beside ev.DyeItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.SaddleItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)booleanArrowItem.isInfinite(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.booleanItem.mineBlock(ItemStack pStack, Level pLevel, BlockState pState, BlockPos pPos, LivingEntity pMiningEntity) Called when aBlockis destroyed using this Item.booleanShearsItem.mineBlock(ItemStack pStack, Level pLevel, BlockState pState, BlockPos pPos, LivingEntity pEntityLiving) Called when aBlockis destroyed using this Item.voidBrushItem.onUseTick(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pRemainingUseDuration) Called as the item is being used by an entity.voidCrossbowItem.onUseTick(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pCount) Called as the item is being used by an entity.voidItem.onUseTick(Level pLevel, LivingEntity pLivingEntity, ItemStack pStack, int pRemainingUseDuration) Called as the item is being used by an entity.voidItemStack.onUseTick(Level pLevel, LivingEntity pLivingEntity, int pCount) Called as the stack is being used by an entity.voidCrossbowItem.performShooting(Level pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, float pVelocity, float pInaccuracy, LivingEntity pTarget) voidDiggerItem.postHurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) voidItem.postHurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) voidItemStack.postHurtEnemy(LivingEntity pTarget, Player pAttacker) voidMaceItem.postHurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) voidSwordItem.postHurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) voidTridentItem.postHurtEnemy(ItemStack pStack, LivingEntity pTarget, LivingEntity pAttacker) voidBowItem.releaseUsing(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving, int pTimeLeft) Called when the player stops using an Item (stops holding the right mouse button).voidCrossbowItem.releaseUsing(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving, int pTimeLeft) Called when the player stops using an Item (stops holding the right mouse button).voidItem.releaseUsing(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity, int pTimeCharged) Called when the player stops using an Item (stops holding the right mouse button).voidItemStack.releaseUsing(Level pLevel, LivingEntity pLivingEntity, int pTimeLeft) Called when the player releases the use item button.voidSpyglassItem.releaseUsing(ItemStack pStack, Level pLevel, LivingEntity pLivingEntity, int pTimeCharged) Called when the player stops using an Item (stops holding the right mouse button).voidTridentItem.releaseUsing(ItemStack pStack, Level pLevel, LivingEntity pEntityLiving, int pTimeLeft) Called when the player stops using an Item (stops holding the right mouse button).protected voidProjectileWeaponItem.shoot(ServerLevel pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, List<ItemStack> pProjectileItems, float pVelocity, float pInaccuracy, boolean pIsCrit, LivingEntity pTarget) protected voidBowItem.shootProjectile(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) protected voidCrossbowItem.shootProjectile(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) protected abstract voidProjectileWeaponItem.shootProjectile(LivingEntity pShooter, Projectile pProjectile, int pIndex, float pVelocity, float pInaccuracy, float pAngle, LivingEntity pTarget) private voidSpyglassItem.stopUsing(LivingEntity pUser) private static booleanCrossbowItem.tryLoadProjectiles(LivingEntity pShooter, ItemStack pCrossbowStack) protected static ItemStackProjectileWeaponItem.useAmmo(ItemStack pWeapon, ItemStack pAmmo, LivingEntity pShooter, boolean pIntangable) -
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 pLevel, LivingEntity pEntity, DamageSource pDamageSource) static intEnchantmentHelper.getEnchantmentLevel(Holder<Enchantment> pEnchantment, LivingEntity pEntity) static Optional<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith(DataComponentType<?> pComponentType, LivingEntity pEntity, Predicate<ItemStack> pFilter) Enchantment.getSlotItems(LivingEntity pEntity) Creates a new map containing all items equipped by an entity in.invalid reference
slots that the enchantment cares about
static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack pStack, LivingEntity pEntity) static booleanEnchantmentHelper.isImmuneToDamage(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource) static floatEnchantmentHelper.modifyCrossbowChargingTime(ItemStack pStack, LivingEntity pEntity, float pCrossbowChargingTime) static voidEnchantmentHelper.onHitBlock(ServerLevel pLevel, ItemStack pStack, LivingEntity pOwner, Entity pEntity, EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) static floatEnchantmentHelper.processEquipmentDropChance(ServerLevel pLevel, LivingEntity pEntity, DamageSource pDamageSource, float pEquipmentDropChance) static voidEnchantmentHelper.runIterationOnEquipment(LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) static voidEnchantmentHelper.runIterationOnItem(ItemStack pStack, EquipmentSlot pSlot, LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) voidEnchantment.runLocationChangedEffects(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, LivingEntity pEntity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel pLevel, LivingEntity pEntity) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel pLevel, ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) voidEnchantment.stopLocationBasedEffects(int pEnchantmentLevel, EnchantedItemInUse pItem, LivingEntity pEntity) static voidEnchantmentHelper.stopLocationBasedEffects(LivingEntity pEntity) static voidEnchantmentHelper.stopLocationBasedEffects(ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) static voidEnchantmentHelper.tickEffects(ServerLevel pLevel, LivingEntity pEntity) Constructors in net.minecraft.world.item.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantedItemInUse(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) EnchantedItemInUse(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner, Consumer<Item> onBreak) Creates an instance of 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> pEntityClazz, TargetingConditions pEntityPredicate, LivingEntity pEntity, AABB pArea) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(Class<? extends T> pEntityClazz, TargetingConditions pConditions, LivingEntity pTarget, double pX, double pY, double pZ, AABB pBoundingBox) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(List<? extends T> pEntities, TargetingConditions pPredicate, LivingEntity pTarget, double pX, double pY, double pZ) Methods in net.minecraft.world.level that return LivingEntityModifier and TypeMethodDescriptionExplosion.getIndirectSourceEntity()private static LivingEntityExplosion.getIndirectSourceEntityInternal(Entity pSource) Methods in net.minecraft.world.level with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
List<T> EntityGetter.getNearbyEntities(Class<T> pEntityClazz, TargetingConditions pEntityPredicate, LivingEntity pEntity, AABB pArea) EntityGetter.getNearbyPlayers(TargetingConditions pPredicate, LivingEntity pTarget, AABB pArea) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(Class<? extends T> pEntityClazz, TargetingConditions pConditions, LivingEntity pTarget, double pX, double pY, double pZ, AABB pBoundingBox) default <T extends LivingEntity>
TEntityGetter.getNearestEntity(List<? extends T> pEntities, TargetingConditions pPredicate, LivingEntity pTarget, double pX, double pY, double pZ) default PlayerEntityGetter.getNearestPlayer(TargetingConditions pPredicate, LivingEntity pTarget) default PlayerEntityGetter.getNearestPlayer(TargetingConditions pPredicate, LivingEntity pTarget, double pX, double pY, double pZ) -
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 pLevel, BlockPos pPos, LivingEntity pEntity) 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 pEntity, Level pLevel, BlockPos pPos, BlockState pState, ItemStack pStack) voidBedBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidCommandBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidCrafterBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidDiodeBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidDoorBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidDoublePlantBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidJukeboxBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidPitcherCropBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) 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 pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidTripWireHookBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidWitherSkullBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by BlockItem after this block has been placed.voidWitherWallSkullBlock.setPlacedBy(Level pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) Called by ItemBlocks after a block is set in the world, to allow post-place logicstatic booleanLecternBlock.tryPlaceBook(LivingEntity pEntity, Level pLevel, BlockPos pPos, BlockState pState, ItemStack pStack) -
Uses of LivingEntity in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity 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 pLevel, BlockPos pPos, UUID pTargetId) Methods in net.minecraft.world.level.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidStructureBlockEntity.createdBy(LivingEntity pAuthor) private static voidBellBlockEntity.glow(LivingEntity p_58841_) private static booleanBellBlockEntity.isRaiderWithinRange(BlockPos pPos, LivingEntity pRaider) booleanCampfireBlockEntity.placeFood(LivingEntity pEntity, ItemStack pFood, int pCookTime) private voidSculkCatalystBlockEntity.CatalystListener.tryAwardItSpreadsAdvancement(Level pLevel, LivingEntity pEntity) Method parameters in net.minecraft.world.level.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanBellBlockEntity.areRaidersNearby(BlockPos pPos, List<LivingEntity> pRaiders) private static voidBellBlockEntity.makeRaidersGlow(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_) voidBellBlockEntity.ResonationEndAction.run(Level pLevel, BlockPos pPos, List<LivingEntity> pRaiders) private static voidBellBlockEntity.showBellParticles(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_) -
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 pLevel, BlockPos pPos, BlockState pState, LivingEntity pPlacer, ItemStack pStack) 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) Deprecated, for removal: This API element is subject to removal in a future version.static booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect, @Nullable Entity source) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable.static doubleCommonHooks.getEntityVisibilityMultiplier(LivingEntity entity, Entity lookingEntity, double originalMultiplier) static ItemStackCommonHooks.getProjectile(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent.CommonHooks.isLivingOnLadder(BlockState state, Level level, BlockPos pos, LivingEntity entity) static voidCommonHooks.onArmorHurt(DamageSource source, EquipmentSlot[] slots, float damage, LivingEntity armoredEntity) This is invoked 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, @Nullable Entity source) ArmorHurtEvent(EnumMap<EquipmentSlot, ArmorHurtEvent.ArmorEntry> armorMap, LivingEntity player, DamageSource source) EffectParticleModificationEvent(LivingEntity entity, MobEffectInstance effect) Expired(LivingEntity living, MobEffectInstance effectInstance) Finish(LivingEntity entity, ItemStack item, int duration, ItemStack result) Hands(LivingEntity entity) LivingBreatheEvent(LivingEntity entity, boolean canBreathe, int consumeAirAmount, int refillAirAmount) LivingChangeTargetEvent(LivingEntity entity, @Nullable LivingEntity aboutToBeSetTarget, LivingChangeTargetEvent.ILivingTargetType targetType) LivingConversionEvent(LivingEntity entity) privateLivingDamageEvent(LivingEntity entity) LivingDeathEvent(LivingEntity entity, DamageSource source) LivingDestroyBlockEvent(LivingEntity entity, BlockPos pos, BlockState state) LivingDropsEvent(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) LivingDrownEvent(LivingEntity entity) Constructor which auto-populates with all vanilla values.LivingDrownEvent(LivingEntity entity, boolean isDrowning, float damageAmount, int bubbleCount) Constructs a new LivingDrownEvent.privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, int duration) privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) LivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) LivingEvent(LivingEntity entity) LivingExperienceDropEvent(LivingEntity entity, @Nullable Player attackingPlayer, int originalExperience) LivingFallEvent(LivingEntity entity, 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)
CommonHooks.canMobEffectBeApplied(LivingEntity, MobEffectInstance, Entity)instead.