public class TemptGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
protected PlayerEntity |
closestPlayer |
protected CreatureEntity |
creature |
| Constructor and Description |
|---|
TemptGoal(CreatureEntity creatureIn,
double speedIn,
boolean p_i47823_4_,
Ingredient temptItemsIn) |
TemptGoal(CreatureEntity creatureIn,
double speedIn,
Ingredient temptItemsIn,
boolean p_i47822_5_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
protected boolean |
isScaredByPlayerMovement() |
protected boolean |
isTempting(ItemStack stack) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlagsprotected final CreatureEntity creature
protected PlayerEntity closestPlayer
public TemptGoal(CreatureEntity creatureIn, double speedIn, Ingredient temptItemsIn, boolean p_i47822_5_)
public TemptGoal(CreatureEntity creatureIn, double speedIn, boolean p_i47823_4_, Ingredient temptItemsIn)
public boolean shouldExecute()
shouldExecute in class Goalprotected boolean isTempting(ItemStack stack)
public boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalprotected boolean isScaredByPlayerMovement()
public void startExecuting()
startExecuting in class Goalpublic boolean isRunning()