public class EntityAISit extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private boolean |
isSitting
If the EntityTameable is sitting.
|
private EntityTameable |
theEntity |
Constructor and Description |
---|
EntityAISit(EntityTameable entityIn) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask()
Resets the task
|
void |
setSitting(boolean sitting)
Sets the sitting flag.
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
continueExecuting, getMutexBits, isInterruptible, setMutexBits, updateTask
private EntityTameable theEntity
private boolean isSitting
public EntityAISit(EntityTameable entityIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void setSitting(boolean sitting)