Class StopReachingItemTask<E extends PiglinEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.monster.piglin.StopReachingItemTask<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, E p_212832_2_) protected void
start
(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
maxTimeToReachItem
private final int maxTimeToReachItem -
disableTime
private final int disableTime
-
-
Constructor Details
-
StopReachingItemTask
public StopReachingItemTask(int p_i241918_1_, int p_i241918_2_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<E extends PiglinEntity>
-
start
- Overrides:
start
in classTask<E extends PiglinEntity>
-