public class EntityAIControlledByPlayer extends EntityAIBase
| Constructor and Description |
|---|
EntityAIControlledByPlayer(EntityLiving entitylivingIn,
float maxspeed) |
| Modifier and Type | Method and Description |
|---|---|
void |
boostSpeed()
Boost the entity's movement speed.
|
boolean |
isControlledByPlayer()
Return whether the entity is being controlled by a player.
|
boolean |
isSpeedBoosted()
Return whether the entity's speed is boosted.
|
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
continueExecuting, getMutexBits, isInterruptible, setMutexBitspublic EntityAIControlledByPlayer(EntityLiving entitylivingIn, float maxspeed)
public void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic boolean shouldExecute()
shouldExecute in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBasepublic boolean isSpeedBoosted()
public void boostSpeed()
public boolean isControlledByPlayer()