public class EntityAIMate extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private EntityAnimal |
animal |
private java.lang.Class<? extends EntityAnimal> |
mateClass |
(package private) double |
moveSpeed |
(package private) int |
spawnBabyDelay |
private EntityAnimal |
targetMate |
(package private) World |
world |
Constructor and Description |
---|
EntityAIMate(EntityAnimal animal,
double speedIn) |
EntityAIMate(EntityAnimal p_i47306_1_,
double p_i47306_2_,
java.lang.Class<? extends EntityAnimal> p_i47306_4_) |
Modifier and Type | Method and Description |
---|---|
private EntityAnimal |
getNearbyMate() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
private void |
spawnBaby() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits, startExecuting
private final EntityAnimal animal
private final java.lang.Class<? extends EntityAnimal> mateClass
World world
private EntityAnimal targetMate
int spawnBabyDelay
double moveSpeed
public EntityAIMate(EntityAnimal animal, double speedIn)
public EntityAIMate(EntityAnimal p_i47306_1_, double p_i47306_2_, java.lang.Class<? extends EntityAnimal> p_i47306_4_)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
private EntityAnimal getNearbyMate()
private void spawnBaby()