Class CreateBabyVillagerTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.CreateBabyVillagerTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Optional<VillagerEntity>breed(ServerWorld p_242307_1_, VillagerEntity p_242307_2_, VillagerEntity p_242307_3_) private booleancanReach(VillagerEntity p_223520_1_, BlockPos p_223520_2_) protected booleancanStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_) protected booleancheckExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_) private voidgiveBedToChild(ServerWorld p_220477_1_, VillagerEntity p_220477_2_, BlockPos p_220477_3_) private booleanisBreedingPossible(VillagerEntity p_220478_1_) protected voidstart(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) protected voidstop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_) takeVacantBed(ServerWorld p_220479_1_, VillagerEntity p_220479_2_) protected voidtick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_) private voidtryToGiveBirth(ServerWorld p_223521_1_, VillagerEntity p_223521_2_, VillagerEntity p_223521_3_)
-
Field Details
-
birthTimestamp
private long birthTimestamp
-
-
Constructor Details
-
CreateBabyVillagerTask
public CreateBabyVillagerTask()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classTask<VillagerEntity>
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_) - Overrides:
canStillUsein classTask<VillagerEntity>
-
start
- Overrides:
startin classTask<VillagerEntity>
-
tick
- Overrides:
tickin classTask<VillagerEntity>
-
tryToGiveBirth
private void tryToGiveBirth(ServerWorld p_223521_1_, VillagerEntity p_223521_2_, VillagerEntity p_223521_3_) -
stop
- Overrides:
stopin classTask<VillagerEntity>
-
isBreedingPossible
-
takeVacantBed
-
canReach
-
breed
private Optional<VillagerEntity> breed(ServerWorld p_242307_1_, VillagerEntity p_242307_2_, VillagerEntity p_242307_3_) -
giveBedToChild
private void giveBedToChild(ServerWorld p_220477_1_, VillagerEntity p_220477_2_, BlockPos p_220477_3_)
-