public class RandomWalkingGoal extends Goal
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected CreatureEntity |
creature |
protected int |
executionChance |
protected boolean |
mustUpdate |
protected double |
speed |
protected double |
x |
protected double |
y |
protected double |
z |
| コンストラクタと説明 |
|---|
RandomWalkingGoal(CreatureEntity creatureIn,
double speedIn) |
RandomWalkingGoal(CreatureEntity creatureIn,
double speedIn,
int chance) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Vec3d |
getPosition() |
void |
makeUpdate()
Makes task to bypass chance
|
void |
resetTask()
Reset the task's internal state.
|
void |
setExecutionChance(int newchance)
Changes task random possibility for execution
|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
getMutexFlags, isPreemptible, setMutexFlags, tick, toStringprotected 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 クラス内 Goal@Nullable protected Vec3d getPosition()
public boolean shouldContinueExecuting()
shouldContinueExecuting クラス内 Goalpublic void startExecuting()
startExecuting クラス内 Goalpublic void resetTask()
public void makeUpdate()
public void setExecutionChance(int newchance)