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, setMutexBits
public EntityAIControlledByPlayer(EntityLiving entitylivingIn, float maxspeed)
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
public boolean isSpeedBoosted()
public void boostSpeed()
public boolean isControlledByPlayer()