Uses of Class
net.minecraft.entity.LivingEntity
Packages that use LivingEntity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of LivingEntity in net.minecraft.block
Methods in net.minecraft.block with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidAbstractRedstoneGateBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBedBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCommandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCrafterBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidDoorBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidJukeboxBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPistonBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPitcherCropBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidSmallDripleafBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidStructureBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTallPlantBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTripwireHookBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWallWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.private static voidTntBlock.primeTnt(World world, BlockPos pos, @Nullable LivingEntity igniter) private static voidLecternBlock.putBook(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) -
Uses of LivingEntity in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as LivingEntityFields in net.minecraft.block.entity with type parameters of type LivingEntityMethods in net.minecraft.block.entity that return LivingEntityModifier and TypeMethodDescriptionprivate static @Nullable LivingEntityConduitBlockEntity.findTargetEntity(World world, BlockPos pos, UUID uuid) Methods in net.minecraft.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanCampfireBlockEntity.addItem(@Nullable LivingEntity user, ItemStack stack, int cookTime) private static voidBellBlockEntity.applyGlowToEntity(LivingEntity entity) Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).private static booleanBellBlockEntity.isRaiderEntity(BlockPos pos, LivingEntity entity) Determines whether the given entity is in theEntityTypeTags.RAIDERSentity type tag and within 48 blocks of the given position.voidStructureBlockBlockEntity.setAuthor(LivingEntity entity) private voidSculkCatalystBlockEntity.Listener.triggerCriteria(World world, LivingEntity deadEntity) Method parameters in net.minecraft.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static voidBellBlockEntity.applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) private static voidBellBlockEntity.applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECTparticles around raiders within 48 blocks.private static booleanBellBlockEntity.raidersHearBell(BlockPos pos, List<LivingEntity> hearingEntities) Determines whether at least one of the given entities would be affected by the bell.voidBellBlockEntity.Effect.run(World world, BlockPos pos, List<LivingEntity> hearingEntities) -
Uses of LivingEntity in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed, int z) voidDrawContext.drawItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) -
Uses of LivingEntity in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud that return LivingEntityMethods in net.minecraft.client.gui.hud with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate intInGameHud.getHeartCount(@Nullable LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.gui.screen.ingame
Methods in net.minecraft.client.gui.screen.ingame with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidInventoryScreen.drawEntity(DrawContext context, float x, float y, float size, Vector3f vector3f, Quaternionf quaternionf, @Nullable Quaternionf quaternionf2, LivingEntity entity) static voidInventoryScreen.drawEntity(DrawContext context, int x1, int y1, int x2, int y2, int size, float float2, float mouseX, float mouseY, LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.item
Methods in net.minecraft.client.item with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault floatClampedModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.floatModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.floatClampedModelPredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) floatCompassAnglePredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
Uses of LivingEntity in net.minecraft.client.network
Subclasses of LivingEntity in net.minecraft.client.networkModifier and TypeClassDescriptionclassclassRepresents the client's own player entity.classRepresents a player entity that is present on the client but is not the client's own player. -
Uses of LivingEntity in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type LivingEntityModifier and TypeMethodDescriptionfloatBackgroundRenderer.DarknessFogModifier.applyColorModifier(LivingEntity entity, StatusEffectInstance effect, float float2, float tickDelta) default floatBackgroundRenderer.StatusEffectFogModifier.applyColorModifier(LivingEntity entity, StatusEffectInstance effect, float float2, float tickDelta) voidBackgroundRenderer.BlindnessFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) voidBackgroundRenderer.DarknessFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) voidBackgroundRenderer.StatusEffectFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) private floatLightmapTextureManager.getDarkness(LivingEntity entity, float factor, float delta) static floatGameRenderer.getNightVisionStrength(LivingEntity entity, float tickDelta) default booleanBackgroundRenderer.StatusEffectFogModifier.shouldApply(LivingEntity entity, float tickDelta) -
Uses of LivingEntity in net.minecraft.client.render.entity
Classes in net.minecraft.client.render.entity with type parameters of type LivingEntityModifier and TypeClassDescriptionclassLivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>> Methods in net.minecraft.client.render.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate Vec3dGuardianEntityRenderer.fromLerpedPosition(LivingEntity entity, double yOffset, float delta) static intLivingEntityRenderer.getOverlay(LivingEntity entity, float whiteOverlayProgress) Returns the packed overlay color for an entity.static booleanLivingEntityRenderer.shouldFlipUpsideDown(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.render.entity.feature
Classes in net.minecraft.client.render.entity.feature with type parameters of type LivingEntityModifier and TypeClassDescriptionclassArmorFeatureRenderer<T extends LivingEntity,M extends BipedEntityModel<T>, A extends BipedEntityModel<T>> classElytraFeatureRenderer<T extends LivingEntity,M extends EntityModel<T>> classEndermanEyesFeatureRenderer<T extends LivingEntity>classHeadFeatureRenderer<T extends LivingEntity,M extends EntityModel<T> & ModelWithHead> classHeldItemFeatureRenderer<T extends LivingEntity,M extends EntityModel<T> & ModelWithArms> classSlimeOverlayFeatureRenderer<T extends LivingEntity>classStuckArrowsFeatureRenderer<T extends LivingEntity,M extends PlayerEntityModel<T>> classStuckObjectsFeatureRenderer<T extends LivingEntity,M extends PlayerEntityModel<T>> classStuckStingersFeatureRenderer<T extends LivingEntity,M extends PlayerEntityModel<T>> classTridentRiptideFeatureRenderer<T extends LivingEntity>classVillagerClothingFeatureRenderer<T extends LivingEntity & VillagerDataContainer,M extends EntityModel<T> & ModelWithHat> classVillagerHeldItemFeatureRenderer<T extends LivingEntity,M extends EntityModel<T>> classWitchHeldItemFeatureRenderer<T extends LivingEntity>Methods in net.minecraft.client.render.entity.feature with type parameters of type LivingEntityModifier and TypeMethodDescriptionprotected static <T extends LivingEntity>
voidFeatureRenderer.render(EntityModel<T> contextModel, EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float age, float headYaw, float headPitch, float tickDelta, int int2) protected static <T extends LivingEntity>
voidFeatureRenderer.renderModel(EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, int int2) Methods in net.minecraft.client.render.entity.feature with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) protected voidPlayerHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) private voidPlayerHeldItemFeatureRenderer.renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
Uses of LivingEntity in net.minecraft.client.render.entity.model
Classes in net.minecraft.client.render.entity.model with type parameters of type LivingEntityModifier and TypeClassDescriptionclassArmorEntityModel<T extends LivingEntity>classBipedEntityModel<T extends LivingEntity>Represents the model of a biped living entity.classElytraEntityModel<T extends LivingEntity>Represents the model of a worn elytra.classEndermanEntityModel<T extends LivingEntity>Represents the model of an enderman-like living entity.classPlayerEntityModel<T extends LivingEntity>Represents the model of a player-like entity.Methods in net.minecraft.client.render.entity.model with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidCrossbowPosing.charge(ModelPart holdingArm, ModelPart pullingArm, LivingEntity actor, boolean rightArmed) -
Uses of LivingEntity in net.minecraft.client.render.item
Methods in net.minecraft.client.render.item with parameters of type LivingEntityModifier and TypeMethodDescriptionItemRenderer.getModel(ItemStack stack, @Nullable World world, @Nullable LivingEntity entity, int seed) voidHeldItemRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) voidItemRenderer.renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) -
Uses of LivingEntity in net.minecraft.client.render.model.json
Methods in net.minecraft.client.render.model.json with parameters of type LivingEntityModifier and TypeMethodDescriptionModelOverrideList.apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
Uses of LivingEntity in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as LivingEntityModifier and TypeFieldDescriptionprivate final @Nullable LivingEntityEnchantmentEffectContext.ownerThe field for theownerrecord component.Methods in net.minecraft.enchantment that return LivingEntityModifier and TypeMethodDescriptionEnchantmentEffectContext.owner()Returns the value of theownerrecord component.Methods in net.minecraft.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidEnchantment.applyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, LivingEntity user) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) static Optional<EnchantmentEffectContext> EnchantmentHelper.chooseEquipmentWith(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.private static voidEnchantmentHelper.forEachEnchantment(LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) private static voidEnchantmentHelper.forEachEnchantment(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) static floatEnchantmentHelper.getCrossbowChargeTime(ItemStack stack, LivingEntity user, float baseCrossbowChargeTime) Enchantment.getEquipment(LivingEntity entity) static floatEnchantmentHelper.getEquipmentDropChance(ServerWorld world, LivingEntity attacker, DamageSource damageSource, float baseEquipmentDropChance) static intEnchantmentHelper.getEquipmentLevel(RegistryEntry<Enchantment> enchantment, LivingEntity entity) Returns the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks.static floatEnchantmentHelper.getProtectionAmount(ServerWorld world, LivingEntity user, DamageSource damageSource) static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack stack, LivingEntity user) static booleanEnchantmentHelper.isInvulnerableTo(ServerWorld world, LivingEntity user, DamageSource damageSource) static voidEnchantmentHelper.onHitBlock(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.onTick(ServerWorld world, LivingEntity user) voidEnchantment.removeLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user) static voidEnchantmentHelper.removeLocationBasedEffects(LivingEntity user) static voidEnchantmentHelper.removeLocationBasedEffects(ItemStack stack, LivingEntity user, EquipmentSlot slot) Constructors in net.minecraft.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantmentEffectContext(ItemStack itemStack, @Nullable EquipmentSlot equipmentSlot, @Nullable LivingEntity livingEntity, Consumer<Item> consumer) EnchantmentEffectContext(ItemStack stack, EquipmentSlot slot, LivingEntity owner) -
Uses of LivingEntity in net.minecraft.entity
Fields in net.minecraft.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityLivingEntity.attackerprivate @Nullable LivingEntityLivingEntity.attackingprivate @Nullable LivingEntityTntEntity.causingEntityprivate @Nullable LivingEntityAreaEffectCloudEntity.ownerMethods in net.minecraft.entity with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<ActionResult> Bucketable.tryBucket(PlayerEntity player, Hand hand, T entity) Methods in net.minecraft.entity that return LivingEntityModifier and TypeMethodDescriptionLivingEntity.getAttacker()LivingEntity.getAttacking()Entity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.Attackable.getLastAttacker()LivingEntity.getLastAttacker()AreaEffectCloudEntity.getOwner()default @Nullable LivingEntityTameable.getOwner()TntEntity.getOwner()LivingEntity.getPrimeAdversary()CrossbowUser.getTarget()Targeter.getTarget()Methods in net.minecraft.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidLivingEntity.attackLivingEntity(LivingEntity target) static booleanDismounting.canPlaceEntityAt(CollisionView world, LivingEntity entity, Box targetBox) static booleanDismounting.canPlaceEntityAt(CollisionView world, Vec3d offset, LivingEntity entity, EntityPose pose) booleanLivingEntity.canTarget(LivingEntity target) static floatDamageUtil.getDamageLeft(LivingEntity armorWearer, float damageAmount, DamageSource damageSource, float armor, float armorToughness) private static StackReferenceLivingEntity.getStackReference(LivingEntity entity, EquipmentSlot slot) booleanLivingEntity.isTarget(LivingEntity entity, TargetPredicate predicate) protected voidLivingEntity.knockback(LivingEntity target) protected voidLivingEntity.onKilledBy(@Nullable LivingEntity adversary) Performs secondary effects after this mob has been killed.booleanEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.voidLivingEntity.setAttacker(@Nullable LivingEntity attacker) voidAreaEffectCloudEntity.setOwner(@Nullable LivingEntity owner) default voidCrossbowUser.shoot(LivingEntity entity, float speed) protected voidLivingEntity.takeShieldHit(LivingEntity attacker) Entity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.Constructors in net.minecraft.entity with parameters of type LivingEntityModifierConstructorDescriptionTntEntity(World world, double x, double y, double z, @Nullable LivingEntity igniter) Constructor parameters in net.minecraft.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotectedLivingEntity(EntityType<? extends LivingEntity> type, World world) -
Uses of LivingEntity in net.minecraft.entity.ai
Fields in net.minecraft.entity.ai with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable Predicate<LivingEntity> TargetPredicate.predicateMethods in net.minecraft.entity.ai that return types with arguments of type LivingEntityMethods in net.minecraft.entity.ai with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidRangedAttackMob.shootAt(LivingEntity target, float pullProgress) booleanTargetPredicate.test(@Nullable LivingEntity baseEntity, LivingEntity targetEntity) Method parameters in net.minecraft.entity.ai with type arguments of type LivingEntityModifier and TypeMethodDescriptionTargetPredicate.setPredicate(@Nullable Predicate<LivingEntity> predicate) -
Uses of LivingEntity in net.minecraft.entity.ai.brain
Classes in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeClassDescriptionclassBrain<E extends LivingEntity>A brain is associated with each living entity.static final classBrain.Profile<E extends LivingEntity>A simple profile of a brain.Fields in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final MemoryModuleType<LivingEntity> MemoryModuleType.ATTACK_TARGETstatic final MemoryModuleType<LivingEntity> MemoryModuleType.AVOID_TARGETprivate final List<LivingEntity> LivingTargetCache.entitiesstatic final MemoryModuleType<LivingEntity> MemoryModuleType.HURT_BY_ENTITYstatic final MemoryModuleType<LivingEntity> MemoryModuleType.INTERACTION_TARGETstatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.MOBSstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_ATTACKABLEstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_HOSTILEstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ZOMBIFIEDstatic final MemoryModuleType<LivingEntity> MemoryModuleType.ROAR_TARGETprivate final Predicate<LivingEntity> LivingTargetCache.targetPredicatestatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.VISIBLE_VILLAGER_BABIESMethods in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
com.mojang.serialization.Codec<Brain<E>> Brain.createBrainCodec(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors) static <E extends LivingEntity>
Brain.Profile<E> Brain.createProfile(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors) Methods in net.minecraft.entity.ai.brain that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionLivingTargetCache.findFirst(Predicate<LivingEntity> predicate) LivingTargetCache.iterate(Predicate<LivingEntity> predicate) LivingTargetCache.stream(Predicate<LivingEntity> predicate) Methods in net.minecraft.entity.ai.brain with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanLivingTargetCache.contains(LivingEntity entity) booleanBlockPosLookTarget.isSeenBy(LivingEntity entity) booleanEntityLookTarget.isSeenBy(LivingEntity entity) booleanLookTarget.isSeenBy(LivingEntity entity) Method parameters in net.minecraft.entity.ai.brain with type arguments of type LivingEntityModifier and TypeMethodDescriptionbooleanLivingTargetCache.anyMatch(Predicate<LivingEntity> predicate) LivingTargetCache.findFirst(Predicate<LivingEntity> predicate) LivingTargetCache.iterate(Predicate<LivingEntity> predicate) LivingTargetCache.stream(Predicate<LivingEntity> predicate) Constructors in net.minecraft.entity.ai.brain with parameters of type LivingEntityConstructor parameters in net.minecraft.entity.ai.brain with type arguments of type LivingEntity -
Uses of LivingEntity in net.minecraft.entity.ai.brain.sensor
Classes in net.minecraft.entity.ai.brain.sensor with type parameters of type LivingEntityModifier and TypeClassDescriptionclassArmadilloScareDetectedSensor<T extends LivingEntity>classNearestLivingEntitiesSensor<T extends LivingEntity>classSensor<E extends LivingEntity>A sensor can update memories over time in a brain.Fields in net.minecraft.entity.ai.brain.sensor with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final SensorType<NearestLivingEntitiesSensor<LivingEntity>> SensorType.NEAREST_LIVING_ENTITIESprivate final BiPredicate<T, LivingEntity> ArmadilloScareDetectedSensor.threateningEntityPredicateMethods in net.minecraft.entity.ai.brain.sensor that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenAttackablesSensor.findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestVisibleLivingEntity(LivingEntity entity) protected MemoryModuleType<LivingEntity> AxolotlAttackablesSensor.getOutputMemoryModule()protected MemoryModuleType<LivingEntity> FrogAttackablesSensor.getOutputMemoryModule()protected abstract MemoryModuleType<LivingEntity> NearestVisibleLivingEntitySensor.getOutputMemoryModule()protected MemoryModuleType<LivingEntity> VillagerHostilesSensor.getOutputMemoryModule()private List<LivingEntity> VillagerBabiesSensor.getVisibleVillagerBabies(LivingEntity entities) Methods in net.minecraft.entity.ai.brain.sensor with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate booleanAxolotlAttackablesSensor.canHunt(LivingEntity axolotl, LivingEntity target) PiglinSpecificSensor.findPiglinRepellent(ServerWorld world, LivingEntity entity) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestVisibleLivingEntity(LivingEntity entity) protected Optional<LivingTargetCache> NearestVisibleLivingEntitySensor.getVisibleLivingEntities(LivingEntity entity) private LivingTargetCacheVillagerBabiesSensor.getVisibleMobs(LivingEntity entity) private List<LivingEntity> VillagerBabiesSensor.getVisibleVillagerBabies(LivingEntity entities) private booleanAxolotlAttackablesSensor.isAlwaysHostileTo(LivingEntity axolotl) private booleanVillagerHostilesSensor.isCloseEnoughForDanger(LivingEntity villager, LivingEntity target) private booleanVillagerHostilesSensor.isHostile(LivingEntity entity) private booleanAxolotlAttackablesSensor.isInRange(LivingEntity axolotl, LivingEntity target) private booleanFrogAttackablesSensor.isTargetUnreachable(LivingEntity entity, LivingEntity target) private booleanVillagerBabiesSensor.isVillagerBaby(LivingEntity entity) protected booleanAxolotlAttackablesSensor.matches(LivingEntity entity, LivingEntity target) protected booleanFrogAttackablesSensor.matches(LivingEntity entity, LivingEntity target) protected abstract booleanNearestVisibleLivingEntitySensor.matches(LivingEntity entity, LivingEntity target) protected booleanVillagerHostilesSensor.matches(LivingEntity entity, LivingEntity target) static voidGolemLastSeenSensor.rememberIronGolem(LivingEntity entity) protected voidDummySensor.sense(ServerWorld world, LivingEntity entity) protected voidGolemLastSeenSensor.sense(ServerWorld world, LivingEntity entity) protected voidHurtBySensor.sense(ServerWorld world, LivingEntity entity) protected voidIsInWaterSensor.sense(ServerWorld world, LivingEntity entity) protected voidNearestPlayersSensor.sense(ServerWorld world, LivingEntity entity) protected voidNearestVisibleLivingEntitySensor.sense(ServerWorld world, LivingEntity entity) protected voidPiglinBruteSpecificSensor.sense(ServerWorld world, LivingEntity entity) protected voidPiglinSpecificSensor.sense(ServerWorld world, LivingEntity entity) protected voidVillagerBabiesSensor.sense(ServerWorld world, LivingEntity entity) static voidGolemLastSeenSensor.senseIronGolem(LivingEntity entity) static booleanSensor.testAttackableTargetPredicate(LivingEntity entity, LivingEntity target) static booleanSensor.testAttackableTargetPredicateIgnoreVisibility(LivingEntity entity, LivingEntity target) static booleanSensor.testTargetPredicate(LivingEntity entity, LivingEntity target) Method parameters in net.minecraft.entity.ai.brain.sensor with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenAttackablesSensor.findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate) Constructor parameters in net.minecraft.entity.ai.brain.sensor with type arguments of type LivingEntityModifierConstructorDescriptionArmadilloScareDetectedSensor(int senseInterval, BiPredicate<T, LivingEntity> threateningEntityPredicate, Predicate<T> canRollUpPredicate, MemoryModuleType<Boolean> memoryModuleType, int expiry) -
Uses of LivingEntity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeClassDescriptionclassCompositeTask<E extends LivingEntity>classCrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity> classGiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>classMultiTickTask<E extends LivingEntity>classRandomTask<E extends LivingEntity>classSingleTickTask<E extends LivingEntity>interfaceTask<E extends LivingEntity>interfaceTaskRunnable<E extends LivingEntity>A functional interface that represents a task.classTaskTriggerer<E extends LivingEntity,M> A lambda-based alternative to subclassingTask.static final classTaskTriggerer.K1<E extends LivingEntity>private static final classTaskTriggerer.QueryMemory<E extends LivingEntity,F extends com.mojang.datafixers.kinds.K1, Value> private static final classTaskTriggerer.Supply<E extends LivingEntity,A> static final classTaskTriggerer.TaskContext<E extends LivingEntity>private static final classTaskTriggerer.TaskContext.Mu<E extends LivingEntity>private static interfaceTaskTriggerer.TaskFunction<E extends LivingEntity,R> private static final classTaskTriggerer.Trigger<E extends LivingEntity>Fields in net.minecraft.entity.ai.brain.task declared as LivingEntityFields in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Function<LivingEntity, Optional<LookTarget>> GiveInventoryToLookTargetTask.lookTargetFunctionprivate final Function<LivingEntity, Float> TemptTask.speedprivate final Function<LivingEntity, Double> TemptTask.stopDistanceGetterMethods in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity,M>
TaskTriggerer<E, M> TaskTriggerer.cast(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, M> app) static <E extends LivingEntity,T extends LivingEntity>
Task<E> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, Predicate<E> entityPredicate, Predicate<T> targetPredicate, MemoryModuleType<T> targetModule, float speed, int completionRange) static <E extends LivingEntity,T extends LivingEntity>
Task<E> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, Predicate<E> entityPredicate, Predicate<T> targetPredicate, MemoryModuleType<T> targetModule, float speed, int completionRange) static <T extends LivingEntity>
Task<LivingEntity> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) static <E extends LivingEntity>
Task<E> ForgetTask.create(Predicate<E> condition, MemoryModuleType<?> memory) static <E extends LivingEntity,T>
Task<E> MemoryTransferTask.create(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider expiry) static <E extends LivingEntity>
Task<E> RidingTask.create(int range, BiPredicate<E, Entity> alternativeRideCondition) static <E extends LivingEntity>
Task<E> WalkToNearestVisibleWantedItemTask.create(Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius) (package private) static <E extends LivingEntity,M>
TaskTriggerer.TaskFunction<E, M> TaskTriggerer.getFunction(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, M> app) static <E extends LivingEntity>
TaskTriggerer.TaskContext<E> TaskTriggerer.newContext()(package private) static <E extends LivingEntity,M>
TaskTriggerer<E, M> TaskTriggerer.of(TaskTriggerer.TaskFunction<E, M> function) static <E extends LivingEntity>
SingleTickTask<E> Tasks.pickRandomly(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks) Returns a task that picks and runs a task fromweightedTasksrandomly.static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.predicate(BiPredicate<ServerWorld, E> predicate) static <E extends LivingEntity>
SingleTickTask<E> abstract <E extends LivingEntity>
voidCompositeTask.RunMode.run(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf(Predicate<E> predicate, SingleTickTask<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf(TaskRunnable<? super E> predicate, TaskRunnable<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.task(Function<TaskTriggerer.TaskContext<E>, ? extends com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, TaskRunnable<E>>> creator) static <E extends LivingEntity>
SingleTickTask<E> Tasks.weighted(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks, CompositeTask.Order order, CompositeTask.RunMode runMode) Returns a task that runs task(s) fromweightedTasks.Methods in net.minecraft.entity.ai.brain.task that return LivingEntityModifier and TypeMethodDescriptionprivate LivingEntityHoldTradeOffersTask.findPotentialCustomer(VillagerEntity villager) private static LivingEntityCrossbowAttackTask.getAttackTarget(LivingEntity entity) static LivingEntityLookTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) static LivingEntityLookTargetUtil.getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second) PrepareRamTask.Ram.getEntity()private static LivingEntityPlayWithVillagerBabiesTask.getInteractionTarget(LivingEntity baby) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic Task<LivingEntity> AdmireItemTask.create(int duration) static Task<LivingEntity> AdmireItemTimeLimitTask.create(int cooldown, int timeLimit) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static Task<LivingEntity> EndRaidTask.create()static <T extends LivingEntity>
Task<LivingEntity> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) static Task<LivingEntity> FindInteractionTargetTask.create(EntityType<?> type, int maxDistance) static Task<LivingEntity> ForgetAngryAtTargetTask.create()static Task<LivingEntity> ForgetBellRingTask.create(int maxHiddenSeconds, int distance) static Task<LivingEntity> ForgetCompletedPointOfInterestTask.create(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> poiPosModule) static SingleTickTask<LivingEntity> GoTowardsLookTargetTask.create(float speed, int completionRange) static SingleTickTask<LivingEntity> GoTowardsLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> HideInHomeTask.create(int maxDistance, float walkSpeed, int preferredDistance) static Task<LivingEntity> HideWhenBellRingsTask.create()static Task<LivingEntity> HuntFinishTask.create()static Task<LivingEntity> static Task<LivingEntity> LookAtDisturbanceTask.create()static SingleTickTask<LivingEntity> LookAtMobTask.create(float maxDistance) static SingleTickTask<LivingEntity> LookAtMobTask.create(Predicate<LivingEntity> predicate, float maxDistance) static SingleTickTask<LivingEntity> LookAtMobTask.create(EntityType<?> type, float maxDistance) static Task<LivingEntity> LookAtMobTask.create(SpawnGroup spawnGroup, float maxDistance) static SingleTickTask<LivingEntity> MeetVillagerTask.create()static Task<LivingEntity> OpenDoorsTask.create()static Task<LivingEntity> PacifyTask.create(MemoryModuleType<?> requiredMemory, int duration) static Task<LivingEntity> PlayDeadTimerTask.create()static Task<LivingEntity> RingBellTask.create()static Task<LivingEntity> ScheduleActivityTask.create()static SingleTickTask<LivingEntity> SeekSkyTask.create(float speed) static Task<LivingEntity> StartRaidTask.create()static Task<LivingEntity> StartRidingTask.create(float speed) static Task<LivingEntity> StartSniffingTask.create()static Task<LivingEntity> StopPanickingTask.create()static Task<LivingEntity> WakeUpTask.create()static Task<LivingEntity> WalkToNearestVisibleWantedItemTask.create(float speed, boolean requiresWalkTarget, int radius) static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) static Task<LivingEntity> WantNewItemTask.create(int range) private static com.mojang.datafixers.util.Pair<Integer, Task<LivingEntity>> VillagerTaskListProvider.createBusyFollowTask()private static com.mojang.datafixers.util.Pair<Integer, Task<LivingEntity>> VillagerTaskListProvider.createFreeFollowTask()static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval) Deprecated.private static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval, Predicate<LivingEntity> predicate) Deprecated.static Task<LivingEntity> LookAtMobWithIntervalTask.follow(EntityType<?> type, float maxDistance, UniformIntProvider interval) Deprecated.private static Map<LivingEntity, Integer> PlayWithVillagerBabiesTask.getBabyInteractionTargetCounts(List<LivingEntity> babies) static Optional<LivingEntity> LookTargetUtil.getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule) private static Optional<LivingEntity> PlayWithVillagerBabiesTask.getLeastPopularBabyInteractionTarget(List<LivingEntity> babies) Methods in net.minecraft.entity.ai.brain.task with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanOpenDoorsTask.cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos) private static booleanForgetAttackTargetTask.cannotReachTarget(LivingEntity livingEntity, Optional<Long> optional) private static booleanRidingTask.canRideTarget(LivingEntity entity, Entity vehicle, int range) static booleanLookTargetUtil.canSee(Brain<?> brain, LivingEntity target) static voidSonicBoomTask.cooldown(LivingEntity warden, int cooldown) SeekSkyTask.findNearbySky(ServerWorld world, LivingEntity entity) private voidPrepareRamTask.findRam(PathAwareEntity entity, LivingEntity target) PrepareRamTask.findRamStart(PathAwareEntity entity, LivingEntity target) protected voidSleepTask.finishRunning(ServerWorld world, LivingEntity entity, long time) protected voidTemptationCooldownTask.finishRunning(ServerWorld world, LivingEntity entity, long time) private static LivingEntityCrossbowAttackTask.getAttackTarget(LivingEntity entity) static LivingEntityLookTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) static LivingEntityLookTargetUtil.getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second) static Optional<LivingEntity> LookTargetUtil.getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule) private static LivingEntityPlayWithVillagerBabiesTask.getInteractionTarget(LivingEntity baby) BreezeJumpTask.getPosToJumpTo(LivingEntity breeze, Vec3d pos) static Vec3dBreezeMovementUtil.getRandomPosBehindTarget(LivingEntity target, Random random) private static Vec3dBreezeSlideTowardsTargetTask.getRandomPosInMediumRange(BreezeEntity breeze, LivingEntity target) TemptationCooldownTask.getTemptationCooldownTicks(LivingEntity entity) static voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) private voidGiveGiftsToHeroTask.giveGifts(VillagerEntity villager, LivingEntity recipient) private static voidGatherItemsVillagerTask.giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target) private static booleanVillagerTaskListProvider.hasActiveRaid(ServerWorld world, LivingEntity entity) static booleanLookTargetUtil.hasBreedTarget(LivingEntity entity) private static booleanPlayWithVillagerBabiesTask.hasInteractionTarget(LivingEntity baby) private static booleanOpenDoorsTask.hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs) private static booleanForgetCompletedPointOfInterestTask.isBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity) static booleanBreezeShootTask.isFacingTarget(BreezeEntity breeze, LivingEntity target) static booleanPanicTask.isHostileNearby(LivingEntity entity) private static booleanPlayWithVillagerBabiesTask.isInteractionTargetOf(LivingEntity entity, LivingEntity baby) static booleanLookTargetUtil.isNewTargetTooFar(LivingEntity source, LivingEntity target, double extraDistance) Checks if an entity can be a new attack target for the source entity.static booleanSeekSkyTask.isSkyVisible(ServerWorld world, LivingEntity entity, BlockPos pos) private static booleanBreezeJumpTask.isTargetOutOfRange(BreezeEntity breeze, LivingEntity target) private booleanFrogEatEntityTask.isTargetReachable(FrogEntity entity, LivingEntity target) private static booleanBreezeJumpTask.isTargetTooClose(BreezeEntity breeze, LivingEntity target) static booleanLookTargetUtil.isTargetWithinAttackRange(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction) private static booleanBreezeShootTask.isTargetWithinRange(BreezeEntity breeze, LivingEntity target) static booleanLookTargetUtil.isVisibleInMemory(LivingEntity source, LivingEntity target) protected voidTemptationCooldownTask.keepRunning(ServerWorld world, LivingEntity entity, long time) static voidLookTargetUtil.lookAt(LivingEntity entity, LivingEntity target) static voidLookTargetUtil.lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int walkCompletionRange) private static voidLookTargetUtil.lookAtEachOther(LivingEntity first, LivingEntity second) private voidFrogEatEntityTask.markTargetAsUnreachable(FrogEntity entity, LivingEntity target) static voidOpenDoorsTask.pathToDoor(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) static voidGiveInventoryToLookTargetTask.playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target) protected voidDismountVehicleTask.run(ServerWorld world, LivingEntity entity, long time) protected voidSleepTask.run(ServerWorld world, LivingEntity entity, long time) private voidCrossbowAttackTask.setLookTarget(MobEntity entity, LivingEntity target) private static voidPlayWithVillagerBabiesTask.setPlayTarget(MemoryQueryResult<?, LivingEntity> interactionTarget, MemoryQueryResult<?, LookTarget> lookTarget, MemoryQueryResult<?, WalkTarget> walkTarget, LivingEntity baby) private voidHoldTradeOffersTask.setupOffers(LivingEntity customer, VillagerEntity villager) protected booleanSleepTask.shouldKeepRunning(ServerWorld world, LivingEntity entity, long time) protected booleanTemptationCooldownTask.shouldKeepRunning(ServerWorld world, LivingEntity entity, long time) protected booleanDismountVehicleTask.shouldRun(ServerWorld world, LivingEntity entity) protected booleanSleepTask.shouldRun(ServerWorld world, LivingEntity entity) final voidWaitTask.stop(ServerWorld world, LivingEntity entity, long time) final voidWaitTask.tick(ServerWorld world, LivingEntity entity, long time) private voidCrossbowAttackTask.tickState(E entity, LivingEntity target) final booleanWaitTask.tryStarting(ServerWorld world, LivingEntity entity, long time) static voidLookTargetUtil.walkTowards(LivingEntity entity, LookTarget target, float speed, int completionRange) static voidLookTargetUtil.walkTowards(LivingEntity entity, Entity target, float speed, int completionRange) static voidLookTargetUtil.walkTowards(LivingEntity entity, BlockPos target, float speed, int completionRange) private static voidLookTargetUtil.walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int completionRange) static booleanPanicTask.wasHurt(LivingEntity entity) private static booleanVillagerTaskListProvider.wonRaid(ServerWorld world, LivingEntity entity) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanLookTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter) private static booleanLookTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter) static booleanLookTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static <E extends WardenEntity>
Task<E> FindRoarTargetTask.create(Function<E, Optional<? extends LivingEntity>> targetFinder) ForgetAttackTargetTask.create(BiConsumer<E, LivingEntity> forgetCallback) ForgetAttackTargetTask.create(Predicate<LivingEntity> alternativeCondition) ForgetAttackTargetTask.create(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) ForgetAttackTargetTask.create(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) static SingleTickTask<LivingEntity> GoTowardsLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> GoTowardsLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> LookAtMobTask.create(Predicate<LivingEntity> predicate, float maxDistance) RangedApproachTask.create(Function<LivingEntity, Float> speed) UpdateAttackTargetTask.create(Function<E, Optional<? extends LivingEntity>> targetGetter) UpdateAttackTargetTask.create(Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter) static SingleTickTask<PassiveEntity> WalkTowardClosestAdultTask.create(UniformIntProvider executionRange, Function<LivingEntity, Float> speed) static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) private static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval, Predicate<LivingEntity> predicate) Deprecated.private static Map<LivingEntity, Integer> PlayWithVillagerBabiesTask.getBabyInteractionTargetCounts(List<LivingEntity> babies) static LivingEntityLookTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) private static Optional<LivingEntity> PlayWithVillagerBabiesTask.getLeastPopularBabyInteractionTarget(List<LivingEntity> babies) private static booleanOpenDoorsTask.hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs) static voidOpenDoorsTask.pathToDoor(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) private static voidPlayWithVillagerBabiesTask.setPlayTarget(MemoryQueryResult<?, LivingEntity> interactionTarget, MemoryQueryResult<?, LookTarget> lookTarget, MemoryQueryResult<?, WalkTarget> walkTarget, LivingEntity baby) Constructors in net.minecraft.entity.ai.brain.task with parameters of type LivingEntityConstructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type LivingEntityModifierConstructorDescriptionGiveInventoryToLookTargetTask(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed, int runTime) TemptTask(Function<LivingEntity, Float> speed) TemptTask(Function<LivingEntity, Float> speed, Function<LivingEntity, Double> stopDistanceGetter) -
Uses of LivingEntity in net.minecraft.entity.ai.goal
Classes in net.minecraft.entity.ai.goal with type parameters of type LivingEntityModifier and TypeClassDescriptionclassActiveTargetGoal<T extends LivingEntity>A target goal that finds a target by entity class when the goal starts.classDisableableFollowTargetGoal<T extends LivingEntity>An active target goal that can be disabled so that it cannot start.classFleeEntityGoal<T extends LivingEntity>classRaidGoal<T extends LivingEntity>classUntamedActiveTargetGoal<T extends LivingEntity>An active target goal that only starts for untamed tameable animals.Fields in net.minecraft.entity.ai.goal declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityTrackOwnerAttackerGoal.attackerprivate LivingEntityAttackWithOwnerGoal.attackingprivate @Nullable LivingEntityFollowOwnerGoal.ownerprivate LivingEntityAttackGoal.targetprivate @Nullable LivingEntityCreeperIgniteGoal.targetprivate LivingEntityPounceAtTargetGoal.targetprivate @Nullable LivingEntityProjectileAttackGoal.targetprivate @Nullable LivingEntityTrackIronGolemTargetGoal.targetprotected @Nullable LivingEntityTrackTargetGoal.targetprivate @Nullable LivingEntityWanderNearTargetGoal.targetprotected @Nullable LivingEntityActiveTargetGoal.targetEntityprotected TFleeEntityGoal.targetEntityFields in net.minecraft.entity.ai.goal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected final Predicate<LivingEntity> FleeEntityGoal.extraInclusionSelectorprotected final Predicate<LivingEntity> FleeEntityGoal.inclusionSelectorprotected final Class<? extends LivingEntity> LookAtEntityGoal.targetTypeMethods in net.minecraft.entity.ai.goal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidMeleeAttackGoal.attack(LivingEntity target) protected booleanMeleeAttackGoal.canAttack(LivingEntity target) private booleanTrackTargetGoal.canNavigateToEntity(LivingEntity entity) protected booleanTrackTargetGoal.canTrack(@Nullable LivingEntity target, TargetPredicate targetPredicate) private booleanTemptGoal.isTemptedBy(LivingEntity entity) protected voidRevengeGoal.setMobEntityTarget(MobEntity mob, LivingEntity target) voidActiveTargetGoal.setTargetEntity(@Nullable LivingEntity targetEntity) Constructor parameters in net.minecraft.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionActiveTargetGoal(MobEntity mob, Class<T> targetClass, boolean checkVisibility, Predicate<LivingEntity> targetPredicate) ActiveTargetGoal(MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) FleeEntityGoal(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector) FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward) RaidGoal(RaiderEntity raider, Class<T> targetEntityClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate) StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range) StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) UntamedActiveTargetGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate) -
Uses of LivingEntity in net.minecraft.entity.attribute
Fields in net.minecraft.entity.attribute with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends LivingEntity>, DefaultAttributeContainer> DefaultAttributeRegistry.DEFAULT_ATTRIBUTE_REGISTRYMethod parameters in net.minecraft.entity.attribute with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic DefaultAttributeContainerDefaultAttributeRegistry.get(EntityType<? extends LivingEntity> type) -
Uses of LivingEntity in net.minecraft.entity.boss
Subclasses of LivingEntity in net.minecraft.entity.bossFields in net.minecraft.entity.boss with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Predicate<LivingEntity> WitherEntity.CAN_ATTACK_PREDICATEMethods in net.minecraft.entity.boss with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidWitherEntity.shootAt(LivingEntity target, float pullProgress) private voidWitherEntity.shootSkullAt(int headIndex, LivingEntity target) -
Uses of LivingEntity in net.minecraft.entity.boss.dragon
Subclasses of LivingEntity in net.minecraft.entity.boss.dragonMethods in net.minecraft.entity.boss.dragon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.entity.boss.dragon.phase
Fields in net.minecraft.entity.boss.dragon.phase declared as LivingEntityMethods in net.minecraft.entity.boss.dragon.phase with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidStrafePlayerPhase.setTargetEntity(LivingEntity targetEntity) -
Uses of LivingEntity in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage declared as LivingEntityMethods in net.minecraft.entity.damage with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic @Nullable FallLocationFallLocation.fromEntity(LivingEntity entity) DamageSource.getDeathMessage(LivingEntity killed) DamageSources.mobAttack(LivingEntity attacker) DamageSources.mobAttackNoAggro(LivingEntity attacker) DamageSources.mobProjectile(Entity source, @Nullable LivingEntity attacker) DamageSources.spit(Entity source, @Nullable LivingEntity attacker) DamageSources.sting(LivingEntity attacker) DamageSources.windCharge(Entity source, @Nullable LivingEntity attacker) Constructors in net.minecraft.entity.damage with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.entity.decoration
Subclasses of LivingEntity in net.minecraft.entity.decorationMethods in net.minecraft.entity.decoration that return LivingEntityModifier and TypeMethodDescriptionInteractionEntity.getLastAttacker()InteractionEntity.getTarget() -
Uses of LivingEntity in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidInstantHealthOrDamageStatusEffect.applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) voidStatusEffect.applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) booleanAbsorptionStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanBadOmenStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanHungerStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanInstantHealthOrDamageStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanPoisonStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanRaidOmenStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanRegenerationStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanSaturationStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) booleanWitherStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) OozingStatusEffect.SlimeCounter.around(LivingEntity entity) floatStatusEffectInstance.Fading.calculate(LivingEntity entity, float tickDelta) floatStatusEffectInstance.getFadeFactor(LivingEntity entity, float tickDelta) Returns the factor (multiplier) for effect fade-in and fade-out.static intStatusEffectUtil.getHasteAmplifier(LivingEntity entity) static booleanStatusEffectUtil.hasHaste(LivingEntity entity) static booleanStatusEffectUtil.hasWaterBreathing(LivingEntity entity) voidAbsorptionStatusEffect.onApplied(LivingEntity entity, int amplifier) voidStatusEffect.onApplied(LivingEntity entity, int amplifier) voidStatusEffectInstance.onApplied(LivingEntity entity) voidInfestedStatusEffect.onEntityDamage(LivingEntity entity, int amplifier, DamageSource source, float amount) voidStatusEffect.onEntityDamage(LivingEntity entity, int amplifier, DamageSource source, float amount) voidStatusEffectInstance.onEntityDamage(LivingEntity entity, DamageSource source, float amount) voidOozingStatusEffect.onEntityRemoval(LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffect.onEntityRemoval(LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffectInstance.onEntityRemoval(LivingEntity entity, Entity.RemovalReason reason) voidWeavingStatusEffect.onEntityRemoval(LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidWindChargedStatusEffect.onEntityRemoval(LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffect.playApplySound(LivingEntity entity, int amplifier) voidStatusEffectInstance.playApplySound(LivingEntity entity) private voidInfestedStatusEffect.spawnSilverfish(World world, LivingEntity entity, double x, double y, double z) booleanStatusEffectInstance.update(LivingEntity entity, Runnable overwriteCallback) -
Uses of LivingEntity in net.minecraft.entity.mob
Classes in net.minecraft.entity.mob with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classSpiderEntity.TargetGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.entity.mobModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.mob declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityGuardianEntity.cachedBeamTargetprivate @Nullable LivingEntityEvokerFangsEntity.ownerprivate @Nullable LivingEntityEndermanEntity.ChasePlayerGoal.targetprivate @Nullable LivingEntityMobEntity.targetFields in net.minecraft.entity.mob with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Predicate<LivingEntity> EndermanEntity.TeleportTowardsPlayerGoal.angerPredicateMethods in net.minecraft.entity.mob that return LivingEntityModifier and TypeMethodDescriptionAngerable.getAttacker()GuardianEntity.getBeamTarget()MobEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.EvokerFangsEntity.getOwner()AbstractPiglinEntity.getTarget()Angerable.getTarget()BreezeEntity.getTarget()HoglinEntity.getTarget()MobEntity.getTarget()WardenEntity.getTarget()ZoglinEntity.getTarget()protected final @Nullable LivingEntityMobEntity.getTargetInBrain()Methods in net.minecraft.entity.mob that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> PiglinBrain.getAngryAt(AbstractPiglinEntity piglin) static Optional<LivingEntity> PiglinBrain.getAvoiding(PiglinEntity piglin) private Optional<? extends LivingEntity> ZoglinEntity.getHoglinTarget()BreezeEntity.getHurtBy()private static Optional<? extends LivingEntity> HoglinBrain.getNearestVisibleTargetablePlayer(HoglinEntity hoglin) private static Optional<? extends LivingEntity> PiglinBrain.getPreferredTarget(PiglinEntity piglin) WardenEntity.getPrimeSuspect()private static Optional<? extends LivingEntity> PiglinBruteBrain.getTarget(AbstractPiglinEntity piglin) private static Optional<? extends LivingEntity> PiglinBruteBrain.getTargetIfInRange(AbstractPiglinEntity piglin, MemoryModuleType<? extends LivingEntity> targetMemoryModule) private static ImmutableList<com.mojang.datafixers.util.Pair<SingleTickTask<LivingEntity>, Integer>> PiglinBrain.makeFollowTasks()private static RandomTask<LivingEntity> PiglinBrain.makeRandomFollowTask()private static Task<LivingEntity> PiglinBrain.makeRememberRideableHoglinTask()Methods in net.minecraft.entity.mob with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected static voidPiglinBrain.angerAtCloserTargets(AbstractPiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.angerAtIfCloser(AbstractPiglinEntity piglin, LivingEntity target) private static voidHoglinBrain.askAdultsForHelp(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.avoid(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.avoidEnemy(HoglinEntity hoglin, LivingEntity target) protected static voidPiglinBrain.becomeAngryWith(AbstractPiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.becomeAngryWithPlayer(AbstractPiglinEntity piglin, LivingEntity player) booleanDrownedEntity.canDrownedAttackTarget(@Nullable LivingEntity target) booleanAngerable.canTarget(LivingEntity target) booleanIllagerEntity.canTarget(LivingEntity target) private static booleanPiglinBrain.canWander(LivingEntity piglin) private voidEvokerFangsEntity.damage(LivingEntity target) protected voidSlimeEntity.damage(LivingEntity target) private static voidPiglinBrain.groupRunAwayFrom(PiglinEntity piglin, LivingEntity target) private static booleanPiglinBrain.hasBeenHurt(LivingEntity piglin) private static booleanPiglinBrain.hasPlayerHoldingWantedItemNearby(LivingEntity entity) static booleanPiglinBrain.isGoldHoldingPlayer(LivingEntity target) private static booleanPiglinBrain.isHoldingCrossbow(LivingEntity piglin) private static booleanPiglinBrain.isHuntingTarget(LivingEntity piglin, LivingEntity target) booleanMobEntity.isInAttackRange(LivingEntity entity) private static booleanPiglinBrain.isPreferredAttackTarget(PiglinEntity piglin, LivingEntity target) private static booleanPiglinBruteBrain.isTarget(AbstractPiglinEntity piglin, LivingEntity entity) private static booleanWardenBrain.isTargeting(WardenEntity warden, LivingEntity entity) static voidHoglin.knockback(LivingEntity attacker, LivingEntity target) protected voidHoglinEntity.knockback(LivingEntity target) protected voidRavagerEntity.knockback(LivingEntity target) protected voidZoglinEntity.knockback(LivingEntity target) protected static voidHoglinBrain.onAttacked(HoglinEntity hoglin, LivingEntity attacker) protected static voidPiglinBrain.onAttacked(PiglinEntity piglin, LivingEntity attacker) protected static voidHoglinBrain.onAttacking(HoglinEntity hoglin, LivingEntity target) booleanZombieEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.private static voidWardenBrain.removeDeadSuspect(WardenEntity warden, LivingEntity suspect) static voidWardenBrain.resetDigCooldown(LivingEntity warden) private static voidPiglinBrain.runAwayFrom(PiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.runAwayFromClosestTarget(PiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.setAdmiringItem(LivingEntity entity) voidAngerable.setAttacker(@Nullable LivingEntity attacker) private static voidHoglinBrain.setAttackTarget(HoglinEntity hoglin, LivingEntity target) private voidZoglinEntity.setAttackTarget(LivingEntity entity) private static voidHoglinBrain.setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate) voidEvokerFangsEntity.setOwner(@Nullable LivingEntity owner) voidAngerable.setTarget(@Nullable LivingEntity target) voidCreeperEntity.setTarget(@Nullable LivingEntity target) voidEndermanEntity.setTarget(@Nullable LivingEntity target) voidMobEntity.setTarget(@Nullable LivingEntity target) protected static voidPiglinBruteBrain.setTarget(PiglinBruteEntity piglinBrute, LivingEntity target) voidZombifiedPiglinEntity.setTarget(@Nullable LivingEntity target) voidAbstractSkeletonEntity.shootAt(LivingEntity target, float pullProgress) voidDrownedEntity.shootAt(LivingEntity target, float pullProgress) voidIllusionerEntity.shootAt(LivingEntity target, float pullProgress) voidPiglinEntity.shootAt(LivingEntity target, float pullProgress) voidPillagerEntity.shootAt(LivingEntity target, float pullProgress) voidWitchEntity.shootAt(LivingEntity target, float pullProgress) default booleanAngerable.shouldAngerAt(LivingEntity entity) private booleanZoglinEntity.shouldAttack(LivingEntity entity) private static voidHoglinBrain.targetEnemy(HoglinEntity hoglin, LivingEntity target) booleanGuardianEntity.GuardianTargetPredicate.test(@Nullable LivingEntity livingEntity) static booleanHoglin.tryAttack(LivingEntity attacker, LivingEntity target) protected static voidPiglinBrain.tryRevenge(AbstractPiglinEntity piglin, LivingEntity target) protected static voidPiglinBruteBrain.tryRevenge(PiglinBruteEntity piglinBrute, LivingEntity target) voidWardenEntity.updateAttackTarget(LivingEntity target) static booleanPiglinBrain.wearsGoldArmor(LivingEntity entity) Method parameters in net.minecraft.entity.mob with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> PiglinBruteBrain.getTargetIfInRange(AbstractPiglinEntity piglin, MemoryModuleType<? extends LivingEntity> targetMemoryModule) Constructors in net.minecraft.entity.mob with parameters of type LivingEntityModifierConstructorDescriptionEvokerFangsEntity(World world, double x, double y, double z, float yaw, int warmup, LivingEntity owner) Constructor parameters in net.minecraft.entity.mob with type arguments of type LivingEntityModifierConstructorDescriptionTeleportTowardsPlayerGoal(EndermanEntity enderman, @Nullable Predicate<LivingEntity> targetPredicate) -
Uses of LivingEntity in net.minecraft.entity.passive
Classes in net.minecraft.entity.passive with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classCatEntity.CatFleeGoal<T extends LivingEntity>private static classOcelotEntity.FleeGoal<T extends LivingEntity>private static classPandaEntity.PandaFleeGoal<T extends LivingEntity>private static classRabbitEntity.FleeGoal<T extends LivingEntity>private classWolfEntity.AvoidLlamaGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.entity.passiveModifier and TypeClassDescriptionclassclassclassclassclassclassRepresents an axolotl, the cutest predator.classclassclassclassMeow.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.passive declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityFoxEntity.DefendFriendGoal.friendprivate @Nullable LivingEntityFoxEntity.DefendFriendGoal.offenderprivate LivingEntityTraderLlamaEntity.DefendTraderGoal.offenderFields in net.minecraft.entity.passive with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> TurtleEntity.BABY_TURTLE_ON_LAND_FILTERprivate static final Predicate<LivingEntity> PufferfishEntity.BLOW_UP_FILTERstatic final Predicate<LivingEntity> WolfEntity.FOLLOW_TAMED_PREDICATEprivate static final Predicate<LivingEntity> AbstractHorseEntity.IS_BRED_HORSEMethods in net.minecraft.entity.passive that return LivingEntityModifier and TypeMethodDescriptionAbstractHorseEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.PigEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.StriderEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.AxolotlEntity.getTarget()FrogEntity.getTarget()Methods in net.minecraft.entity.passive that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> AxolotlBrain.getAttackTarget(AxolotlEntity axolotl) Methods in net.minecraft.entity.passive with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidAxolotlEntity.appreciatePlayer(AxolotlEntity axolotl, LivingEntity entity) protected voidFoxEntity.AttackGoal.attack(LivingEntity target) protected voidPolarBearEntity.AttackGoal.attack(LivingEntity target) booleanTameableEntity.canAttackWithOwner(LivingEntity target, LivingEntity owner) booleanWolfEntity.canAttackWithOwner(LivingEntity target, LivingEntity owner) private static booleanAxolotlBrain.canGoToLookTarget(LivingEntity entity) static booleanFoxEntity.canJumpChase(FoxEntity fox, LivingEntity chasedEntity) booleanTameableEntity.canTarget(LivingEntity target) private static floatAxolotlBrain.getAdultFollowingSpeed(LivingEntity entity) Returns the axolotl's speed when a baby axolotl is following an adult.protected Vec2fAbstractHorseEntity.getControlledRotation(LivingEntity controllingPassenger) protected Vec2fCamelEntity.getControlledRotation(LivingEntity controllingPassenger) private static Optional<LookTarget> AllayBrain.getLikedLookTarget(LivingEntity allay) static Optional<ServerPlayerEntity> AllayBrain.getLikedPlayer(LivingEntity allay) private static Optional<LookTarget> AllayBrain.getLookTarget(LivingEntity allay) private static floatAxolotlBrain.getTargetApproachingSpeed(LivingEntity entity) Returns the axolotl's speed when approaching the attack target.private static floatAxolotlBrain.getTemptedSpeed(LivingEntity entity) Returns the axolotl's speed when the axolotl is being tempted.private static booleanAllayBrain.hasNearestVisibleWantedItem(LivingEntity entity) booleanArmadilloEntity.isEntityThreatening(LivingEntity entity) booleanTameableEntity.isOwner(LivingEntity entity) static booleanFrogEntity.isValidFrogFood(LivingEntity entity) AbstractHorseEntity.locateSafeDismountingPos(Vec3d offset, LivingEntity passenger) static voidAllayBrain.rememberNoteBlock(LivingEntity allay, BlockPos pos) voidVillagerEntity.setAttacker(@Nullable LivingEntity attacker) protected voidBeeEntity.BeeRevengeGoal.setMobEntityTarget(MobEntity mob, LivingEntity target) protected voidPandaEntity.PandaRevengeGoal.setMobEntityTarget(MobEntity mob, LivingEntity target) protected voidPolarBearEntity.PolarBearRevengeGoal.setMobEntityTarget(MobEntity mob, LivingEntity target) voidFoxEntity.setTarget(@Nullable LivingEntity target) voidPandaEntity.LookAtEntityGoal.setTarget(LivingEntity target) voidLlamaEntity.shootAt(LivingEntity target, float pullProgress) voidSnowGolemEntity.shootAt(LivingEntity target, float pullProgress) private static booleanAllayBrain.shouldGoTowardsNoteBlock(LivingEntity allay, Brain<?> brain, GlobalPos pos) private voidLlamaEntity.spitAt(LivingEntity target) booleanFoxEntity.WorriableEntityFilter.test(LivingEntity livingEntity) AbstractHorseEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.PigEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.StriderEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.Method parameters in net.minecraft.entity.passive with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanAxolotlEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanGlowSquidEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) Constructor parameters in net.minecraft.entity.passive with type arguments of type LivingEntityModifierConstructorDescriptionDefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) LookAtEntityGoal(MobEntity fox, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal(PandaEntity panda, Class<? extends LivingEntity> targetType, float range) -
Uses of LivingEntity in net.minecraft.entity.player
Subclasses of LivingEntity in net.minecraft.entity.playerMethods in net.minecraft.entity.player with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPlayerEntity.attackLivingEntity(LivingEntity target) booleanPlayerEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.protected voidPlayerEntity.takeShieldHit(LivingEntity attacker) -
Uses of LivingEntity in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as LivingEntityMethods in net.minecraft.entity.projectile with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier, @Nullable ItemStack bow) static HandProjectileUtil.getHandPossiblyHolding(LivingEntity entity, Item item) FireworkRocketEntity.getKnockback(LivingEntity target, DamageSource source) ProjectileEntity.getKnockback(LivingEntity target, DamageSource source) protected voidPersistentProjectileEntity.knockback(LivingEntity target, DamageSource source) protected voidArrowEntity.onHit(LivingEntity target) protected voidPersistentProjectileEntity.onHit(LivingEntity target) protected voidSpectralArrowEntity.onHit(LivingEntity target) Constructors in net.minecraft.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionAbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, Vec3d velocity, World world) ArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) DragonFireballEntity(World world, LivingEntity owner, Vec3d velocity) ExplosiveProjectileEntity(EntityType<? extends ExplosiveProjectileEntity> type, LivingEntity owner, Vec3d velocity, World world) FireballEntity(World world, LivingEntity owner, Vec3d velocity, int explosionPower) FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, @Nullable ItemStack shotFrom) ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis) SmallFireballEntity(World world, LivingEntity owner, Vec3d velocity) SpectralArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) TridentEntity(World world, LivingEntity owner, ItemStack stack) WitherSkullEntity(World world, LivingEntity owner, Vec3d velocity) -
Uses of LivingEntity in net.minecraft.entity.projectile.thrown
Fields in net.minecraft.entity.projectile.thrown with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> PotionEntity.AFFECTED_BY_WATERMethods in net.minecraft.entity.projectile.thrown with parameters of type LivingEntityModifier and TypeMethodDescriptionPotionEntity.getKnockback(LivingEntity target, DamageSource source) Constructors in net.minecraft.entity.projectile.thrown with parameters of type LivingEntityModifierConstructorDescriptionEggEntity(World world, LivingEntity owner) EnderPearlEntity(World world, LivingEntity owner) ExperienceBottleEntity(World world, LivingEntity owner) PotionEntity(World world, LivingEntity owner) SnowballEntity(World world, LivingEntity owner) protectedThrownEntity(EntityType<? extends ThrownEntity> type, LivingEntity owner, World world) ThrownItemEntity(EntityType<? extends ThrownItemEntity> type, LivingEntity owner, World world) -
Uses of LivingEntity in net.minecraft.entity.raid
Subclasses of LivingEntity in net.minecraft.entity.raid -
Uses of LivingEntity in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return LivingEntityModifier and TypeMethodDescriptionBoatEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.Methods in net.minecraft.entity.vehicle with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractMinecartEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.BoatEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger. -
Uses of LivingEntity in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic StackReferenceStackReference.of(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of a living entity with no filter, allowing direct manipulation of the equipment slot.static StackReferenceStackReference.of(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of a living entity and guarded by a condition for setting stacks into the inventory. -
Uses of LivingEntity in net.minecraft.item
Methods in net.minecraft.item that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Predicate<LivingEntity> MaceItem.getKnockbackPredicate(PlayerEntity player, Entity attacked) Methods in net.minecraft.item with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static Vector3fCrossbowItem.calcVelocity(LivingEntity shooter, Vec3d direction, float yaw) ArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) protected ProjectileEntityCrossbowItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) protected ProjectileEntityRangedWeaponItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) voidItemStack.damage(int amount, LivingEntity entity, EquipmentSlot slot) Damages this item stack.ItemStack.damage(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot) voidItemStack.decrementUnlessCreative(int amount, @Nullable LivingEntity entity) Decrements the count of items in this item stack, unlessentityis a creative mode player.ChorusFruitItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.HoneyBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.Item.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.ItemStack.finishUsing(World world, LivingEntity user) MilkBucketItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.OminousBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.PotionItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SuspiciousStewItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) private static doubleMaceItem.getKnockback(PlayerEntity player, LivingEntity attacked, Vec3d distance) intBowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intBrushItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intCrossbowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intEnderEyeItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intGoatHornItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intHoneyBottleItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intItemStack.getMaxUseTime(LivingEntity user) intMilkBucketItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intOminousBottleItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intPotionItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intShieldItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intSpyglassItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intTridentItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.protected static ItemStackRangedWeaponItem.getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot) private static floatCrossbowItem.getPullProgress(int useTicks, ItemStack stack, LivingEntity user) static intCrossbowItem.getPullTime(ItemStack stack, LivingEntity user) RangedWeaponItem.load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter) private static booleanCrossbowItem.loadProjectiles(LivingEntity shooter, ItemStack crossbow) voidBowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidCrossbowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidItemStack.onStoppedUsing(World world, LivingEntity user, int remainingUseTicks) voidSpyglassItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidTridentItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.private voidSpyglassItem.playStopUsingSound(LivingEntity user) voidItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItemStack.postDamageEntity(LivingEntity target, PlayerEntity player) voidMaceItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMiningToolItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidSwordItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidTridentItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanItemStack.postHit(LivingEntity target, PlayerEntity player) booleanMaceItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanMiningToolItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanSwordItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanTridentItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanShearsItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.protected voidBowItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected voidCrossbowItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected abstract voidRangedWeaponItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) voidCrossbowItem.shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, @Nullable LivingEntity target) protected voidRangedWeaponItem.shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) static booleanMaceItem.shouldDealAdditionalDamage(LivingEntity attacker) ItemStack.splitUnlessCreative(int amount, @Nullable LivingEntity entity) voidBrushItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidCrossbowItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidItemStack.usageTick(World world, LivingEntity user, int remainingUseTicks) DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.ItemStack.useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity. -
Uses of LivingEntity in net.minecraft.network.packet.s2c.play
Constructors in net.minecraft.network.packet.s2c.play with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.predicate.entity
Methods in net.minecraft.predicate.entity with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as LivingEntityConstructors in net.minecraft.screen.slot with parameters of type LivingEntityModifierConstructorDescriptionArmorSlot(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) -
Uses of LivingEntity in net.minecraft.server
Methods in net.minecraft.server with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPlayerManager.sendStatusEffects(LivingEntity entity, ServerPlayNetworkHandler networkHandler) -
Uses of LivingEntity in net.minecraft.server.command
Methods in net.minecraft.server.command that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityAttributeCommand.getLivingEntity(Entity entity) private static LivingEntityAttributeCommand.getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute) -
Uses of LivingEntity in net.minecraft.server.network
Subclasses of LivingEntity in net.minecraft.server.networkMethods in net.minecraft.server.network with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugInfoSender.listMemories(LivingEntity entity, long currentTime) static voidDebugInfoSender.sendBrainDebugData(LivingEntity living) -
Uses of LivingEntity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type LivingEntityModifier and TypeMethodDescription<E extends LivingEntity>
voidTestContext.expectEntityHoldingItem(BlockPos pos, EntityType<E> entityType, Item item) Methods in net.minecraft.test that return LivingEntityModifier and TypeMethodDescriptionTestContext.drown(LivingEntity entity) TestContext.setHealthLow(LivingEntity entity) Methods in net.minecraft.test with parameters of type LivingEntityModifier and TypeMethodDescriptionTestContext.drown(LivingEntity entity) voidTestContext.expectEntityHasEffect(LivingEntity entity, RegistryEntry<StatusEffect> effect, int amplifier) TestContext.setHealthLow(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.world
Methods in net.minecraft.world with type parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
TEntityView.getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default <T extends LivingEntity>
TEntityView.getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z) default <T extends LivingEntity>
List<T> EntityView.getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box) Methods in net.minecraft.world with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
TEntityView.getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default <T extends LivingEntity>
TEntityView.getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z) default @Nullable PlayerEntityEntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity) default @Nullable PlayerEntityEntityView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z) default List<PlayerEntity> EntityView.getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box) default <T extends LivingEntity>
List<T> EntityView.getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box) -
Uses of LivingEntity in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion that return LivingEntityModifier and TypeMethodDescriptionExplosion.getCausingEntity()private static @Nullable LivingEntityExplosion.getCausingEntity(@Nullable Entity from)