public class TemptGoal extends Goal
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected PlayerEntity |
closestPlayer |
protected CreatureEntity |
creature |
| コンストラクタと説明 |
|---|
TemptGoal(CreatureEntity creatureIn,
double speedIn,
boolean p_i47823_4_,
Ingredient temptItemsIn) |
TemptGoal(CreatureEntity creatureIn,
double speedIn,
Ingredient temptItemsIn,
boolean p_i47822_5_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
isRunning() |
protected boolean |
isScaredByPlayerMovement() |
protected boolean |
isTempting(ItemStack stack) |
void |
resetTask()
Reset the task's internal state.
|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
getMutexFlags, isPreemptible, setMutexFlags, toStringprotected 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 クラス内 Goalprotected boolean isTempting(ItemStack stack)
public boolean shouldContinueExecuting()
shouldContinueExecuting クラス内 Goalprotected boolean isScaredByPlayerMovement()
public void startExecuting()
startExecuting クラス内 Goalpublic void resetTask()
public void tick()
public boolean isRunning()
isRunning