net.minecraft.world.entity.ai.behavior

public class CopyMemoryWithExpiry<E extends Mob, T>

extends Behavior<E>

arz
net.minecraft.world.entity.ai.behavior.CopyMemoryWithExpiry
net.minecraft.class_4809
net.minecraft.entity.ai.brain.task.MemoryTransferTask
net.minecraft.entity.ai.brain.task.PiglinIdleActivityTask
net.minecraft.server.v1_16_R3.BehaviorExpirableMemory

Field summary

Modifier and TypeField
private final Predicate<E>
b
predicate
field_22288
runPredicate
field_233881_b_
private final MemoryModuleType<? extends T>
c
sourceMemory
field_22289
sourceType
field_233882_c_
private final MemoryModuleType<T>
d
targetMemory
field_22290
targetType
field_233883_d_
private final IntRange
e
durationOfCopy
field_22291
duration
field_233884_e_

Constructor summary

ModifierConstructor
public (Predicate<E> runPredicate, MemoryModuleType<? extends T> arg1, MemoryModuleType<T> arg2, IntRange duration)

Method summary

Modifier and TypeMethod
protected boolean
a(aag arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_24566(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
func_212832_a_(ServerWorld arg0, E arg1)
protected void
a(aag 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)
func_212831_a_(ServerWorld arg0, E arg1, long arg2)