Class SensorType<U extends Sensor<?>>

java.lang.Object
net.minecraft.entity.ai.brain.sensor.SensorType<U>

public class SensorType<U extends Sensor<?>> extends Object
Mappings:
Namespace Name
official bqe
intermediary net/minecraft/class_4149
named net/minecraft/entity/ai/brain/sensor/SensorType
  • Field Details

    • DUMMY

      public static final SensorType<DummySensor> DUMMY
      Mappings:
      Namespace Name Mixin selector
      official a Lbqe;a:Lbqe;
      intermediary field_18465 Lnet/minecraft/class_4149;field_18465:Lnet/minecraft/class_4149;
      named DUMMY Lnet/minecraft/entity/ai/brain/sensor/SensorType;DUMMY:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • NEAREST_ITEMS

      public static final SensorType<NearestItemsSensor> NEAREST_ITEMS
      Mappings:
      Namespace Name Mixin selector
      official b Lbqe;b:Lbqe;
      intermediary field_22358 Lnet/minecraft/class_4149;field_22358:Lnet/minecraft/class_4149;
      named NEAREST_ITEMS Lnet/minecraft/entity/ai/brain/sensor/SensorType;NEAREST_ITEMS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • NEAREST_LIVING_ENTITIES

      public static final SensorType<NearestLivingEntitiesSensor<LivingEntity>> NEAREST_LIVING_ENTITIES
      Mappings:
      Namespace Name Mixin selector
      official c Lbqe;c:Lbqe;
      intermediary field_18466 Lnet/minecraft/class_4149;field_18466:Lnet/minecraft/class_4149;
      named NEAREST_LIVING_ENTITIES Lnet/minecraft/entity/ai/brain/sensor/SensorType;NEAREST_LIVING_ENTITIES:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • NEAREST_PLAYERS

      public static final SensorType<NearestPlayersSensor> NEAREST_PLAYERS
      Mappings:
      Namespace Name Mixin selector
      official d Lbqe;d:Lbqe;
      intermediary field_18467 Lnet/minecraft/class_4149;field_18467:Lnet/minecraft/class_4149;
      named NEAREST_PLAYERS Lnet/minecraft/entity/ai/brain/sensor/SensorType;NEAREST_PLAYERS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • NEAREST_BED

      public static final SensorType<NearestBedSensor> NEAREST_BED
      Mappings:
      Namespace Name Mixin selector
      official e Lbqe;e:Lbqe;
      intermediary field_19010 Lnet/minecraft/class_4149;field_19010:Lnet/minecraft/class_4149;
      named NEAREST_BED Lnet/minecraft/entity/ai/brain/sensor/SensorType;NEAREST_BED:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • HURT_BY

      public static final SensorType<HurtBySensor> HURT_BY
      Mappings:
      Namespace Name Mixin selector
      official f Lbqe;f:Lbqe;
      intermediary field_18469 Lnet/minecraft/class_4149;field_18469:Lnet/minecraft/class_4149;
      named HURT_BY Lnet/minecraft/entity/ai/brain/sensor/SensorType;HURT_BY:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • VILLAGER_HOSTILES

      public static final SensorType<VillagerHostilesSensor> VILLAGER_HOSTILES
      Mappings:
      Namespace Name Mixin selector
      official g Lbqe;g:Lbqe;
      intermediary field_18470 Lnet/minecraft/class_4149;field_18470:Lnet/minecraft/class_4149;
      named VILLAGER_HOSTILES Lnet/minecraft/entity/ai/brain/sensor/SensorType;VILLAGER_HOSTILES:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • VILLAGER_BABIES

      public static final SensorType<VillagerBabiesSensor> VILLAGER_BABIES
      Mappings:
      Namespace Name Mixin selector
      official h Lbqe;h:Lbqe;
      intermediary field_19011 Lnet/minecraft/class_4149;field_19011:Lnet/minecraft/class_4149;
      named VILLAGER_BABIES Lnet/minecraft/entity/ai/brain/sensor/SensorType;VILLAGER_BABIES:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • SECONDARY_POIS

      public static final SensorType<SecondaryPointsOfInterestSensor> SECONDARY_POIS
      Mappings:
      Namespace Name Mixin selector
      official i Lbqe;i:Lbqe;
      intermediary field_18875 Lnet/minecraft/class_4149;field_18875:Lnet/minecraft/class_4149;
      named SECONDARY_POIS Lnet/minecraft/entity/ai/brain/sensor/SensorType;SECONDARY_POIS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • GOLEM_DETECTED

      public static final SensorType<GolemLastSeenSensor> GOLEM_DETECTED
      Mappings:
      Namespace Name Mixin selector
      official j Lbqe;j:Lbqe;
      intermediary field_25756 Lnet/minecraft/class_4149;field_25756:Lnet/minecraft/class_4149;
      named GOLEM_DETECTED Lnet/minecraft/entity/ai/brain/sensor/SensorType;GOLEM_DETECTED:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • PIGLIN_SPECIFIC_SENSOR

      public static final SensorType<PiglinSpecificSensor> PIGLIN_SPECIFIC_SENSOR
      Mappings:
      Namespace Name Mixin selector
      official k Lbqe;k:Lbqe;
      intermediary field_22359 Lnet/minecraft/class_4149;field_22359:Lnet/minecraft/class_4149;
      named PIGLIN_SPECIFIC_SENSOR Lnet/minecraft/entity/ai/brain/sensor/SensorType;PIGLIN_SPECIFIC_SENSOR:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • PIGLIN_BRUTE_SPECIFIC_SENSOR

      public static final SensorType<PiglinBruteSpecificSensor> PIGLIN_BRUTE_SPECIFIC_SENSOR
      Mappings:
      Namespace Name Mixin selector
      official l Lbqe;l:Lbqe;
      intermediary field_25757 Lnet/minecraft/class_4149;field_25757:Lnet/minecraft/class_4149;
      named PIGLIN_BRUTE_SPECIFIC_SENSOR Lnet/minecraft/entity/ai/brain/sensor/SensorType;PIGLIN_BRUTE_SPECIFIC_SENSOR:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • HOGLIN_SPECIFIC_SENSOR

      public static final SensorType<HoglinSpecificSensor> HOGLIN_SPECIFIC_SENSOR
      Mappings:
      Namespace Name Mixin selector
      official m Lbqe;m:Lbqe;
      intermediary field_22360 Lnet/minecraft/class_4149;field_22360:Lnet/minecraft/class_4149;
      named HOGLIN_SPECIFIC_SENSOR Lnet/minecraft/entity/ai/brain/sensor/SensorType;HOGLIN_SPECIFIC_SENSOR:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • NEAREST_ADULT

      public static final SensorType<NearestVisibleAdultSensor> NEAREST_ADULT
      Mappings:
      Namespace Name Mixin selector
      official n Lbqe;n:Lbqe;
      intermediary field_25362 Lnet/minecraft/class_4149;field_25362:Lnet/minecraft/class_4149;
      named NEAREST_ADULT Lnet/minecraft/entity/ai/brain/sensor/SensorType;NEAREST_ADULT:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • AXOLOTL_ATTACKABLES

      public static final SensorType<AxolotlAttackablesSensor> AXOLOTL_ATTACKABLES
      Mappings:
      Namespace Name Mixin selector
      official o Lbqe;o:Lbqe;
      intermediary field_30260 Lnet/minecraft/class_4149;field_30260:Lnet/minecraft/class_4149;
      named AXOLOTL_ATTACKABLES Lnet/minecraft/entity/ai/brain/sensor/SensorType;AXOLOTL_ATTACKABLES:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • AXOLOTL_TEMPTATIONS

      public static final SensorType<TemptationsSensor> AXOLOTL_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      official p Lbqe;p:Lbqe;
      intermediary field_28329 Lnet/minecraft/class_4149;field_28329:Lnet/minecraft/class_4149;
      named AXOLOTL_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;AXOLOTL_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • GOAT_TEMPTATIONS

      public static final SensorType<TemptationsSensor> GOAT_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      official q Lbqe;q:Lbqe;
      intermediary field_30261 Lnet/minecraft/class_4149;field_30261:Lnet/minecraft/class_4149;
      named GOAT_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;GOAT_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • FROG_TEMPTATIONS

      public static final SensorType<TemptationsSensor> FROG_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      official r Lbqe;r:Lbqe;
      intermediary field_37445 Lnet/minecraft/class_4149;field_37445:Lnet/minecraft/class_4149;
      named FROG_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;FROG_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • CAMEL_TEMPTATIONS

      public static final SensorType<TemptationsSensor> CAMEL_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      official s Lbqe;s:Lbqe;
      intermediary field_40128 Lnet/minecraft/class_4149;field_40128:Lnet/minecraft/class_4149;
      named CAMEL_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;CAMEL_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • FROG_ATTACKABLES

      public static final SensorType<FrogAttackablesSensor> FROG_ATTACKABLES
      Mappings:
      Namespace Name Mixin selector
      official t Lbqe;t:Lbqe;
      intermediary field_37446 Lnet/minecraft/class_4149;field_37446:Lnet/minecraft/class_4149;
      named FROG_ATTACKABLES Lnet/minecraft/entity/ai/brain/sensor/SensorType;FROG_ATTACKABLES:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • IS_IN_WATER

      public static final SensorType<IsInWaterSensor> IS_IN_WATER
      Mappings:
      Namespace Name Mixin selector
      official u Lbqe;u:Lbqe;
      intermediary field_37447 Lnet/minecraft/class_4149;field_37447:Lnet/minecraft/class_4149;
      named IS_IN_WATER Lnet/minecraft/entity/ai/brain/sensor/SensorType;IS_IN_WATER:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • WARDEN_ENTITY_SENSOR

      public static final SensorType<WardenAttackablesSensor> WARDEN_ENTITY_SENSOR
      Mappings:
      Namespace Name Mixin selector
      official v Lbqe;v:Lbqe;
      intermediary field_38114 Lnet/minecraft/class_4149;field_38114:Lnet/minecraft/class_4149;
      named WARDEN_ENTITY_SENSOR Lnet/minecraft/entity/ai/brain/sensor/SensorType;WARDEN_ENTITY_SENSOR:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
    • factory

      private final Supplier<U extends Sensor<?>> factory
      Mappings:
      Namespace Name Mixin selector
      official w Lbqe;w:Ljava/util/function/Supplier;
      intermediary field_18471 Lnet/minecraft/class_4149;field_18471:Ljava/util/function/Supplier;
      named factory Lnet/minecraft/entity/ai/brain/sensor/SensorType;factory:Ljava/util/function/Supplier;
  • Constructor Details

    • SensorType

      private SensorType(Supplier<U> factory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbqe;<init>(Ljava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_4149;<init>(Ljava/util/function/Supplier;)V
      named <init> Lnet/minecraft/entity/ai/brain/sensor/SensorType;<init>(Ljava/util/function/Supplier;)V
  • Method Details

    • create

      public U create()
      Mappings:
      Namespace Name Mixin selector
      official a Lbqe;a()Lbqd;
      intermediary method_19102 Lnet/minecraft/class_4149;method_19102()Lnet/minecraft/class_4148;
      named create Lnet/minecraft/entity/ai/brain/sensor/SensorType;create()Lnet/minecraft/entity/ai/brain/sensor/Sensor;
    • register

      private static <U extends Sensor<?>> SensorType<U> register(String id, Supplier<U> factory)
      Mappings:
      Namespace Name Mixin selector
      official a Lbqe;a(Ljava/lang/String;Ljava/util/function/Supplier;)Lbqe;
      intermediary method_19103 Lnet/minecraft/class_4149;method_19103(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraft/class_4149;
      named register Lnet/minecraft/entity/ai/brain/sensor/SensorType;register(Ljava/lang/String;Ljava/util/function/Supplier;)Lnet/minecraft/entity/ai/brain/sensor/SensorType;