net.minecraft.world.entity.ai.behavior

public class RunSometimes<E extends LivingEntity>

extends Behavior<E>

bao
net.minecraft.world.entity.ai.behavior.RunSometimes
net.minecraft.class_4821
net.minecraft.entity.ai.brain.task.TimeLimitedTask
net.minecraft.src.C_620_
net.minecraft.world.entity.ai.behavior.BehaviorRunSometimes

Field summary

Modifier and TypeField
private boolean
a
resetTicks
field_22316
needsTimeReset
f_23836_
private boolean
c
wasRunning
field_22317
delegateRunning
f_23837_
private final UniformInt
d
interval
field_22318
timeRange
f_23838_
private final Behavior<? super E>
e
wrappedBehavior
field_22319
delegate
f_23839_
private int
f
ticksUntilNextStart
field_22320
timeLeft
f_23840_

Constructor summary

ModifierConstructor
public (Behavior<? super E> delegate, UniformInt timeRange)
public (Behavior<? super E> delegate, boolean skipFirstRun, UniformInt timeRange)

Method summary

Modifier and TypeMethod
protected boolean
a(adi 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_23854_, E arg1)
protected void
a(adi 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_23857_, E p_23858_, long arg2)
protected boolean
b(adi 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_23861_, E p_23862_, long arg2)
protected void
d(adi 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_23869_, E p_23870_, long arg2)
protected void
c(adi 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_23865_, E p_23866_, long arg2)
private void
a(adi arg0)
resetTicksUntilNextStart(ServerLevel arg0)
method_24598(class_3218 arg0)
resetTimeLeft(ServerWorld world)
m_23850_(C_12_ arg0)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
m_7773_(long arg0)