Package net.minecraft.entity.ai.goal
Class BreedGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.BreedGoal
- Direct Known Subclasses:
FoxEntity.MateGoal
,PandaEntity.MateGoal
,TurtleEntity.MateGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnimalEntity
protected final World
private int
protected AnimalEntity
private static final EntityPredicate
private final Class<? extends AnimalEntity>
private final double
-
Constructor Summary
ConstructorDescriptionBreedGoal
(AnimalEntity p_i1619_1_, double p_i1619_2_) BreedGoal
(AnimalEntity p_i47306_1_, double p_i47306_2_, Class<? extends AnimalEntity> p_i47306_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
breed()
boolean
boolean
canUse()
private AnimalEntity
void
stop()
void
tick()
-
Field Details
-
PARTNER_TARGETING
-
animal
-
partnerClass
-
level
-
partner
-
loveTime
private int loveTime -
speedModifier
private final double speedModifier
-
-
Constructor Details
-
BreedGoal
-
BreedGoal
public BreedGoal(AnimalEntity p_i47306_1_, double p_i47306_2_, Class<? extends AnimalEntity> p_i47306_4_)
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
stop
public void stop() -
tick
public void tick() -
getFreePartner
-
breed
protected void breed()
-