net.minecraft.world.entity.ai

public class Brain<E extends LivingEntity>

implements Serializable

ajm
net.minecraft.world.entity.ai.Brain
net.minecraft.class_4095
net.minecraft.entity.ai.brain.Brain
net.minecraft.entity.ai.brain.Brain
net.minecraft.server.v1_14_R1.BehaviorController

Field summary

Modifier and TypeField
private final Map<MemoryModuleType<?>, Optional<?>>
a
memories
field_18322
memories
field_218230_a
memories
private final Map<SensorType<? extends Sensor<? super E>>, Sensor<? super E>>
b
sensors
field_18323
sensors
field_218231_b
sensors
private final Map<Integer, Map<Activity, Set<Behavior<? super E>>>>
c
availableGoalsByPriority
field_18324
tasks
field_218232_c
private Schedule
d
schedule
field_18325
schedule
field_218233_d
schedule
private final Map<Activity, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>>>
e
activityRequirements
field_18326
requiredActivityMemories
field_218234_e
private Set<Activity>
f
coreActivities
field_18327
coreActivities
field_218235_f
private final Set<Activity>
g
activeActivities
field_18328
possibleActivities
field_218236_g
private Activity
h
defaultActivity
field_18329
defaultActivity
field_218237_h
private long
i
lastScheduleUpdate
field_18853
activityStartTime
field_218238_i

Constructor summary

ModifierConstructor
public <T>(Collection<MemoryModuleType<?>> arg0, Collection<SensorType<? extends Sensor<? super E>>> sensors, com.mojang.datafixers.Dynamic<T> arg2)

Method summary

Modifier and TypeMethod
public boolean
a(apj<?> arg0)
hasMemoryValue(MemoryModuleType<?> arg0)
method_18896(class_4140<?> arg0)
hasMemoryModule(MemoryModuleType<?> arg0)
func_218191_a(MemoryModuleType<?> arg0)
hasMemory(MemoryModuleType<?> arg0)
private <T, U> void
a(apj<U> arg0, com.mojang.datafixers.Dynamic<T> arg1)
readMemory(MemoryModuleType<U> arg0, com.mojang.datafixers.Dynamic<T> arg1)
method_18877(class_4140<U> arg0, com.mojang.datafixers.Dynamic<T> arg1)
readMemory(MemoryModuleType<U> arg0, com.mojang.datafixers.Dynamic<T> arg1)
func_218216_a(MemoryModuleType<U> arg0, com.mojang.datafixers.Dynamic<T> arg1)
public <U> void
b(apj<U> arg0)
eraseMemory(MemoryModuleType<U> arg0)
method_18875(class_4140<U> arg0)
forget(MemoryModuleType<U> arg0)
func_218189_b(MemoryModuleType<U> arg0)
removeMemory(MemoryModuleType<U> arg0)
public <U> void
a(apj<U> arg0, U arg1)
setMemory(MemoryModuleType<U> arg0, U arg1)
method_18878(class_4140<U> arg0, U arg1)
putMemory(MemoryModuleType<U> arg0, U value)
func_218205_a(MemoryModuleType<U> arg0, U arg1)
setMemory(MemoryModuleType<U> arg0, U arg1)
public <U> void
a(apj<U> arg0, Optional<U> arg1)
setMemory(MemoryModuleType<U> arg0, Optional<U> arg1)
method_18879(class_4140<U> arg0, Optional<U> arg1)
setMemory(MemoryModuleType<U> arg0, Optional<U> value)
func_218226_a(MemoryModuleType<U> arg0, Optional<U> arg1)
setMemory(MemoryModuleType<U> arg0, Optional<U> arg1)
public <U> Optional<U>
c(apj<U> arg0)
getMemory(MemoryModuleType<U> arg0)
method_18904(class_4140<U> arg0)
getOptionalMemory(MemoryModuleType<U> arg0)
func_218207_c(MemoryModuleType<U> arg0)
getMemory(MemoryModuleType<U> arg0)
public boolean
a(apj<?> arg0, apk arg1)
checkMemory(MemoryModuleType<?> arg0, MemoryStatus arg1)
method_18876(class_4140<?> arg0, class_4141 arg1)
isMemoryInState(MemoryModuleType<?> arg0, MemoryModuleState state)
func_218196_a(MemoryModuleType<?> arg0, MemoryModuleStatus arg1)
public Schedule
b()
getSchedule()
method_18894()
getSchedule()
func_218198_b()
getSchedule()
public void
a(axq arg0)
setSchedule(Schedule arg0)
method_18884(class_4170 arg0)
setSchedule(Schedule arg0)
func_218203_a(Schedule arg0)
setSchedule(Schedule arg0)
public void
a(Set<axo> arg0)
setCoreActivities(Set<Activity> arg0)
method_18890(Set<class_4168> arg0)
setCoreActivities(Set<Activity> arg0)
func_218199_a(Set<Activity> arg0)
public Stream<Behavior<? super E>>
d()
getRunningBehaviorsStream()
method_18899()
streamRunningTasks()
func_218193_d()
public void
a(axo arg0)
setActivity(Activity arg0)
method_18880(class_4168 arg0)
resetPossibleActivities(Activity arg0)
func_218202_a(Activity arg0)
public void
a(long arg0, long arg1)
updateActivity(long arg0, long arg1)
method_18871(long arg0, long arg1)
refreshActivities(long timeOfDay, long time)
func_218211_a(long arg0, long arg1)
public void
b(axo arg0)
setDefaultActivity(Activity arg0)
method_18897(class_4168 arg0)
setDefaultActivity(Activity arg0)
func_218200_b(Activity arg0)
public void
a(axo arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends ajy<? super E>>> arg1)
addActivity(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Behavior<? super E>>> arg1)
method_18881(class_4168 arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends class_4097<? super E>>> arg1)
setTaskList(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> arg1)
func_218208_a(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> arg1)
public void
a(axo arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends ajy<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<apj<?>, apk>> arg2)
addActivity(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Behavior<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> arg2)
method_18882(class_4168 arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends class_4097<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<class_4140<?>, class_4141>> arg2)
setTaskList(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleState>> arg2)
func_218224_a(Activity arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends Task<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryModuleStatus>> arg2)
public boolean
c(axo arg0)
isActive(Activity arg0)
method_18906(class_4168 arg0)
hasActivity(Activity arg0)
func_218214_c(Activity arg0)
public Brain<E>
f()
copyWithoutGoals()
method_18911()
copy()
func_218185_f()
public void
a(vk arg0, E arg1)
tick(ServerLevel arg0, E arg1)
method_19542(class_3218 arg0, E arg1)
tick(ServerWorld arg0, E arg1)
func_218210_a(ServerWorld arg0, E arg1)
public void
b(vk arg0, E arg1)
stopAll(ServerLevel arg0, E arg1)
method_18900(class_3218 arg0, E arg1)
stopAllTasks(ServerWorld arg0, E arg1)
func_218227_b(ServerWorld arg0, E arg1)
public <T> T
a(com.mojang.datafixers.types.DynamicOps<T> arg0)
serialize(com.mojang.datafixers.types.DynamicOps<T> arg0)
method_19508(com.mojang.datafixers.types.DynamicOps<T> arg0)
serialize(com.mojang.datafixers.types.DynamicOps<T> arg0)
func_218175_a(com.mojang.datafixers.types.DynamicOps<T> arg0)
private void
c(vk arg0, E arg1)
tickEachSensor(ServerLevel arg0, E arg1)
method_19544(class_3218 arg0, E arg1)
updateSensors(ServerWorld arg0, E arg1)
func_218229_c(ServerWorld arg0, E arg1)
private void
d(vk arg0, E arg1)
startEachNonRunningBehavior(ServerLevel arg0, E arg1)
method_18891(class_3218 arg0, E arg1)
startTasks(ServerWorld arg0, E arg1)
func_218218_d(ServerWorld arg0, E arg1)
private void
e(vk arg0, E arg1)
tickEachRunningBehavior(ServerLevel arg0, E arg1)
method_19545(class_3218 arg0, E arg1)
updateTasks(ServerWorld arg0, E arg1)
func_218222_e(ServerWorld arg0, E arg1)
private boolean
d(axo arg0)
activityRequirementsAreMet(Activity arg0)
method_18874(class_4168 arg0)
canDoActivity(Activity arg0)
func_218217_d(Activity arg0)
private boolean
a(Object arg0)
isEmptyCollection(Object arg0)
method_19948(Object arg0)
isEmptyCollection(Object value)
func_218213_a(Object arg0)