public class NearestLivingEntitiesSensor extends Sensor<LivingEntity>
| Modifier and Type | Field and Description |
|---|---|
private static TargetPredicate |
CLOSE_ENTITY_PREDICATE |
| Constructor and Description |
|---|
NearestLivingEntitiesSensor() |
| Modifier and Type | Method and Description |
|---|---|
Set<MemoryModuleType<?>> |
getOutputMemoryModules() |
protected void |
sense(ServerWorld world,
LivingEntity entity) |
private static final TargetPredicate CLOSE_ENTITY_PREDICATE
protected void sense(ServerWorld world, LivingEntity entity)
sense in class Sensor<LivingEntity>public Set<MemoryModuleType<?>> getOutputMemoryModules()
getOutputMemoryModules in class Sensor<LivingEntity>