net.minecraft.world.entity.ai.behavior

public class RunIf<E extends LivingEntity>

extends Behavior<E>

ath
net.minecraft.world.entity.ai.behavior.RunIf
net.minecraft.class_4820
net.minecraft.entity.ai.brain.task.ConditionalTask
net.minecraft.entity.ai.brain.task.SupplementedTask
net.minecraft.server.v1_16_R3.BehaviorRunIf

Field summary

Modifier and TypeField
private final Predicate<E>
b
predicate
field_22313
condition
field_233940_b_
private final Behavior<? super E>
c
wrappedBehavior
field_22314
delegate
field_233941_c_
private final boolean
d
checkWhileRunningAlso
field_22315
allowsContinuation
field_233942_d_

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)

Method summary

Modifier and TypeMethod
private static Map<MemoryModuleType<?>, MemoryStatus>
a(Map<ayd<?>, aye> arg0, Map<ayd<?>, aye> 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)
func_233943_a_(Map<MemoryModuleType<?>, MemoryModuleStatus> arg0, Map<MemoryModuleType<?>, MemoryModuleStatus> arg1)
protected boolean
a(aag arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
func_212832_a_(ServerWorld arg0, E arg1)
protected boolean
b(aag 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)
func_212834_g_(ServerWorld arg0, E arg1, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
func_220383_a(long arg0)
protected void
a(aag 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)
func_212831_a_(ServerWorld arg0, E arg1, long arg2)
protected void
d(aag 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)
func_212833_d_(ServerWorld arg0, E arg1, long arg2)
protected void
c(aag 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)
func_212835_f_(ServerWorld arg0, E arg1, long arg2)