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, stop
canStop, getControls, setControls, tick, toString
private Direction direction
private boolean canInfest
public WanderAndInfestGoal(SilverfishEntity silverfish)
public boolean canStart()
canStart
in class WanderAroundGoal
public boolean shouldContinue()
shouldContinue
in class WanderAroundGoal
public void start()
start
in class WanderAroundGoal