net.minecraft.entity.ai.brain.sensor

public class NearestBedSensor

extends Sensor<MobEntity>

net.minecraft.world.entity.ai.sensing.NearestBedSensor
net.minecraft.world.entity.ai.sensing.NearestBedSensor
net.minecraft.class_4256
net.minecraft.entity.ai.brain.sensor.NearestBedSensor

Field summary

Modifier and TypeField
private static final int
CACHE_TIMEOUT
CACHE_TIMEOUT
field_30251
REMEMBER_TIME
private static final int
BATCH_SIZE
BATCH_SIZE
field_30252
MAX_TRIES
private static final int
RATE
RATE
field_30253
MAX_EXPIRY_TIME
private final it.unimi.dsi.fastutil.longs.Long2LongMap
batchCache
batchCache
field_20295
positionToExpiryTime
private int
triedCount
triedCount
field_20296
tries
private long
lastUpdate
lastUpdate
field_20297
expiryTime

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public Set<MemoryModuleType<?>>
requires()
requires()
method_19099()
getOutputMemoryModules()
protected void
doTick(ServerLevel level, Mob body)
doTick(ServerLevel level, Mob body)
method_21646(class_3218 arg0, class_1308 arg1)
sense(ServerWorld arg0, MobEntity arg1)