net.minecraft.world.entity.ai.behavior

public class BehaviorUtils

avi
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
public ()

Method summary

Modifier and TypeMethod
public static void
a(atu arg0, atu arg1, float arg2)
lockGazeAndWalkToEachOther(LivingEntity arg0, LivingEntity arg1, float arg2)
method_19548(class_1309 arg0, class_1309 arg1, float arg2)
lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed)
m_22602_(C_524_ p_22603_, C_524_ p_22604_, float p_22605_)
public static boolean
a(aup<?> arg0, atu 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(aup<?> arg0, bbu<? extends atu> arg1, atk<?> 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(aup<?> arg0, bbu<? extends atu> arg1, Predicate<atu> 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(atu arg0, atu 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(atu arg0, atu 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(atu arg0, atu arg1, float arg2)
setWalkAndLookTargetMemoriesToEachOther(LivingEntity arg0, LivingEntity arg1, float arg2)
method_19555(class_1309 arg0, class_1309 arg1, float arg2)
walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed)
m_22660_(C_524_ p_22661_, C_524_ p_22662_, float p_22663_)
public static void
a(atu arg0, atg 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(atu arg0, gg 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(atu arg0, bqq arg1, dna 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 SectionPos
a(abr arg0, gz 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(atw arg0, atu arg1, int arg2)
isWithinAttackRange(Mob arg0, LivingEntity arg1, int arg2)
method_25940(class_1308 arg0, class_1309 arg1, int arg2)
isTargetWithinAttackRange(MobEntity source, LivingEntity target, int rangedWeaponReachReduction)
m_22632_(C_526_ p_22633_, C_524_ p_22634_, int p_22635_)
public static boolean
a(atw arg0, atu arg1)
isWithinMeleeAttackRange(Mob arg0, LivingEntity arg1)
method_25941(class_1308 arg0, class_1309 arg1)
isTargetWithinMeleeRange(MobEntity source, LivingEntity target)
m_147441_(C_526_ p_147442_, C_524_ p_147443_)
public static boolean
a(atu arg0, atu 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(atu arg0, atu 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(atu arg0, Optional<atu> arg1, atu 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(atu arg0, atu arg1, atu 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(atu arg0, bbu<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 Stream<Villager>
a(bjr arg0, Predicate<bjr> arg1)
getNearbyVillagersWithCondition(Villager arg0, Predicate<Villager> arg1)
method_29248(class_1646 arg0, Predicate<class_1646> arg1)
streamSeenVillagers(VillagerEntity villager, Predicate<VillagerEntity> filter)
m_22650_(C_1118_ p_22651_, Predicate<C_1118_> p_22652_)
public static Vec3
a(aud 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_)