net.minecraft.entity.ai.brain.task

public class TargetUtil

net.minecraft.world.entity.ai.behavior.BehaviorUtils
net.minecraft.world.entity.ai.behavior.BehaviorUtils
net.minecraft.class_4215
net.minecraft.entity.ai.brain.task.TargetUtil

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static void
lockGazeAndWalkToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance)
lockGazeAndWalkToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance)
method_19548(class_1309 arg0, class_1309 arg1, float arg2, int arg3)
lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int walkCompletionRange)
public static boolean
entityIsVisible(Brain<?> brain, LivingEntity targetEntity)
entityIsVisible(Brain<?> brain, LivingEntity targetEntity)
method_19550(class_4095<?> arg0, class_1309 arg1)
canSee(Brain<?> brain, LivingEntity target)
public static boolean
targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, EntityType<?> targetType)
targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, EntityType<?> targetType)
method_19551(class_4095<?> arg0, class_4140<? extends class_1309> arg1, class_1299<?> arg2)
canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType)
private static boolean
targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, Predicate<LivingEntity> targetPredicate)
targetIsValid(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memory, Predicate<LivingEntity> targetPredicate)
method_24564(class_4095<?> arg0, class_4140<? extends class_1309> arg1, Predicate<class_1309> arg2)
canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter)
private static void
lookAtEachOther(LivingEntity entity1, LivingEntity entity2)
lookAtEachOther(LivingEntity entity1, LivingEntity entity2)
method_19552(class_1309 arg0, class_1309 arg1)
lookAtEachOther(LivingEntity first, LivingEntity second)
public static void
lookAtEntity(LivingEntity looker, LivingEntity targetEntity)
lookAtEntity(LivingEntity looker, LivingEntity targetEntity)
method_19554(class_1309 arg0, class_1309 arg1)
lookAt(LivingEntity entity, LivingEntity target)
private static void
setWalkAndLookTargetMemoriesToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance)
setWalkAndLookTargetMemoriesToEachOther(LivingEntity entity1, LivingEntity entity2, float speedModifier, int closeEnoughDistance)
method_19555(class_1309 arg0, class_1309 arg1, float arg2, int arg3)
walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int completionRange)
public static void
setWalkAndLookTargetMemories(LivingEntity walker, Entity targetEntity, float speedModifier, int closeEnoughDistance)
setWalkAndLookTargetMemories(LivingEntity walker, Entity targetEntity, float speedModifier, int closeEnoughDistance)
method_24557(class_1309 arg0, class_1297 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, Entity target, float speed, int completionRange)
public static void
setWalkAndLookTargetMemories(LivingEntity walker, BlockPos targetPos, float speedModifier, int closeEnoughDistance)
setWalkAndLookTargetMemories(LivingEntity walker, BlockPos targetPos, float speedModifier, int closeEnoughDistance)
method_24561(class_1309 arg0, class_2338 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, BlockPos target, float speed, int completionRange)
public static void
setWalkAndLookTargetMemories(LivingEntity walker, PositionTracker target, float speedModifier, int closeEnoughDistance)
setWalkAndLookTargetMemories(LivingEntity walker, PositionTracker target, float speedModifier, int closeEnoughDistance)
method_42647(class_1309 arg0, class_4115 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, LookTarget target, float speed, int completionRange)
public static void
throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos)
throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos)
method_19949(class_1309 arg0, class_1799 arg1, class_243 arg2)
give(LivingEntity entity, ItemStack stack, Vec3d targetLocation)
public static void
throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos, Vec3 throwVelocity, float handYDistanceFromEye)
throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos, Vec3 throwVelocity, float handYDistanceFromEye)
method_43392(class_1309 arg0, class_1799 arg1, class_243 arg2, class_243 arg3, float arg4)
give(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset)
public static ChunkSectionPos
findSectionClosestToVillage(ServerLevel level, SectionPos center, int radius)
findSectionClosestToVillage(ServerLevel level, SectionPos center, int radius)
method_20419(class_3218 arg0, class_4076 arg1, int arg2)
getPosClosestToOccupiedPointOfInterest(ServerWorld world, ChunkSectionPos center, int radius)
public static boolean
isWithinAttackRange(Mob body, LivingEntity target, int projectileAttackRangeMargin)
isWithinAttackRange(Mob body, LivingEntity target, int projectileAttackRangeMargin)
method_25940(class_1308 arg0, class_1309 arg1, int arg2)
isTargetWithinAttackRange(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction)
public static boolean
isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity body, LivingEntity otherTarget, double howMuchFurtherAway)
isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity body, LivingEntity otherTarget, double howMuchFurtherAway)
method_24558(class_1309 arg0, class_1309 arg1, double arg2)
isNewTargetTooFar(LivingEntity source, LivingEntity target, double extraDistance)
public static boolean
canSee(LivingEntity body, LivingEntity target)
canSee(LivingEntity body, LivingEntity target)
method_24565(class_1309 arg0, class_1309 arg1)
isVisibleInMemory(LivingEntity source, LivingEntity target)
public static LivingEntity
getNearestTarget(LivingEntity body, Optional<LivingEntity> target1, LivingEntity target2)
getNearestTarget(LivingEntity body, Optional<LivingEntity> target1, LivingEntity target2)
method_24562(class_1309 arg0, Optional<class_1309> arg1, class_1309 arg2)
getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second)
public static LivingEntity
getTargetNearestMe(LivingEntity body, LivingEntity target1, LivingEntity target2)
getTargetNearestMe(LivingEntity body, LivingEntity target1, LivingEntity target2)
method_24559(class_1309 arg0, class_1309 arg1, class_1309 arg2)
getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second)
public static Optional<LivingEntity>
getLivingEntityFromUUIDMemory(LivingEntity body, MemoryModuleType<UUID> memoryType)
getLivingEntityFromUUIDMemory(LivingEntity body, MemoryModuleType<UUID> memoryType)
method_24560(class_1309 arg0, class_4140<UUID> arg1)
getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule)
public static Vec3d
getRandomSwimmablePos(PathfinderMob body, int maxHorizontalDistance, int maxVerticalDistance)
getRandomSwimmablePos(PathfinderMob body, int maxHorizontalDistance, int maxVerticalDistance)
method_33193(class_1314 arg0, int arg1, int arg2)
find(PathAwareEntity entity, int horizontalRange, int verticalRange)
public static boolean
isBreeding(LivingEntity body)
isBreeding(LivingEntity body)
method_41331(class_1309 arg0)
hasBreedTarget(LivingEntity entity)