net.minecraft.world.entity.ai.behavior

public class BehaviorUtils

bvj
net.minecraft.world.entity.ai.behavior.BehaviorUtils
net.minecraft.class_4215
net.minecraft.entity.ai.brain.task.LookTargetUtil
net.minecraft.src.C_571_
net.minecraft.world.entity.ai.behavior.BehaviorUtil

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static void
a(btn arg0, btn arg1, float arg2, int arg3)
lockGazeAndWalkToEachOther(LivingEntity arg0, LivingEntity arg1, float arg2, int arg3)
method_19548(class_1309 arg0, class_1309 arg1, float arg2, int arg3)
lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int walkCompletionRange)
m_22602_(C_524_ p_22603_, C_524_ p_22604_, float p_22605_, int p_332499_)
public static boolean
a(buq<?> arg0, btn arg1)
entityIsVisible(Brain<?> arg0, LivingEntity arg1)
method_19550(class_4095<?> arg0, class_1309 arg1)
canSee(Brain<?> brain, LivingEntity target)
m_22636_(C_548_<?> p_22637_, C_524_ p_22638_)
public static boolean
a(buq<?> arg0, ccs<? extends btn> arg1, bsx<?> arg2)
targetIsValid(Brain<?> arg0, MemoryModuleType<? extends LivingEntity> arg1, EntityType<?> arg2)
method_19551(class_4095<?> arg0, class_4140<? extends class_1309> arg1, class_1299<?> arg2)
canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType)
m_22639_(C_548_<?> p_22640_, C_753_<? extends C_524_> p_22641_, C_513_<?> p_22642_)
private static boolean
a(buq<?> arg0, ccs<? extends btn> arg1, Predicate<btn> arg2)
targetIsValid(Brain<?> arg0, MemoryModuleType<? extends LivingEntity> arg1, Predicate<LivingEntity> arg2)
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)
m_22643_(C_548_<?> p_22644_, C_753_<? extends C_524_> p_22645_, Predicate<C_524_> p_22646_)
private static void
c(btn arg0, btn arg1)
lookAtEachOther(LivingEntity arg0, LivingEntity arg1)
method_19552(class_1309 arg0, class_1309 arg1)
lookAtEachOther(LivingEntity first, LivingEntity second)
m_22670_(C_524_ p_22671_, C_524_ p_22672_)
public static void
a(btn arg0, btn arg1)
lookAtEntity(LivingEntity arg0, LivingEntity arg1)
method_19554(class_1309 arg0, class_1309 arg1)
lookAt(LivingEntity entity, LivingEntity target)
m_22595_(C_524_ p_22596_, C_524_ p_22597_)
private static void
b(btn arg0, btn arg1, float arg2, int arg3)
setWalkAndLookTargetMemoriesToEachOther(LivingEntity arg0, LivingEntity arg1, float arg2, int arg3)
method_19555(class_1309 arg0, class_1309 arg1, float arg2, int arg3)
walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int completionRange)
m_22660_(C_524_ p_22661_, C_524_ p_22662_, float p_22663_, int p_332586_)
public static void
a(btn arg0, bsr arg1, float arg2, int arg3)
setWalkAndLookTargetMemories(LivingEntity arg0, Entity arg1, float arg2, int arg3)
method_24557(class_1309 arg0, class_1297 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, Entity target, float speed, int completionRange)
m_22590_(C_524_ p_22591_, C_507_ p_22592_, float p_22593_, int p_22594_)
public static void
a(btn arg0, jd arg1, float arg2, int arg3)
setWalkAndLookTargetMemories(LivingEntity arg0, BlockPos arg1, float arg2, int arg3)
method_24561(class_1309 arg0, class_2338 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, BlockPos target, float speed, int completionRange)
m_22617_(C_524_ p_22618_, C_4675_ p_22619_, float p_22620_, int p_22621_)
public static void
a(btn arg0, bwv arg1, float arg2, int arg3)
setWalkAndLookTargetMemories(LivingEntity arg0, PositionTracker arg1, float arg2, int arg3)
method_42647(class_1309 arg0, class_4115 arg1, float arg2, int arg3)
walkTowards(LivingEntity entity, LookTarget target, float speed, int completionRange)
m_217128_(C_524_ p_217129_, C_612_ p_217130_, float p_217131_, int p_217132_)
public static void
a(btn arg0, cuq arg1, exc arg2)
throwItem(LivingEntity arg0, ItemStack arg1, Vec3 arg2)
method_19949(class_1309 arg0, class_1799 arg1, class_243 arg2)
give(LivingEntity entity, ItemStack stack, Vec3d targetLocation)
m_22613_(C_524_ p_22614_, C_1391_ p_22615_, C_3046_ p_22616_)
public static void
a(btn arg0, cuq arg1, exc arg2, exc arg3, float arg4)
throwItem(LivingEntity arg0, ItemStack arg1, Vec3 arg2, Vec3 arg3, float arg4)
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)
m_217133_(C_524_ p_217134_, C_1391_ p_217135_, C_3046_ p_217136_, C_3046_ p_217137_, float p_217138_)
public static SectionPos
a(aqu arg0, kf arg1, int arg2)
findSectionClosestToVillage(ServerLevel arg0, SectionPos arg1, int arg2)
method_20419(class_3218 arg0, class_4076 arg1, int arg2)
getPosClosestToOccupiedPointOfInterest(ServerWorld world, ChunkSectionPos center, int radius)
m_22581_(C_12_ p_22582_, C_4710_ p_22583_, int p_22584_)
public static boolean
a(btp arg0, btn arg1, int arg2)
isWithinAttackRange(Mob arg0, LivingEntity arg1, int arg2)
method_25940(class_1308 arg0, class_1309 arg1, int arg2)
isTargetWithinAttackRange(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction)
m_22632_(C_526_ p_22633_, C_524_ p_22634_, int p_22635_)
public static boolean
a(btn arg0, btn arg1, double arg2)
isOtherTargetMuchFurtherAwayThanCurrentAttackTarget(LivingEntity arg0, LivingEntity arg1, double arg2)
method_24558(class_1309 arg0, class_1309 arg1, double arg2)
isNewTargetTooFar(LivingEntity source, LivingEntity target, double extraDistance)
m_22598_(C_524_ p_22599_, C_524_ p_22600_, double p_22601_)
public static boolean
b(btn arg0, btn arg1)
canSee(LivingEntity arg0, LivingEntity arg1)
method_24565(class_1309 arg0, class_1309 arg1)
isVisibleInMemory(LivingEntity source, LivingEntity target)
m_22667_(C_524_ p_22668_, C_524_ p_22669_)
public static LivingEntity
a(btn arg0, Optional<btn> arg1, btn arg2)
getNearestTarget(LivingEntity arg0, Optional<LivingEntity> arg1, LivingEntity arg2)
method_24562(class_1309 arg0, Optional<class_1309> arg1, class_1309 arg2)
getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second)
m_22625_(C_524_ p_22626_, Optional<C_524_> p_22627_, C_524_ p_22628_)
public static LivingEntity
a(btn arg0, btn arg1, btn arg2)
getTargetNearestMe(LivingEntity arg0, LivingEntity arg1, LivingEntity arg2)
method_24559(class_1309 arg0, class_1309 arg1, class_1309 arg2)
getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second)
m_22606_(C_524_ p_22607_, C_524_ p_22608_, C_524_ p_22609_)
public static Optional<LivingEntity>
a(btn arg0, ccs<UUID> arg1)
getLivingEntityFromUUIDMemory(LivingEntity arg0, MemoryModuleType<UUID> arg1)
method_24560(class_1309 arg0, class_4140<UUID> arg1)
getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule)
m_22610_(C_524_ p_22611_, C_753_<UUID> p_22612_)
public static Vec3
a(btw arg0, int arg1, int arg2)
getRandomSwimmablePos(PathfinderMob arg0, int arg1, int arg2)
method_33193(class_1314 arg0, int arg1, int arg2)
find(PathAwareEntity entity, int horizontalRange, int verticalRange)
m_147444_(C_533_ p_147445_, int p_147446_, int p_147447_)
public static boolean
a(btn arg0)
isBreeding(LivingEntity arg0)
method_41331(class_1309 arg0)
hasBreedTarget(LivingEntity entity)
m_217126_(C_524_ p_217127_)