public class RandomWalkingGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected CreatureEntity |
creature |
protected int |
executionChance |
protected boolean |
mustUpdate |
protected double |
speed |
protected double |
x |
protected double |
y |
protected double |
z |
Constructor and Description |
---|
RandomWalkingGoal(CreatureEntity creatureIn,
double speedIn) |
RandomWalkingGoal(CreatureEntity creatureIn,
double speedIn,
int chance) |
Modifier and Type | Method and Description |
---|---|
protected Vec3d |
getPosition() |
void |
makeUpdate() |
void |
resetTask() |
void |
setExecutionChance(int newchance) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
protected final CreatureEntity creature
protected double x
protected double y
protected double z
protected final double speed
protected int executionChance
protected boolean mustUpdate
public RandomWalkingGoal(CreatureEntity creatureIn, double speedIn)
public RandomWalkingGoal(CreatureEntity creatureIn, double speedIn, int chance)
public boolean shouldExecute()
shouldExecute
in class Goal
@Nullable protected Vec3d getPosition()
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal
public void makeUpdate()
public void setExecutionChance(int newchance)