Class CreateBabyVillagerTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.CreateBabyVillagerTask
-
public class CreateBabyVillagerTask extends Task<VillagerEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private long
birthTimestamp
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description CreateBabyVillagerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Optional<VillagerEntity>
breed(ServerWorld p_242307_1_, VillagerEntity p_242307_2_, VillagerEntity p_242307_3_)
private boolean
canReach(VillagerEntity p_223520_1_, BlockPos p_223520_2_)
protected boolean
canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
private void
giveBedToChild(ServerWorld p_220477_1_, VillagerEntity p_220477_2_, BlockPos p_220477_3_)
private boolean
isBreedingPossible(VillagerEntity p_220478_1_)
protected void
start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
protected void
stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
private java.util.Optional<BlockPos>
takeVacantBed(ServerWorld p_220479_1_, VillagerEntity p_220479_2_)
protected void
tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
private void
tryToGiveBirth(ServerWorld p_223521_1_, VillagerEntity p_223521_2_, VillagerEntity p_223521_3_)
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, VillagerEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUse
in classTask<VillagerEntity>
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<VillagerEntity>
-
tick
protected void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tick
in classTask<VillagerEntity>
-
tryToGiveBirth
private void tryToGiveBirth(ServerWorld p_223521_1_, VillagerEntity p_223521_2_, VillagerEntity p_223521_3_)
-
stop
protected void stop(ServerWorld p_212835_1_, VillagerEntity p_212835_2_, long p_212835_3_)
- Overrides:
stop
in classTask<VillagerEntity>
-
isBreedingPossible
private boolean isBreedingPossible(VillagerEntity p_220478_1_)
-
takeVacantBed
private java.util.Optional<BlockPos> takeVacantBed(ServerWorld p_220479_1_, VillagerEntity p_220479_2_)
-
canReach
private boolean canReach(VillagerEntity p_223520_1_, BlockPos p_223520_2_)
-
breed
private java.util.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_)
-
-