Class NearestBedSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<MobEntity>
net.minecraft.entity.ai.brain.sensor.NearestBedSensor
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/sensor/NearestBedSensor
intermediary net/minecraft/class_4256
official cdr
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private static final int
private static final int
private final Long2LongMap
private static final int
private int
Fields inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
BASE_MAX_DISTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet
<MemoryModuleType<?>> protected void
sense
(ServerWorld serverWorld, MobEntity mobEntity) Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testAttackableTargetPredicate, testAttackableTargetPredicateIgnoreVisibility, testTargetPredicate, tick
-
Field Details
-
REMEMBER_TIME
private static final int REMEMBER_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named REMEMBER_TIME
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;REMEMBER_TIME:I
intermediary field_30251
Lnet/minecraft/class_4256;field_30251:I
official a
Lcdr;a:I
-
MAX_TRIES
private static final int MAX_TRIES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TRIES
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;MAX_TRIES:I
intermediary field_30252
Lnet/minecraft/class_4256;field_30252:I
official c
Lcdr;c:I
-
MAX_EXPIRY_TIME
private static final int MAX_EXPIRY_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_EXPIRY_TIME
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;MAX_EXPIRY_TIME:I
intermediary field_30253
Lnet/minecraft/class_4256;field_30253:I
official d
Lcdr;d:I
-
positionToExpiryTime
- Mappings:
Namespace Name Mixin selector named positionToExpiryTime
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;positionToExpiryTime:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
intermediary field_20295
Lnet/minecraft/class_4256;field_20295:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
official e
Lcdr;e:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
tries
private int tries- Mappings:
Namespace Name Mixin selector named tries
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;tries:I
intermediary field_20296
Lnet/minecraft/class_4256;field_20296:I
official f
Lcdr;f:I
-
expiryTime
private long expiryTime- Mappings:
Namespace Name Mixin selector named expiryTime
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;expiryTime:J
intermediary field_20297
Lnet/minecraft/class_4256;field_20297:J
official g
Lcdr;g:J
-
-
Constructor Details
-
NearestBedSensor
public NearestBedSensor()
-
-
Method Details
-
getOutputMemoryModules
- Specified by:
getOutputMemoryModules
in classSensor<MobEntity>
- Mappings:
Namespace Name Mixin selector named getOutputMemoryModules
Lnet/minecraft/entity/ai/brain/sensor/Sensor;getOutputMemoryModules()Ljava/util/Set;
intermediary method_19099
Lnet/minecraft/class_4148;method_19099()Ljava/util/Set;
official a
Lcea;a()Ljava/util/Set;
-
sense
- Specified by:
sense
in classSensor<MobEntity>
- Mappings:
Namespace Name Mixin selector named sense
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)V
intermediary method_21646
Lnet/minecraft/class_4256;method_21646(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)V
official a
Lcdr;a(Larf;Lbts;)V
-