public class WanderAroundGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected int |
chance |
private boolean |
field_24463 |
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) |
WanderAroundGoal(MobEntityWithAi mobEntityWithAi,
double double2,
int int2,
boolean bool) |
| 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
private boolean field_24463
public WanderAroundGoal(MobEntityWithAi mob, double speed)
public WanderAroundGoal(MobEntityWithAi mob, double speed, int chance)
public WanderAroundGoal(MobEntityWithAi mobEntityWithAi, double double2, int int2, boolean bool)
public boolean shouldContinue()
shouldContinue in class Goalpublic void ignoreChanceOnce()
public void setChance(int chance)