Modifier and Type | Field and Description |
---|---|
private CatEntity |
cat |
private PlayerEntity |
temptingPlayer |
closestPlayer, creature
Constructor and Description |
---|
TemptGoal(CatEntity catIn,
double speedIn,
Ingredient temptItemsIn,
boolean scaredByPlayerMovementIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isScaredByPlayerMovement() |
boolean |
shouldExecute() |
void |
tick() |
isRunning, isTempting, resetTask, shouldContinueExecuting, startExecuting
getMutexFlags, isPreemptible, setMutexFlags, toString
@Nullable private PlayerEntity temptingPlayer
private final CatEntity cat
public TemptGoal(CatEntity catIn, double speedIn, Ingredient temptItemsIn, boolean scaredByPlayerMovementIn)
protected boolean isScaredByPlayerMovement()
isScaredByPlayerMovement
in class TemptGoal
public boolean shouldExecute()
shouldExecute
in class TemptGoal