public class WanderGoal
extends net.minecraft.entity.ai.goal.Goal
| Constructor and Description |
|---|
WanderGoal(net.minecraft.entity.CreatureEntity creature)
Initializes an AI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinueToUse()
Returns whether an in-progress EntityAIBase should continue executing.
|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
void |
makeUpdate()
Makes task to bypass chance.
|
void |
setExecutionChance(int newchance)
Changes task random possibility for execution.
|
void |
start()
Execute a one-shot task or start executing a continuous task.
|
public WanderGoal(net.minecraft.entity.CreatureEntity creature)
creature - The entity that the AI is controlling.public boolean canUse()
canUse in class net.minecraft.entity.ai.goal.Goalpublic boolean canContinueToUse()
canContinueToUse in class net.minecraft.entity.ai.goal.Goalpublic void start()
start in class net.minecraft.entity.ai.goal.Goalpublic void makeUpdate()
public void setExecutionChance(int newchance)