Class BreedGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.BreedGoal
- Direct Known Subclasses:
Fox.FoxBreedGoal
,Panda.PandaBreedGoal
,Turtle.TurtleBreedGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Animal
protected final Level
private int
protected Animal
private static final TargetingConditions
private final double
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, toString
-
Field Details
-
PARTNER_TARGETING
-
animal
-
partnerClass
-
level
-
partner
-
loveTime
private int loveTime -
speedModifier
private final double speedModifier
-
-
Constructor Details
-
BreedGoal
-
BreedGoal
-
-
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()
-