Package net.minecraft.src
Class EntityAIControlledByPlayer
java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAIControlledByPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBoost the entity's movement speed.booleanReturn whether the entity is being controlled by a player.booleanReturn whether the entity's speed is boosted.voidResets the taskbooleanReturns whether the EntityAIBase should begin execution.voidExecute a one shot task or start executing a continuous taskvoidUpdates the taskMethods inherited from class net.minecraft.src.EntityAIBase
continueExecuting, getMutexBits, isContinuous, setMutexBits
-
Constructor Details
-
EntityAIControlledByPlayer
-
-
Method Details
-
startExecuting
public void startExecuting()Execute a one shot task or start executing a continuous task- Overrides:
startExecutingin classEntityAIBase
-
resetTask
public void resetTask()Resets the task- Overrides:
resetTaskin classEntityAIBase
-
shouldExecute
public boolean shouldExecute()Returns whether the EntityAIBase should begin execution.- Specified by:
shouldExecutein classEntityAIBase
-
updateTask
public void updateTask()Updates the task- Overrides:
updateTaskin classEntityAIBase
-
isSpeedBoosted
public boolean isSpeedBoosted()Return whether the entity's speed is boosted. -
boostSpeed
public void boostSpeed()Boost the entity's movement speed. -
isControlledByPlayer
public boolean isControlledByPlayer()Return whether the entity is being controlled by a player.
-