public class EntityAIWander extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
protected EntityCreature |
entity |
protected int |
executionChance |
protected boolean |
mustUpdate |
protected double |
speed |
protected double |
x |
protected double |
y |
protected double |
z |
| Constructor and Description |
|---|
EntityAIWander(EntityCreature creatureIn,
double speedIn) |
EntityAIWander(EntityCreature creatureIn,
double speedIn,
int chance) |
| Modifier and Type | Method and Description |
|---|---|
protected Vec3d |
getPosition() |
void |
makeUpdate() |
void |
setExecutionChance(int newchance) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, resetTask, setMutexBits, updateTaskprotected final EntityCreature entity
protected double x
protected double y
protected double z
protected final double speed
protected int executionChance
protected boolean mustUpdate
public EntityAIWander(EntityCreature creatureIn, double speedIn)
public EntityAIWander(EntityCreature creatureIn, double speedIn, int chance)
public boolean shouldExecute()
shouldExecute in class EntityAIBaseprotected Vec3d getPosition()
public boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void makeUpdate()
public void setExecutionChance(int newchance)