Class AnimalBreedTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<AnimalEntity>
net.minecraft.entity.ai.brain.task.AnimalBreedTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityType<? extends AnimalEntity>
private long
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionAnimalBreedTask
(EntityType<? extends AnimalEntity> p_i231506_1_, float p_i231506_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, AnimalEntity p_212834_2_, long p_212834_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, AnimalEntity p_212832_2_) private Optional<? extends AnimalEntity>
findValidBreedPartner
(AnimalEntity p_233849_1_) private AnimalEntity
getBreedTarget
(AnimalEntity p_233846_1_) private boolean
hasBreedTargetOfRightType
(AnimalEntity p_233848_1_) protected void
start
(ServerWorld p_212831_1_, AnimalEntity p_212831_2_, long p_212831_3_) protected void
stop
(ServerWorld p_212835_1_, AnimalEntity p_212835_2_, long p_212835_3_) protected void
tick
(ServerWorld p_212833_1_, AnimalEntity p_212833_2_, long p_212833_3_)
-
Field Details
-
partnerType
-
speedModifier
private final float speedModifier -
spawnChildAtTime
private long spawnChildAtTime
-
-
Constructor Details
-
AnimalBreedTask
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<AnimalEntity>
-
start
- Overrides:
start
in classTask<AnimalEntity>
-
canStillUse
- Overrides:
canStillUse
in classTask<AnimalEntity>
-
tick
- Overrides:
tick
in classTask<AnimalEntity>
-
stop
- Overrides:
stop
in classTask<AnimalEntity>
-
getBreedTarget
-
hasBreedTargetOfRightType
-
findValidBreedPartner
-