Class BoneMealCropsTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.BoneMealCropsTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private long
private int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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_) pickNextTarget
(ServerWorld p_233997_1_, VillagerEntity p_233997_2_) private void
setCurrentCropAsTarget
(VillagerEntity p_233994_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_) protected void
tick
(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_) private boolean
validPos
(BlockPos p_233996_1_, ServerWorld p_233996_2_)
-
Field Details
-
nextWorkCycleTime
private long nextWorkCycleTime -
lastBonemealingSession
private long lastBonemealingSession -
timeWorkedSoFar
private int timeWorkedSoFar -
cropPos
-
-
Constructor Details
-
BoneMealCropsTask
public BoneMealCropsTask()
-
-
Method Details
-
checkExtraStartConditions
- 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>
-
pickNextTarget
-
validPos
-
start
- Overrides:
start
in classTask<VillagerEntity>
-
setCurrentCropAsTarget
-
stop
- Overrides:
stop
in classTask<VillagerEntity>
-
tick
- Overrides:
tick
in classTask<VillagerEntity>
-