net.minecraft.world.entity.ai.behavior

public abstract class Behavior<E extends LivingEntity>

implements BehaviorControl<E>

bfu
net.minecraft.world.entity.ai.behavior.Behavior
net.minecraft.class_4097
net.minecraft.unmapped.C_wbtjxfbq
net.minecraft.entity.ai.brain.task.MultiTickTask
net.minecraft.entity.ai.brain.task.Task
net.minecraft.src.C_569_
net.minecraft.world.entity.ai.behavior.Behavior

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_DURATION
field_30112
f_nutokbfq
DEFAULT_RUN_TIME
DEFAULT_RUN_TIME
f_147431_
protected final Map<MemoryModuleType<?>, MemoryStatus>
b
entryCondition
field_19291
f_obmumrdg
requiredMemoryStates
requiredMemoryStates
f_22522_
private Behavior$Status
c
status
field_18333
f_tijqdxos
status
status
f_22523_
private long
d
endTimestamp
field_18334
f_rfkjmatw
endTime
endTime
f_22524_
private final int
e
minDuration
field_18335
f_kbnpijts
minRunTime
minRunTime
f_22525_
private final int
f
maxDuration
field_18336
f_slgvphcl
maxRunTime
maxRunTime
f_22526_

Constructor summary

ModifierConstructor
public (Map<MemoryModuleType<?>, MemoryStatus> requiredMemoryState)
public (Map<MemoryModuleType<?>, MemoryStatus> requiredMemoryState, int runTime)
public (Map<MemoryModuleType<?>, MemoryStatus> requiredMemoryState, int minRunTime, int maxRunTime)

Method summary

Modifier and TypeMethod
public Behavior$Status
a()
getStatus()
method_18921()
m_lzkdsoun()
getStatus()
getStatus()
m_22536_()
public final boolean
e(ahm arg0, E arg1, long arg2)
tryStart(ServerLevel arg0, E arg1, long arg2)
method_18922(class_3218 arg0, E arg1, long arg2)
m_vipkpuce(C_bdwnwhiu arg0, E arg1, long arg2)
tryStarting(ServerWorld arg0, E arg1, long arg2)
m_vipkpuce(ServerWorld arg0, E arg1, long arg2)
m_22554_(C_12_ p_22556_, E p_22557_, long arg2)
protected void
d(ahm arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
m_thxoqxcz(C_bdwnwhiu arg0, E arg1, long arg2)
run(ServerWorld world, E entity, long time)
run(ServerWorld world, E entity, long time)
m_6735_(C_12_ p_22541_, E p_22542_, long arg2)
public final void
f(ahm arg0, E arg1, long arg2)
tickOrStop(ServerLevel arg0, E arg1, long arg2)
method_18923(class_3218 arg0, E arg1, long arg2)
m_rsxmnjte(C_bdwnwhiu arg0, E arg1, long arg2)
tick(ServerWorld arg0, E arg1, long arg2)
m_rsxmnjte(ServerWorld arg0, E arg1, long arg2)
m_22558_(C_12_ p_22560_, E p_22561_, long arg2)
protected void
c(ahm arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_18924(class_3218 arg0, E arg1, long arg2)
m_jiotgmjk(C_bdwnwhiu arg0, E arg1, long arg2)
keepRunning(ServerWorld world, E entity, long time)
keepRunning(ServerWorld world, E entity, long time)
m_6725_(C_12_ p_22552_, E p_22553_, long arg2)
public final void
g(ahm arg0, E arg1, long arg2)
doStop(ServerLevel arg0, E arg1, long arg2)
method_18925(class_3218 arg0, E arg1, long arg2)
m_bmtrtesi(C_bdwnwhiu arg0, E arg1, long arg2)
stop(ServerWorld arg0, E arg1, long arg2)
stopTask(ServerWorld arg0, E arg1, long arg2)
m_22562_(C_12_ p_22564_, E p_22565_, long arg2)
protected void
b(ahm arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_18926(class_3218 arg0, E arg1, long arg2)
m_copsxmjv(C_bdwnwhiu arg0, E arg1, long arg2)
finishRunning(ServerWorld world, E entity, long time)
finishRunning(ServerWorld world, E entity, long time)
m_6732_(C_12_ p_22549_, E p_22550_, long arg2)
protected boolean
a(ahm arg0, E arg1, long arg2)
canStillUse(ServerLevel arg0, E arg1, long arg2)
method_18927(class_3218 arg0, E arg1, long arg2)
m_xvrvizlg(C_bdwnwhiu arg0, E arg1, long arg2)
shouldKeepRunning(ServerWorld world, E entity, long time)
shouldKeepRunning(ServerWorld world, E entity, long time)
m_6737_(C_12_ p_22546_, E p_22547_, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
m_eghfkoeo(long arg0)
isTimeLimitExceeded(long time)
isTimeLimitExceeded(long time)
m_7773_(long arg0)
protected boolean
a(ahm arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
m_pwowjghk(C_bdwnwhiu arg0, E arg1)
shouldRun(ServerWorld world, E entity)
shouldRun(ServerWorld world, E entity)
m_6114_(C_12_ p_22539_, E arg1)
public String
b()
debugString()
method_46910()
m_miheqwub()
getName()
getSimpleName()
m_22566_()
protected boolean
a(E arg0)
hasRequiredMemories(E arg0)
method_19546(E arg0)
m_tzzxzprb(E arg0)
hasRequiredMemoryState(E entity)
hasRequiredMemoryState(E entity)
m_22543_(E arg0)