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
named net/minecraft/entity/ai/brain/sensor/SensorType
intermediary net/minecraft/class_4149
official cec
  • Field Details

    • DUMMY

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

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

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

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

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

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

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

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

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

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

      public static final SensorType<ArmadilloScareDetectedSensor<ArmadilloEntity>> ARMADILLO_SCARE_DETECTED
      Mappings:
      Namespace Name Mixin selector
      named ARMADILLO_SCARE_DETECTED Lnet/minecraft/entity/ai/brain/sensor/SensorType;ARMADILLO_SCARE_DETECTED:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
      intermediary field_47768 Lnet/minecraft/class_4149;field_47768:Lnet/minecraft/class_4149;
      official k Lcec;k:Lcec;
    • PIGLIN_SPECIFIC_SENSOR

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

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

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

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

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

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

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

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

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

      public static final SensorType<TemptationsSensor> ARMADILLO_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      named ARMADILLO_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;ARMADILLO_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
      intermediary field_47769 Lnet/minecraft/class_4149;field_47769:Lnet/minecraft/class_4149;
      official u Lcec;u:Lcec;
    • FROG_ATTACKABLES

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

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

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

      public static final SensorType<TemptationsSensor> SNIFFER_TEMPTATIONS
      Mappings:
      Namespace Name Mixin selector
      named SNIFFER_TEMPTATIONS Lnet/minecraft/entity/ai/brain/sensor/SensorType;SNIFFER_TEMPTATIONS:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
      intermediary field_44475 Lnet/minecraft/class_4149;field_44475:Lnet/minecraft/class_4149;
      official y Lcec;y:Lcec;
    • BREEZE_ATTACK_ENTITY_SENSOR

      public static final SensorType<BreezeAttackablesSensor> BREEZE_ATTACK_ENTITY_SENSOR
      Mappings:
      Namespace Name Mixin selector
      named BREEZE_ATTACK_ENTITY_SENSOR Lnet/minecraft/entity/ai/brain/sensor/SensorType;BREEZE_ATTACK_ENTITY_SENSOR:Lnet/minecraft/entity/ai/brain/sensor/SensorType;
      intermediary field_47261 Lnet/minecraft/class_4149;field_47261:Lnet/minecraft/class_4149;
      official z Lcec;z:Lcec;
    • factory

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

    • SensorType

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

    • create

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

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