public abstract class Task<E extends LivingEntity>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Task.Status |
Constructor and Description |
---|
Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51504_1_) |
Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51505_1_,
int p_i51505_2_) |
Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51506_1_,
int p_i51506_2_,
int p_i51506_3_) |
Modifier and Type | Method and Description |
---|---|
Task.Status |
getStatus() |
protected boolean |
isTimedOut(long gameTime) |
protected void |
resetTask(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
protected boolean |
shouldContinueExecuting(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
protected boolean |
shouldExecute(ServerWorld worldIn,
E owner) |
boolean |
start(ServerWorld worldIn,
E owner,
long gameTime) |
protected void |
startExecuting(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
void |
stop(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
void |
tick(ServerWorld worldIn,
E entityIn,
long gameTime) |
java.lang.String |
toString() |
protected void |
updateTask(ServerWorld worldIn,
E owner,
long gameTime) |
public Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51504_1_)
public Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51505_1_, int p_i51505_2_)
public Task(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51506_1_, int p_i51506_2_, int p_i51506_3_)
public Task.Status getStatus()
public final boolean start(ServerWorld worldIn, E owner, long gameTime)
protected void startExecuting(ServerWorld worldIn, E entityIn, long gameTimeIn)
public final void tick(ServerWorld worldIn, E entityIn, long gameTime)
protected void updateTask(ServerWorld worldIn, E owner, long gameTime)
public final void stop(ServerWorld worldIn, E entityIn, long gameTimeIn)
protected void resetTask(ServerWorld worldIn, E entityIn, long gameTimeIn)
protected boolean shouldContinueExecuting(ServerWorld worldIn, E entityIn, long gameTimeIn)
protected boolean isTimedOut(long gameTime)
protected boolean shouldExecute(ServerWorld worldIn, E owner)
public java.lang.String toString()
toString
in class java.lang.Object