Class VillagerHostilesSensor


public class VillagerHostilesSensor extends NearestVisibleLivingEntitySensor
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor
intermediary net/minecraft/class_4150
official cgt
  • Field Details

    • SQUARED_DISTANCES_FOR_DANGER

      private static final ImmutableMap<EntityType<?>,Float> SQUARED_DISTANCES_FOR_DANGER
      Mappings:
      Namespace Name Mixin selector
      named SQUARED_DISTANCES_FOR_DANGER Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;SQUARED_DISTANCES_FOR_DANGER:Lcom/google/common/collect/ImmutableMap;
      intermediary field_18473 Lnet/minecraft/class_4150;field_18473:Lcom/google/common/collect/ImmutableMap;
      official a Lcgt;a:Lcom/google/common/collect/ImmutableMap;
  • Constructor Details

    • VillagerHostilesSensor

      public VillagerHostilesSensor()
  • Method Details

    • matches

      protected boolean matches(ServerWorld world, LivingEntity entity, LivingEntity target)
      Specified by:
      matches in class NearestVisibleLivingEntitySensor
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;matches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_35148 Lnet/minecraft/class_6045;method_35148(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      official a Lcgj;a(Lash;Lbwf;Lbwf;)Z
    • isCloseEnoughForDanger

      private boolean isCloseEnoughForDanger(LivingEntity villager, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named isCloseEnoughForDanger Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;isCloseEnoughForDanger(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_19105 Lnet/minecraft/class_4150;method_19105(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      official a Lcgt;a(Lbwf;Lbwf;)Z
    • getOutputMemoryModule

      protected MemoryModuleType<LivingEntity> getOutputMemoryModule()
      Specified by:
      getOutputMemoryModule in class NearestVisibleLivingEntitySensor
      Mappings:
      Namespace Name Mixin selector
      named getOutputMemoryModule Lnet/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor;getOutputMemoryModule()Lnet/minecraft/entity/ai/brain/MemoryModuleType;
      intermediary method_35150 Lnet/minecraft/class_6045;method_35150()Lnet/minecraft/class_4140;
      official b Lcgj;b()Lcfj;
    • isHostile

      private boolean isHostile(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named isHostile Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;isHostile(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_19104 Lnet/minecraft/class_4150;method_19104(Lnet/minecraft/class_1309;)Z
      official b Lcgt;b(Lbwf;)Z