public class BegGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
field_220688_f |
private float |
minPlayerDistance |
private PlayerEntity |
player |
private int |
timeoutCounter |
private WolfEntity |
wolf |
private World |
world |
Constructor and Description |
---|
BegGoal(WolfEntity wolf,
float minDistance) |
Modifier and Type | Method and Description |
---|---|
private boolean |
hasTemptationItemInHand(PlayerEntity player) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toString
private final WolfEntity wolf
private PlayerEntity player
private final World world
private final float minPlayerDistance
private int timeoutCounter
private final EntityPredicate field_220688_f
public BegGoal(WolfEntity wolf, float minDistance)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal
private boolean hasTemptationItemInHand(PlayerEntity player)