net.minecraft.world.entity.ai.behavior

public abstract class Behavior<E extends LivingEntity>

aly
net.minecraft.world.entity.ai.behavior.Behavior
net.minecraft.class_4097
net.minecraft.entity.ai.brain.task.Task
net.minecraft.entity.ai.brain.task.Task
net.minecraft.server.v1_15_R1.Behavior

Field summary

Modifier and TypeField
private final Map<MemoryModuleType<?>, MemoryStatus>
a
entryCondition
field_19291
requiredMemoryState
field_223010_a
private Behavior$Status
b
status
field_18333
status
field_220384_a
private long
c
endTimestamp
field_18334
endTime
field_220385_b
private final int
d
minDuration
field_18335
minRunTime
field_220386_c
private final int
e
maxDuration
field_18336
maxRunTime
field_220387_d

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()
func_220376_b()
public final boolean
b(xd arg0, E arg1, long arg2)
tryStart(ServerLevel arg0, E arg1, long arg2)
method_18922(class_3218 arg0, E arg1, long arg2)
tryStarting(ServerWorld world, E entity, long time)
func_220378_b(ServerWorld arg0, E arg1, long arg2)
protected void
a(xd 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)
func_212831_a_(ServerWorld arg0, E arg1, long arg2)
public final void
c(xd 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 time)
func_220377_c(ServerWorld arg0, E arg1, long arg2)
protected void
d(xd 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)
func_212833_d_(ServerWorld arg0, E arg1, long arg2)
public final void
e(xd arg0, E arg1, long arg2)
doStop(ServerLevel arg0, E arg1, long arg2)
method_18925(class_3218 arg0, E arg1, long arg2)
stop(ServerWorld world, E entity, long time)
func_220380_e(ServerWorld arg0, E arg1, long arg2)
protected void
f(xd 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 time)
func_212835_f_(ServerWorld arg0, E arg1, long arg2)
protected boolean
g(xd 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)
func_212834_g_(ServerWorld arg0, E arg1, long arg2)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long time)
func_220383_a(long arg0)
protected boolean
a(xd arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld world, E entity)
func_212832_a_(ServerWorld arg0, E arg1)
private boolean
a(E arg0)
hasRequiredMemories(E arg0)
method_19546(E arg0)
hasRequiredMemoryState(E entity)
func_220382_a(E arg0)