public abstract class Sensor<E extends LivingEntity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
counter |
private int |
interval |
private static java.util.Random |
RANDOM |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Set<MemoryModuleType<?>> |
getUsedMemories() |
void |
tick(ServerWorld worldIn,
E entityIn) |
protected abstract void |
update(ServerWorld worldIn,
E entityIn) |
private static final java.util.Random RANDOM
private final int interval
private long counter
public final void tick(ServerWorld worldIn, E entityIn)
protected abstract void update(ServerWorld worldIn, E entityIn)
public abstract java.util.Set<MemoryModuleType<?>> getUsedMemories()