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 int
private it.unimi.dsi.fastutil.longs.Long2LongMap
private static int
private long
private static 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:
- Constant Field Values
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
- Constant Field Values
-
RATE
private static final int RATE- See Also:
- Constant Field Values
-
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