net.minecraft.world.entity.ai.behavior

public class CopyMemoryWithExpiry<E extends Mob, T>

extends Behavior<E>

avk
net.minecraft.world.entity.ai.behavior.CopyMemoryWithExpiry
net.minecraft.class_4809
net.minecraft.entity.ai.brain.task.MemoryTransferTask
net.minecraft.src.C_574_
net.minecraft.world.entity.ai.behavior.BehaviorExpirableMemory

Field summary

Modifier and TypeField
private final Predicate<E>
a
predicate
field_22288
runPredicate
f_22719_
private final MemoryModuleType<? extends T>
c
sourceMemory
field_22289
sourceType
f_22720_
private final MemoryModuleType<T>
d
targetMemory
field_22290
targetType
f_22721_
private final UniformInt
e
durationOfCopy
field_22291
duration
f_22722_

Constructor summary

ModifierConstructor
public (Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformInt duration)

Method summary

Modifier and TypeMethod
protected boolean
a(abr arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_24566(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_22737_, E arg1)
protected void
a(abr arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_24567(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_22740_, E p_22741_, long arg2)