net.minecraft.world.entity.ai.behavior

public abstract class Behavior<E extends LivingEntity>

implements BehaviorControl<E>

bxz
net.minecraft.world.entity.ai.behavior.Behavior
net.minecraft.class_4097
net.minecraft.entity.ai.brain.task.MultiTickTask
net.minecraft.world.entity.ai.behavior.Behavior

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_DURATION
field_30112
DEFAULT_RUN_TIME
protected final Map<MemoryModuleType<?>, MemoryStatus>
b
entryCondition
field_19291
requiredMemoryStates
private Behavior$Status
c
status
field_18333
status
private long
d
endTimestamp
field_18334
endTime
private final int
e
minDuration
field_18335
minRunTime
private final int
f
maxDuration
field_18336
maxRunTime

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()
public final boolean
e(ash 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)
protected void
d(ash 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)
public final void
f(ash 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)
protected void
c(ash 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)
public final void
g(ash 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)
protected void
b(ash 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)
protected boolean
a(ash 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)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long time)
protected boolean
a(ash arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld world, E entity)
public String
b()
debugString()
method_46910()
getName()
protected boolean
a(E arg0)
hasRequiredMemories(E arg0)
method_19546(E arg0)
hasRequiredMemoryState(E entity)