public class BreedGoal extends Goal
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected AnimalEntity |
animal |
protected AnimalEntity |
targetMate |
protected World |
world |
| コンストラクタと説明 |
|---|
BreedGoal(AnimalEntity animal,
double speedIn) |
BreedGoal(AnimalEntity p_i47306_1_,
double p_i47306_2_,
java.lang.Class<? extends AnimalEntity> p_i47306_4_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
protected void |
spawnBaby()
Spawns a baby animal of the same type.
|
void |
tick()
Keep ticking a continuous task that has already been started
|
getMutexFlags, isPreemptible, setMutexFlags, startExecuting, toStringprotected final AnimalEntity animal
protected final World world
protected AnimalEntity targetMate
public BreedGoal(AnimalEntity animal, double speedIn)
public BreedGoal(AnimalEntity p_i47306_1_, double p_i47306_2_, java.lang.Class<? extends AnimalEntity> p_i47306_4_)
public boolean shouldExecute()
shouldExecute クラス内 Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting クラス内 Goalpublic void resetTask()
public void tick()
protected void spawnBaby()