public class WanderAroundGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
protected int |
chance |
private boolean |
field_24463 |
protected boolean |
ignoringChance |
protected PathAwareEntity |
mob |
protected double |
speed |
protected double |
targetX |
protected double |
targetY |
protected double |
targetZ |
Constructor and Description |
---|
WanderAroundGoal(PathAwareEntity mob,
double speed) |
WanderAroundGoal(PathAwareEntity mob,
double speed,
int chance) |
WanderAroundGoal(PathAwareEntity pathAwareEntity,
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, toString
protected final PathAwareEntity 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(PathAwareEntity mob, double speed)
public WanderAroundGoal(PathAwareEntity mob, double speed, int chance)
public WanderAroundGoal(PathAwareEntity pathAwareEntity, double double2, int int2, boolean bool)
public boolean shouldContinue()
shouldContinue
in class Goal
public void ignoreChanceOnce()
public void setChance(int chance)