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