Class AnimalMakeLove
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Animal>
net.minecraft.world.entity.ai.behavior.AnimalMakeLove
- All Implemented Interfaces:
BehaviorControl<Animal>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private final EntityType<? extends Animal>
private long
private final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_22416_, Animal p_22417_, long p_22418_) protected boolean
checkExtraStartConditions
(ServerLevel p_22401_, Animal p_22402_) findValidBreedPartner
(Animal p_22432_) private Animal
getBreedTarget
(Animal p_22410_) private boolean
hasBreedTargetOfRightType
(Animal p_22422_) protected void
start
(ServerLevel p_22404_, Animal p_22405_, long p_22406_) protected void
stop
(ServerLevel p_22438_, Animal p_22439_, long p_22440_) protected void
tick
(ServerLevel p_22428_, Animal p_22429_, long p_22430_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
BREED_RANGE
private static final int BREED_RANGE- See Also:
-
MIN_DURATION
private static final int MIN_DURATION- See Also:
-
MAX_DURATION
private static final int MAX_DURATION- See Also:
-
partnerType
-
speedModifier
private final float speedModifier -
spawnChildAtTime
private long spawnChildAtTime
-
-
Constructor Details
-
AnimalMakeLove
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Animal>
-
start
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Animal>
-
tick
-
stop
-
getBreedTarget
-
hasBreedTargetOfRightType
-
findValidBreedPartner
-