public abstract class Sensor<E extends LivingEntity> extends Object
Modifier and Type | Field and Description |
---|---|
private long |
lastSenseTime |
private static Random |
RANDOM |
private int |
senseInterval |
Modifier and Type | Method and Description |
---|---|
void |
canSense(ServerWorld serverWorld,
E entity) |
abstract Set<MemoryModuleType<?>> |
getOutputMemoryModules() |
protected abstract void |
sense(ServerWorld world,
E entity) |
private static final Random RANDOM
private final int senseInterval
private long lastSenseTime
public final void canSense(ServerWorld serverWorld, E entity)
protected abstract void sense(ServerWorld world, E entity)
public abstract Set<MemoryModuleType<?>> getOutputMemoryModules()