Class NearestBedSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<MobEntity>
net.minecraft.entity.ai.brain.sensor.NearestBedSensor
public class NearestBedSensor extends Sensor<MobEntity>
- Mappings:
Namespace Name official azx
intermediary net/minecraft/class_4256
named net/minecraft/entity/ai/brain/sensor/NearestBedSensor
-
Field Summary
Fields Modifier and Type Field Description private long
expiryTime
private Long2LongMap
positionToExpiryTime
private int
tries
-
Constructor Summary
Constructors Constructor Description NearestBedSensor()
-
Method Summary
Modifier and Type Method Description Set<MemoryModuleType<?>>
getOutputMemoryModules()
protected void
sense(ServerWorld serverWorld, MobEntity mobEntity)
Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testTargetPredicate, tick
-
Field Details
-
positionToExpiryTime
- Mappings:
Namespace Name Mixin selector official a
Lazx;a:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
intermediary field_20295
Lnet/minecraft/class_4256;field_20295:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
named positionToExpiryTime
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;positionToExpiryTime:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
tries
private int tries- Mappings:
Namespace Name Mixin selector official b
Lazx;b:I
intermediary field_20296
Lnet/minecraft/class_4256;field_20296:I
named tries
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;tries:I
-
expiryTime
private long expiryTime- Mappings:
Namespace Name Mixin selector official c
Lazx;c:J
intermediary field_20297
Lnet/minecraft/class_4256;field_20297:J
named expiryTime
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;expiryTime:J
-
-
Constructor Details
-
NearestBedSensor
public NearestBedSensor()
-
-
Method Details
-
getOutputMemoryModules
- Specified by:
getOutputMemoryModules
in classSensor<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbaf;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;
-
sense
- Specified by:
sense
in classSensor<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lazx;a(Laav;Larj;)V
intermediary method_21646
Lnet/minecraft/class_4256;method_21646(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)V
named sense
Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)V
-