net.minecraft.world.entity.ai.behavior

public class RunIf<E extends LivingEntity>

extends Behavior<E>

beo
net.minecraft.world.entity.ai.behavior.RunIf
net.minecraft.class_4820
net.minecraft.entity.ai.brain.task.ConditionalTask
net.minecraft.src.C_618_
net.minecraft.world.entity.ai.behavior.BehaviorRunIf

Field summary

Modifier and TypeField
private final Predicate<E>
a
predicate
field_22313
condition
f_23795_
private final Behavior<? super E>
d
wrappedBehavior
field_22314
delegate
f_23796_
private final boolean
e
checkWhileRunningAlso
field_22315
allowsContinuation
f_23797_

Constructor summary

ModifierConstructor
public (Map<MemoryModuleType<?>, MemoryStatus> requiredMemoryStates, Predicate<E> condition, Behavior<? super E> delegate, boolean allowsContinuation)
public (Predicate<E> condition, Behavior<? super E> delegate, boolean allowsContinuation)
public (Predicate<E> condition, Behavior<? super E> delegate)
public (Map<MemoryModuleType<?>, MemoryStatus> memory, Behavior<? super E> delegate)

Method summary

Modifier and TypeMethod
private static Map<MemoryModuleType<?>, MemoryStatus>
a(Map<bjx<?>, bjy> arg0, Map<bjx<?>, bjy> arg1)
mergeMaps(Map<MemoryModuleType<?>, MemoryStatus> arg0, Map<MemoryModuleType<?>, MemoryStatus> arg1)
method_24597(Map<class_4140<?>, class_4141> arg0, Map<class_4140<?>, class_4141> arg1)
merge(Map<MemoryModuleType<?>, MemoryModuleState> first, Map<MemoryModuleType<?>, MemoryModuleState> second)
m_23815_(Map<C_753_<?>, C_754_> p_23816_, Map<C_753_<?>, C_754_> p_23817_)
protected boolean
a(afo arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_23810_, E arg1)
protected boolean
b(afo arg0, E arg1, long arg2)
canStillUse(ServerLevel arg0, E arg1, long arg2)
method_18927(class_3218 arg0, E arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, E arg1, long arg2)
m_6737_(C_12_ p_23820_, E p_23821_, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
m_7773_(long arg0)
protected void
a(afo arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_23813_, E p_23814_, long arg2)
protected void
d(afo arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_18924(class_3218 arg0, E arg1, long arg2)
keepRunning(ServerWorld arg0, E arg1, long arg2)
m_6725_(C_12_ p_23828_, E p_23829_, long arg2)
protected void
c(afo arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_18926(class_3218 arg0, E arg1, long arg2)
finishRunning(ServerWorld arg0, E arg1, long arg2)
m_6732_(C_12_ p_23824_, E p_23825_, long arg2)