Class PiglinIdleActivityTask<E extends MobEntity,T>
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<E>
-
- net.minecraft.entity.ai.brain.task.PiglinIdleActivityTask<E,T>
-
-
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 RangedInteger
durationOfCopy
private java.util.function.Predicate<E>
predicate
private MemoryModuleType<? extends T>
sourceMemory
private MemoryModuleType<T>
targetMemory
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description PiglinIdleActivityTask(java.util.function.Predicate<E> p_i231513_1_, MemoryModuleType<? extends T> p_i231513_2_, MemoryModuleType<T> p_i231513_3_, RangedInteger p_i231513_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
sourceMemory
private final MemoryModuleType<? extends T> sourceMemory
-
targetMemory
private final MemoryModuleType<T> targetMemory
-
durationOfCopy
private final RangedInteger durationOfCopy
-
-
Constructor Detail
-
PiglinIdleActivityTask
public PiglinIdleActivityTask(java.util.function.Predicate<E> p_i231513_1_, MemoryModuleType<? extends T> p_i231513_2_, MemoryModuleType<T> p_i231513_3_, RangedInteger p_i231513_4_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<E extends MobEntity>
-
-