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 TypeMethodDescriptionvoidAbstractBannerBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidAbstractFurnaceBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidAbstractRedstoneGateBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBarrelBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBeaconBlock.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.voidBrewingStandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidChestBlock.onPlaced(World world, BlockPos pos, BlockState state, 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.voidConduitBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidDispenserBlock.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.voidEnchantingTableBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidHopperBlock.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.voidPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidShulkerBoxBlock.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.voidWallPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable 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) -
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 TypeMethodDescriptionprivate 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 TypeMethodDescriptionvoidDrawContext.drawItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(LivingEntity entity, World world, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(LivingEntity entity, World world, ItemStack stack, int x, int y, int seed, int z) -
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 LivingEntity -
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, int x, int y, int size, float mouseX, float mouseY, LivingEntity entity) static voidInventoryScreen.drawEntity(DrawContext context, int x, int y, int size, Quaternionf quaternionf, @Nullable Quaternionf quaternionf2, 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, float red, float green, float blue) protected static <T extends LivingEntity>
voidFeatureRenderer.renderModel(EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float red, float green, float blue) 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
Methods in net.minecraft.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static voidFrostWalkerEnchantment.freezeWater(LivingEntity entity, World world, BlockPos blockPos, int level) static intEnchantmentHelper.getDepthStrider(LivingEntity entity) static intEnchantmentHelper.getEfficiency(LivingEntity entity) Enchantment.getEquipment(LivingEntity entity) static intEnchantmentHelper.getEquipmentLevel(Enchantment enchantment, LivingEntity entity) Returns the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks.static intEnchantmentHelper.getFireAspect(LivingEntity entity) static intEnchantmentHelper.getKnockback(LivingEntity entity) static intEnchantmentHelper.getLooting(LivingEntity entity) static intEnchantmentHelper.getRespiration(LivingEntity entity) static floatEnchantmentHelper.getSweepingMultiplier(LivingEntity entity) static floatEnchantmentHelper.getSwiftSneakSpeedBoost(LivingEntity entity) static booleanEnchantmentHelper.hasAquaAffinity(LivingEntity entity) static booleanEnchantmentHelper.hasFrostWalker(LivingEntity entity) static booleanEnchantmentHelper.hasSoulSpeed(LivingEntity entity) voidDamageEnchantment.onTargetDamaged(LivingEntity user, Entity target, int level) voidEnchantment.onTargetDamaged(LivingEntity user, Entity target, int level) static voidEnchantmentHelper.onTargetDamaged(LivingEntity user, Entity target) voidEnchantment.onUserDamaged(LivingEntity user, Entity attacker, int level) static voidEnchantmentHelper.onUserDamaged(LivingEntity user, Entity attacker) voidThornsEnchantment.onUserDamaged(LivingEntity user, Entity attacker, int level) static doubleProtectionEnchantment.transformExplosionKnockback(LivingEntity entity, double velocity) static intProtectionEnchantment.transformFireDuration(LivingEntity entity, int duration) -
Uses of LivingEntity in net.minecraft.entity
Fields in net.minecraft.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityLivingEntity.attackerprivate 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 TypeMethodDescriptionvoidEntity.applyDamageEffects(LivingEntity attacker, Entity target) Applies damage effects toattackerortarget.private voidLivingEntity.applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity) protected 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) default Vector3fCrossbowUser.getProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray) 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) default voidCrossbowUser.shoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed) voidCrossbowUser.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) 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.attack(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 TypeClassDescriptionclassNearestLivingEntitiesSensor<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_ENTITIESMethods 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) -
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.speedMethods 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) 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 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 booleanFrogEatEntityTask.isTargetReachable(FrogEntity entity, LivingEntity target) static booleanLookTargetUtil.isTargetWithinAttackRange(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction) 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) 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) 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, double stopDistance) -
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 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, double squaredDistance) private booleanTrackTargetGoal.canNavigateToEntity(LivingEntity entity) protected booleanTrackTargetGoal.canTrack(@Nullable LivingEntity target, TargetPredicate targetPredicate) protected doubleMeleeAttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) 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.attack(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 that return LivingEntityMethods in net.minecraft.entity.damage with parameters of type LivingEntityModifier and TypeMethodDescriptionDamageSource.getDeathMessage(LivingEntity killed) DamageSources.mobAttack(LivingEntity attacker) DamageSources.mobAttackNoAggro(LivingEntity attacker) DamageSources.mobProjectile(Entity source, @Nullable LivingEntity attacker) DamageSources.sting(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 TypeMethodDescriptionvoidStatusEffect.applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) voidStatusEffect.applyUpdateEffect(LivingEntity entity, int amplifier) voidStatusEffectInstance.applyUpdateEffect(LivingEntity entity) static intStatusEffectUtil.getHasteAmplifier(LivingEntity entity) static booleanStatusEffectUtil.hasHaste(LivingEntity entity) static booleanStatusEffectUtil.hasWaterBreathing(LivingEntity entity) floatStatusEffectInstance.FactorCalculationData.lerp(LivingEntity entity, float tickDelta) voidAbsorptionStatusEffect.onApplied(LivingEntity entity, AttributeContainer attributes, int amplifier) voidStatusEffect.onApplied(LivingEntity entity, AttributeContainer attributes, int amplifier) voidAbsorptionStatusEffect.onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier) voidHealthBoostStatusEffect.onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier) voidStatusEffect.onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier) 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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.RavagerEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.EvokerFangsEntity.getOwner()AbstractPiglinEntity.getTarget()Angerable.getTarget()MobEntity.getTarget()WardenEntity.getTarget()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()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) voidAbstractSkeletonEntity.attack(LivingEntity target, float pullProgress) voidDrownedEntity.attack(LivingEntity target, float pullProgress) voidIllusionerEntity.attack(LivingEntity target, float pullProgress) voidPiglinEntity.attack(LivingEntity target, float pullProgress) voidPillagerEntity.attack(LivingEntity target, float pullProgress) voidWitchEntity.attack(LivingEntity target, float pullProgress) 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) doubleMobEntity.getSquaredDistanceToAttackPosOf(LivingEntity target) protected doubleRavagerEntity.AttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) protected doubleSpiderEntity.AttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) protected doubleVindicatorEntity.AttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) 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) voidPiglinEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) voidPillagerEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) default booleanAngerable.shouldAngerAt(LivingEntity entity) private booleanZoglinEntity.shouldAttack(LivingEntity entity) doubleMobEntity.squaredAttackRange(LivingEntity target) 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 TypeClassDescriptionclassclassclassclassclassRepresents 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.CamelEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.LlamaEntity.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.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, double squaredDistance) voidLlamaEntity.attack(LivingEntity target, float pullProgress) protected voidPolarBearEntity.AttackGoal.attack(LivingEntity target, double squaredDistance) voidSnowGolemEntity.attack(LivingEntity target, float pullProgress) 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) protected doublePolarBearEntity.AttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) protected doubleRabbitEntity.RabbitAttackGoal.getSquaredMaxAttackDistance(LivingEntity entity) 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) 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) private static booleanAllayBrain.shouldGoTowardsNoteBlock(LivingEntity allay, Brain<?> brain, GlobalPos pos) private voidLlamaEntity.spitAt(LivingEntity target) doubleAxolotlEntity.squaredAttackRange(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 TypeMethodDescriptionvoidPersistentProjectileEntity.applyEnchantmentEffects(LivingEntity entity, float damageModifier) static PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier) static HandProjectileUtil.getHandPossiblyHolding(LivingEntity entity, Item item) 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, double directionX, double directionY, double directionZ, World world) ArrowEntity(World world, LivingEntity owner) DragonFireballEntity(World world, LivingEntity owner, double directionX, double directionY, double directionZ) ExplosiveProjectileEntity(EntityType<? extends ExplosiveProjectileEntity> type, LivingEntity owner, double directionX, double directionY, double directionZ, World world) FireballEntity(World world, LivingEntity owner, double velocityX, double velocityY, double velocityZ, int explosionPower) FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world) ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis) SmallFireballEntity(World world, LivingEntity owner, double velocityX, double velocityY, double velocityZ) SpectralArrowEntity(World world, LivingEntity owner) TridentEntity(World world, LivingEntity owner, ItemStack stack) WitherSkullEntity(World world, LivingEntity owner, double directionX, double directionY, double directionZ) -
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_WATERConstructors 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 with type parameters of type LivingEntityMethods in net.minecraft.item with parameters of type LivingEntityModifier and TypeMethodDescriptionArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) private static PersistentProjectileEntityCrossbowItem.createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) 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.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.StewItem.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 HitResultBrushItem.getHitResult(LivingEntity user) private static booleanCrossbowItem.loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative) 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) booleanItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.voidItemStack.postHit(LivingEntity target, PlayerEntity attacker) 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.booleanMiningToolItem.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.booleanSwordItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanTridentItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.private static voidCrossbowItem.postShoot(World world, LivingEntity entity, ItemStack stack) private static voidCrossbowItem.shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated) static voidCrossbowItem.shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence) 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.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) private static voidDebugInfoSender.writeBrain(LivingEntity entity, PacketByteBuf buf) -
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) 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 LivingEntity