Class AnimalMakeLove
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Animal>
net.minecraft.world.entity.ai.behavior.AnimalMakeLove
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private static int
private EntityType<? extends Animal>
private long
private float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
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_)
-
Field Details
-
BREED_RANGE
private static final int BREED_RANGE- See Also:
- Constant Field Values
-
MIN_DURATION
private static final int MIN_DURATION- See Also:
- Constant Field Values
-
MAX_DURATION
private static final int MAX_DURATION- See Also:
- Constant Field Values
-
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
-