Class LookTargetUtil

java.lang.Object
net.minecraft.entity.ai.brain.task.LookTargetUtil

public class LookTargetUtil
extends Object
Mappings:
Namespace Name
official ast
intermediary net/minecraft/class_4215
named net/minecraft/entity/ai/brain/task/LookTargetUtil
  • Constructor Details

    • LookTargetUtil

      public LookTargetUtil()
  • Method Details

    • lookAtAndWalkTowardsEachOther

      public static void lookAtAndWalkTowardsEachOther​(LivingEntity first, LivingEntity second, float speed)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lari;F)V
      intermediary method_19548 Lnet/minecraft/class_4215;method_19548(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;F)V
      named lookAtAndWalkTowardsEachOther Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;lookAtAndWalkTowardsEachOther(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;F)V
    • canSee

      public static boolean canSee​(Brain<?> brain, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lasc;Lari;)Z
      intermediary method_19550 Lnet/minecraft/class_4215;method_19550(Lnet/minecraft/class_4095;Lnet/minecraft/class_1309;)Z
      named canSee Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;canSee(Lnet/minecraft/entity/ai/brain/Brain;Lnet/minecraft/entity/LivingEntity;)Z
    • canSee

      public static boolean canSee​(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lasc;Lazf;Laqz;)Z
      intermediary method_19551 Lnet/minecraft/class_4215;method_19551(Lnet/minecraft/class_4095;Lnet/minecraft/class_4140;Lnet/minecraft/class_1299;)Z
      named canSee Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;canSee(Lnet/minecraft/entity/ai/brain/Brain;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/EntityType;)Z
    • canSee

      private static boolean canSee​(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lasc;Lazf;Ljava/util/function/Predicate;)Z
      intermediary method_24564 Lnet/minecraft/class_4215;method_24564(Lnet/minecraft/class_4095;Lnet/minecraft/class_4140;Ljava/util/function/Predicate;)Z
      named canSee Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;canSee(Lnet/minecraft/entity/ai/brain/Brain;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/function/Predicate;)Z
    • lookAtEachOther

      private static void lookAtEachOther​(LivingEntity first, LivingEntity second)
      Mappings:
      Namespace Name Mixin selector
      official c Last;c(Lari;Lari;)V
      intermediary method_19552 Lnet/minecraft/class_4215;method_19552(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)V
      named lookAtEachOther Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;lookAtEachOther(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)V
    • lookAt

      public static void lookAt​(LivingEntity entity, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lari;)V
      intermediary method_19554 Lnet/minecraft/class_4215;method_19554(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)V
      named lookAt Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;lookAt(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)V
    • walkTowardsEachOther

      private static void walkTowardsEachOther​(LivingEntity first, LivingEntity second, float speed)
      Mappings:
      Namespace Name Mixin selector
      official b Last;b(Lari;Lari;F)V
      intermediary method_19555 Lnet/minecraft/class_4215;method_19555(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;F)V
      named walkTowardsEachOther Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;walkTowardsEachOther(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;F)V
    • walkTowards

      public static void walkTowards​(LivingEntity entity, Entity target, float speed, int completionRange)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Laqv;FI)V
      intermediary method_24557 Lnet/minecraft/class_4215;method_24557(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;FI)V
      named walkTowards Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;walkTowards(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;FI)V
    • walkTowards

      public static void walkTowards​(LivingEntity entity, BlockPos target, float speed, int completionRange)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lfx;FI)V
      intermediary method_24561 Lnet/minecraft/class_4215;method_24561(Lnet/minecraft/class_1309;Lnet/minecraft/class_2338;FI)V
      named walkTowards Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;walkTowards(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/BlockPos;FI)V
    • give

      public static void give​(LivingEntity entity, ItemStack stack, Vec3d targetLocation)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lbnv;Ldiu;)V
      intermediary method_19949 Lnet/minecraft/class_4215;method_19949(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_243;)V
      named give Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;give(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Vec3d;)V
    • getPosClosestToOccupiedPointOfInterest

      public static ChunkSectionPos getPosClosestToOccupiedPointOfInterest​(ServerWorld world, ChunkSectionPos center, int radius)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Laav;Lgq;I)Lgq;
      intermediary method_20419 Lnet/minecraft/class_4215;method_20419(Lnet/minecraft/class_3218;Lnet/minecraft/class_4076;I)Lnet/minecraft/class_4076;
      named getPosClosestToOccupiedPointOfInterest Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;getPosClosestToOccupiedPointOfInterest(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/ChunkSectionPos;I)Lnet/minecraft/util/math/ChunkSectionPos;
    • method_25940

      public static boolean method_25940​(MobEntity mobEntity, LivingEntity livingEntity, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Larj;Lari;I)Z
      intermediary method_25940 Lnet/minecraft/class_4215;method_25940(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;I)Z
      named method_25940 Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;method_25940(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;I)Z
    • method_25941

      public static boolean method_25941​(MobEntity mobEntity, LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Larj;Lari;)Z
      intermediary method_25941 Lnet/minecraft/class_4215;method_25941(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)Z
      named method_25941 Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;method_25941(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • isNewTargetTooFar

      public static boolean isNewTargetTooFar​(LivingEntity source, LivingEntity target, double extraDistance)
      Checks if an entity can be a new attack target for the source entity.
      Parameters:
      source - the source entity
      target - the attack target candidate
      extraDistance - the max distance this new target can be farther compared to the existing target
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lari;D)Z
      intermediary method_24558 Lnet/minecraft/class_4215;method_24558(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;D)Z
      named isNewTargetTooFar Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;isNewTargetTooFar(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;D)Z
    • isVisibleInMemory

      public static boolean isVisibleInMemory​(LivingEntity source, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official b Last;b(Lari;Lari;)Z
      intermediary method_24565 Lnet/minecraft/class_4215;method_24565(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      named isVisibleInMemory Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;isVisibleInMemory(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • getCloserEntity

      public static LivingEntity getCloserEntity​(LivingEntity source, Optional<LivingEntity> first, LivingEntity second)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Ljava/util/Optional;Lari;)Lari;
      intermediary method_24562 Lnet/minecraft/class_4215;method_24562(Lnet/minecraft/class_1309;Ljava/util/Optional;Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
      named getCloserEntity Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;getCloserEntity(Lnet/minecraft/entity/LivingEntity;Ljava/util/Optional;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
    • getCloserEntity

      public static LivingEntity getCloserEntity​(LivingEntity source, LivingEntity first, LivingEntity second)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lari;Lari;)Lari;
      intermediary method_24559 Lnet/minecraft/class_4215;method_24559(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
      named getCloserEntity Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;getCloserEntity(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
    • getEntity

      public static Optional<LivingEntity> getEntity​(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lari;Lazf;)Ljava/util/Optional;
      intermediary method_24560 Lnet/minecraft/class_4215;method_24560(Lnet/minecraft/class_1309;Lnet/minecraft/class_4140;)Ljava/util/Optional;
      named getEntity Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;getEntity(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Optional;
    • streamSeenVillagers

      public static Stream<VillagerEntity> streamSeenVillagers​(VillagerEntity villager, Predicate<VillagerEntity> filter)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Lbgy;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      intermediary method_29248 Lnet/minecraft/class_4215;method_29248(Lnet/minecraft/class_1646;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      named streamSeenVillagers Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;streamSeenVillagers(Lnet/minecraft/entity/passive/VillagerEntity;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
    • method_33193

      @Nullable public static Vec3d method_33193​(PathAwareEntity pathAwareEntity, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Last;a(Larq;II)Ldiu;
      intermediary method_33193 Lnet/minecraft/class_4215;method_33193(Lnet/minecraft/class_1314;II)Lnet/minecraft/class_243;
      named method_33193 Lnet/minecraft/entity/ai/brain/task/LookTargetUtil;method_33193(Lnet/minecraft/entity/mob/PathAwareEntity;II)Lnet/minecraft/util/math/Vec3d;