public class WanderAroundGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected int |
chance |
protected boolean |
ignoringChance |
protected MobEntityWithAi |
mob |
protected double |
speed |
protected double |
targetX |
protected double |
targetY |
protected double |
targetZ |
| Constructor and Description |
|---|
WanderAroundGoal(MobEntityWithAi mob,
double speed) |
WanderAroundGoal(MobEntityWithAi mob,
double speed,
int chance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
protected Vec3d |
getWanderTarget() |
void |
ignoreChanceOnce() |
void |
setChance(int chance) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
canStop, getControls, setControls, tick, toStringprotected final MobEntityWithAi mob
protected double targetX
protected double targetY
protected double targetZ
protected final double speed
protected int chance
protected boolean ignoringChance
public WanderAroundGoal(MobEntityWithAi mob, double speed)
public WanderAroundGoal(MobEntityWithAi mob, double speed, int chance)
public boolean shouldContinue()
shouldContinue in class Goalpublic void ignoreChanceOnce()
public void setChance(int chance)