类 VillagerHostilesSensor


  • public class VillagerHostilesSensor
    extends NearestVisibleLivingEntitySensor
    Mappings:
    Namespace Name
    official bbz
    intermediary net/minecraft/class_4150
    named net/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor
    • 字段详细资料

      • SQUARED_DISTANCES_FOR_DANGER

        private static final ImmutableMap<EntityType<?>,​Float> SQUARED_DISTANCES_FOR_DANGER
        Mappings:
        Namespace Name Mixin selector
        official a Lbbz;a:Lcom/google/common/collect/ImmutableMap;
        intermediary field_18473 Lnet/minecraft/class_4150;field_18473:Lcom/google/common/collect/ImmutableMap;
        named SQUARED_DISTANCES_FOR_DANGER Lnet/minecraft/entity/ai/brain/sensor/VillagerHostilesSensor;SQUARED_DISTANCES_FOR_DANGER:Lcom/google/common/collect/ImmutableMap;
    • 构造器详细资料

      • VillagerHostilesSensor

        public VillagerHostilesSensor()
    • 方法详细资料

      • matches

        protected boolean matches​(LivingEntity entity,
                                  LivingEntity target)
        指定者:
        matches 在类中 NearestVisibleLivingEntitySensor
        Mappings:
        Namespace Name Mixin selector
        official a Lbbp;a(Lasy;Lasy;)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
      • isCloseEnoughForDanger

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

        protected MemoryModuleType<LivingEntity> getOutputMemoryModule()
        指定者:
        getOutputMemoryModule 在类中 NearestVisibleLivingEntitySensor
        Mappings:
        Namespace Name Mixin selector
        official b Lbbp;b()Lbav;
        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;
      • isHostile

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