Class Sensor<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<E>
- Direct Known Subclasses:
DummySensor
,GolemLastSeenSensor
,HoglinSpecificSensor
,HurtBySensor
,NearestBedSensor
,NearestItemsSensor
,NearestLivingEntitiesSensor
,NearestPlayersSensor
,NearestVisibleAdultSensor
,NearestVisibleLivingEntitySensor
,PiglinBruteSpecificSensor
,PiglinSpecificSensor
,SecondaryPointsOfInterestSensor
,TemptationsSensor
,VillagerBabiesSensor
- Mappings:
Namespace Name official bct
intermediary net/minecraft/class_4148
named net/minecraft/entity/ai/brain/sensor/Sensor
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
private static final int
private static final TargetPredicate
private static final TargetPredicate
private long
private static final Random
private final int
private static final TargetPredicate
private static final TargetPredicate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Set<MemoryModuleType<?>>
static boolean
method_36982
(LivingEntity livingEntity, LivingEntity livingEntity2) protected abstract void
sense
(ServerWorld world, E entity) protected static boolean
testTargetPredicate
(LivingEntity entity, LivingEntity target) final void
tick
(ServerWorld world, E entity)
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector official a
Lbct;a:Ljava/util/Random;
intermediary field_19294
Lnet/minecraft/class_4148;field_19294:Ljava/util/Random;
named RANDOM
Lnet/minecraft/entity/ai/brain/sensor/Sensor;RANDOM:Ljava/util/Random;
-
DEFAULT_RUN_TIME
private static final int DEFAULT_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lbct;c:I
intermediary field_30259
Lnet/minecraft/class_4148;field_30259:I
named DEFAULT_RUN_TIME
Lnet/minecraft/entity/ai/brain/sensor/Sensor;DEFAULT_RUN_TIME:I
-
BASE_MAX_DISTANCE
protected static final int BASE_MAX_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbct;b:I
intermediary field_30258
Lnet/minecraft/class_4148;field_30258:I
named BASE_MAX_DISTANCE
Lnet/minecraft/entity/ai/brain/sensor/Sensor;BASE_MAX_DISTANCE:I
-
TARGET_PREDICATE
- Mappings:
Namespace Name Mixin selector official d
Lbct;d:Lbcz;
intermediary field_26630
Lnet/minecraft/class_4148;field_26630:Lnet/minecraft/class_4051;
named TARGET_PREDICATE
Lnet/minecraft/entity/ai/brain/sensor/Sensor;TARGET_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
-
TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
- Mappings:
Namespace Name Mixin selector official e
Lbct;e:Lbcz;
intermediary field_26631
Lnet/minecraft/class_4148;field_26631:Lnet/minecraft/class_4051;
named TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
Lnet/minecraft/entity/ai/brain/sensor/Sensor;TARGET_PREDICATE_IGNORE_DISTANCE_SCALING:Lnet/minecraft/entity/ai/TargetPredicate;
-
field_33762
- Mappings:
Namespace Name Mixin selector official f
Lbct;f:Lbcz;
intermediary field_33762
Lnet/minecraft/class_4148;field_33762:Lnet/minecraft/class_4051;
named field_33762
Lnet/minecraft/entity/ai/brain/sensor/Sensor;field_33762:Lnet/minecraft/entity/ai/TargetPredicate;
-
field_33763
- Mappings:
Namespace Name Mixin selector official g
Lbct;g:Lbcz;
intermediary field_33763
Lnet/minecraft/class_4148;field_33763:Lnet/minecraft/class_4051;
named field_33763
Lnet/minecraft/entity/ai/brain/sensor/Sensor;field_33763:Lnet/minecraft/entity/ai/TargetPredicate;
-
senseInterval
private final int senseInterval- Mappings:
Namespace Name Mixin selector official h
Lbct;h:I
intermediary field_18464
Lnet/minecraft/class_4148;field_18464:I
named senseInterval
Lnet/minecraft/entity/ai/brain/sensor/Sensor;senseInterval:I
-
lastSenseTime
private long lastSenseTime- Mappings:
Namespace Name Mixin selector official i
Lbct;i:J
intermediary field_18463
Lnet/minecraft/class_4148;field_18463:J
named lastSenseTime
Lnet/minecraft/entity/ai/brain/sensor/Sensor;lastSenseTime:J
-
-
Constructor Details
-
Sensor
public Sensor(int senseInterval) - Mappings:
Namespace Name Mixin selector official <init>
Lbct;<init>(I)V
intermediary <init>
Lnet/minecraft/class_4148;<init>(I)V
named <init>
Lnet/minecraft/entity/ai/brain/sensor/Sensor;<init>(I)V
-
Sensor
public Sensor()
-
-
Method Details
-
tick
- Mappings:
Namespace Name Mixin selector official b
Lbct;b(Labr;Latt;)V
intermediary method_19100
Lnet/minecraft/class_4148;method_19100(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named tick
Lnet/minecraft/entity/ai/brain/sensor/Sensor;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
sense
- Mappings:
Namespace Name Mixin selector official a
Lbct;a(Labr;Latt;)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
-
getOutputMemoryModules
- Mappings:
Namespace Name Mixin selector official a
Lbct;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;
-
testTargetPredicate
- Mappings:
Namespace Name Mixin selector official b
Lbct;b(Latt;Latt;)Z
intermediary method_30954
Lnet/minecraft/class_4148;method_30954(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named testTargetPredicate
Lnet/minecraft/entity/ai/brain/sensor/Sensor;testTargetPredicate(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
method_36982
- Mappings:
Namespace Name Mixin selector official c
Lbct;c(Latt;Latt;)Z
intermediary method_36982
Lnet/minecraft/class_4148;method_36982(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named method_36982
Lnet/minecraft/entity/ai/brain/sensor/Sensor;method_36982(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-