net.minecraft.world.entity.ai.behavior

public abstract class Behavior<E extends LivingEntity>

implements BehaviorControl<E>

bhp
net.minecraft.world.entity.ai.behavior.Behavior
net.minecraft.class_4097
net.minecraft.entity.ai.brain.task.MultiTickTask
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
DEFAULT_RUN_TIME
f_147431_
protected final Map<MemoryModuleType<?>, MemoryStatus>
b
entryCondition
field_19291
requiredMemoryStates
f_22522_
private Behavior$Status
c
status
field_18333
status
f_22523_
private long
d
endTimestamp
field_18334
endTime
f_22524_
private final int
e
minDuration
field_18335
minRunTime
f_22525_
private final int
f
maxDuration
field_18336
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()
getStatus()
m_22536_()
public final boolean
e(aip arg0, E arg1, long arg2)
tryStart(ServerLevel arg0, E arg1, long arg2)
method_18922(class_3218 arg0, E arg1, long arg2)
tryStarting(ServerWorld arg0, E arg1, long arg2)
m_22554_(C_12_ p_22556_, E p_22557_, long arg2)
protected void
d(aip arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
run(ServerWorld world, E entity, long time)
m_6735_(C_12_ p_22541_, E p_22542_, long arg2)
public final void
f(aip arg0, E arg1, long arg2)
tickOrStop(ServerLevel arg0, E arg1, long arg2)
method_18923(class_3218 arg0, E arg1, long arg2)
tick(ServerWorld arg0, E arg1, long arg2)
m_22558_(C_12_ p_22560_, E p_22561_, long arg2)
protected void
c(aip arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_18924(class_3218 arg0, E arg1, long arg2)
keepRunning(ServerWorld world, E entity, long time)
m_6725_(C_12_ p_22552_, E p_22553_, long arg2)
public final void
g(aip arg0, E arg1, long arg2)
doStop(ServerLevel arg0, E arg1, long arg2)
method_18925(class_3218 arg0, E arg1, long arg2)
stop(ServerWorld arg0, E arg1, long arg2)
m_22562_(C_12_ p_22564_, E p_22565_, long arg2)
protected void
b(aip arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_18926(class_3218 arg0, E arg1, long arg2)
finishRunning(ServerWorld world, E entity, long time)
m_6732_(C_12_ p_22549_, E p_22550_, long arg2)
protected boolean
a(aip arg0, E arg1, long arg2)
canStillUse(ServerLevel arg0, E arg1, long arg2)
method_18927(class_3218 arg0, E arg1, long arg2)
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)
isTimeLimitExceeded(long time)
m_7773_(long arg0)
protected boolean
a(aip arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld world, E entity)
m_6114_(C_12_ p_22539_, E arg1)
public String
b()
debugString()
method_46910()
getName()
m_22566_()
protected boolean
a(E arg0)
hasRequiredMemories(E arg0)
method_19546(E arg0)
hasRequiredMemoryState(E entity)
m_22543_(E arg0)