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
FieldsModifier and TypeFieldDescriptionprotected final Animalprotected final ServerLevelprivate intprotected @Nullable Animalprivate static final TargetingConditionsprivate final double -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, 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
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
stop
-
tick
-
getFreePartner
-
breed
protected void breed()
-