public class BreedGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected AnimalEntity |
animal |
private static EntityPredicate |
field_220689_d |
private java.lang.Class<? extends AnimalEntity> |
mateClass |
private double |
moveSpeed |
private int |
spawnBabyDelay |
protected AnimalEntity |
targetMate |
protected World |
world |
Constructor and Description |
---|
BreedGoal(AnimalEntity animal,
double speedIn) |
BreedGoal(AnimalEntity p_i47306_1_,
double p_i47306_2_,
java.lang.Class<? extends AnimalEntity> p_i47306_4_) |
Modifier and Type | Method and Description |
---|---|
private AnimalEntity |
getNearbyMate() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
protected void |
spawnBaby() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, startExecuting, toString
private static final EntityPredicate field_220689_d
protected final AnimalEntity animal
private final java.lang.Class<? extends AnimalEntity> mateClass
protected final World world
protected AnimalEntity targetMate
private int spawnBabyDelay
private final double moveSpeed
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
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
@Nullable private AnimalEntity getNearbyMate()
protected void spawnBaby()