static class TurtleEntity.PlayerTemptGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
private int |
cooldown |
private static EntityPredicate |
field_220834_a |
private double |
speed |
private PlayerEntity |
tempter |
private java.util.Set<Item> |
temptItems |
private TurtleEntity |
turtle |
| Constructor and Description |
|---|
PlayerTemptGoal(TurtleEntity turtle,
double speedIn,
Item temptItem) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isTemptedBy(ItemStack p_203131_1_) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, startExecuting, toStringprivate static final EntityPredicate field_220834_a
private final TurtleEntity turtle
private final double speed
private PlayerEntity tempter
private int cooldown
private final java.util.Set<Item> temptItems
PlayerTemptGoal(TurtleEntity turtle, double speedIn, Item temptItem)
public boolean shouldExecute()
shouldExecute in class Goalprivate boolean isTemptedBy(ItemStack p_203131_1_)
public boolean shouldContinueExecuting()
shouldContinueExecuting in class Goal