static class SilverfishEntity.WanderAndInfestGoal extends WanderAroundGoal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private boolean |
canInfest |
private Direction |
direction |
chance, ignoringChance, mob, speed, targetX, targetY, targetZ| Constructor and Description |
|---|
WanderAndInfestGoal(SilverfishEntity silverfish) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
getWanderTarget, ignoreChanceOnce, setChance, stopcanStop, getControls, setControls, tick, toStringprivate Direction direction
private boolean canInfest
public WanderAndInfestGoal(SilverfishEntity silverfish)
public boolean canStart()
canStart in class WanderAroundGoalpublic boolean shouldContinue()
shouldContinue in class WanderAroundGoalpublic void start()
start in class WanderAroundGoal