Class NearestBedSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<Mob>
net.minecraft.world.entity.ai.sensing.NearestBedSensor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final it.unimi.dsi.fastutil.longs.Long2LongMap
private static final int
private long
private static final int
private int
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel p_26685_, Mob p_26686_) Set
<MemoryModuleType<?>> requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
CACHE_TIMEOUT
private static final int CACHE_TIMEOUT- See Also:
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
-
RATE
private static final int RATE- See Also:
-
batchCache
private final it.unimi.dsi.fastutil.longs.Long2LongMap batchCache -
triedCount
private int triedCount -
lastUpdate
private long lastUpdate
-
-
Constructor Details
-
NearestBedSensor
public NearestBedSensor()
-
-
Method Details