Class NearestVisibleLivingEntitySensor

java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.NearestVisibleLivingEntitySensor
Direct Known Subclasses:
AxolotlAttackablesSensor, VillagerHostilesSensor

public abstract class NearestVisibleLivingEntitySensor extends Sensor<LivingEntity>
Mappings:
Namespace Name
official bfu
intermediary net/minecraft/class_6045
named net/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor
  • Constructor Details

    • NearestVisibleLivingEntitySensor

      public NearestVisibleLivingEntitySensor()
  • Method Details

    • matches

      protected abstract boolean matches(LivingEntity entity, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfu;a(Laxa;Laxa;)Z
      intermediary method_35148 Lnet/minecraft/class_6045;method_35148(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      named matches Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;matches(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
    • getOutputMemoryModule

      protected abstract MemoryModuleType<LivingEntity> getOutputMemoryModule()
      Mappings:
      Namespace Name Mixin selector
      official b Lbfu;b()Lbez;
      intermediary method_35150 Lnet/minecraft/class_6045;method_35150()Lnet/minecraft/class_4140;
      named getOutputMemoryModule Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getOutputMemoryModule()Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • getOutputMemoryModules

      public Set<MemoryModuleType<?>> getOutputMemoryModules()
      Specified by:
      getOutputMemoryModules in class Sensor<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbga;a()Ljava/util/Set;
      intermediary method_19099 Lnet/minecraft/class_4148;method_19099()Ljava/util/Set;
      named getOutputMemoryModules Lnet/minecraft/entity/ai/brain/sensor/Sensor;getOutputMemoryModules()Ljava/util/Set;
    • sense

      protected void sense(ServerWorld world, LivingEntity entity)
      Specified by:
      sense in class Sensor<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbga;a(Ladc;Laxa;)V
      intermediary method_19101 Lnet/minecraft/class_4148;method_19101(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      named sense Lnet/minecraft/entity/ai/brain/sensor/Sensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
    • getNearestVisibleLivingEntity

      private Optional<LivingEntity> getNearestVisibleLivingEntity(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbfu;b(Laxa;)Ljava/util/Optional;
      intermediary method_35151 Lnet/minecraft/class_6045;method_35151(Lnet/minecraft/class_1309;)Ljava/util/Optional;
      named getNearestVisibleLivingEntity Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getNearestVisibleLivingEntity(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
    • getVisibleLivingEntities

      protected Optional<LivingTargetCache> getVisibleLivingEntities(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfu;a(Laxa;)Ljava/util/Optional;
      intermediary method_35147 Lnet/minecraft/class_6045;method_35147(Lnet/minecraft/class_1309;)Ljava/util/Optional;
      named getVisibleLivingEntities Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getVisibleLivingEntities(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;