public class WolfBegGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private float |
begDistance |
private PlayerEntity |
begFrom |
private int |
timer |
private TargetPredicate |
validPlayerPredicate |
private WolfEntity |
wolf |
private World |
world |
| Constructor and Description |
|---|
WolfBegGoal(WolfEntity wolf,
float begDistance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
private boolean |
isAttractive(PlayerEntity player) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toStringprivate final WolfEntity wolf
private PlayerEntity begFrom
private final World world
private final float begDistance
private int timer
private final TargetPredicate validPlayerPredicate
public WolfBegGoal(WolfEntity wolf, float begDistance)
public boolean shouldContinue()
shouldContinue in class Goalprivate boolean isAttractive(PlayerEntity player)