public class EntityAIOcelotSit extends EntityAIMoveToBlock
destinationBlock, runDelay| Constructor and Description |
|---|
EntityAIOcelotSit(EntityOcelot ocelotIn,
double p_i45315_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
resetTask()
Reset the task's internal state.
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
protected boolean |
shouldMoveTo(World worldIn,
BlockPos pos)
Return true to set given position as destination
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Keep ticking a continuous task that has already been started
|
getIsAboveDestination, shouldContinueExecutinggetMutexBits, isInterruptible, setMutexBitspublic EntityAIOcelotSit(EntityOcelot ocelotIn, double p_i45315_2_)
public boolean shouldExecute()
shouldExecute in class EntityAIMoveToBlockpublic void startExecuting()
startExecuting in class EntityAIMoveToBlockpublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIMoveToBlockprotected boolean shouldMoveTo(World worldIn, BlockPos pos)
shouldMoveTo in class EntityAIMoveToBlock