net.minecraft.world.entity.ai

public class Brain<E extends LivingEntity>

implements Serializable

alm
net.minecraft.world.entity.ai.Brain
net.minecraft.class_4095
net.minecraft.unmapped.C_rjqjaxef
net.minecraft.entity.ai.brain.Brain
net.minecraft.entity.ai.brain.Brain
net.minecraft.server.v1_15_R1.BehaviorController

Field summary

Modifier and TypeField
private final Map<MemoryModuleType<?>, Optional<?>>
a
memories
field_18322
f_eosyauds
memories
field_218230_a
memories
private final Map<SensorType<? extends Sensor<? super E>>, Sensor<? super E>>
b
sensors
field_18323
f_cpbsuabe
sensors
field_218231_b
sensors
private final Map<Integer, Map<Activity, Set<Behavior<? super E>>>>
c
availableGoalsByPriority
field_18324
f_himtozuj
tasks
field_218232_c
private Schedule
d
schedule
field_18325
f_juixaqwl
schedule
field_218233_d
schedule
private final Map<Activity, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>>>
e
activityRequirements
field_18326
f_rtubrbed
requiredActivityMemories
field_218234_e
private Set<Activity>
f
coreActivities
field_18327
f_smzqymsz
coreActivities
field_218235_f
private final Set<Activity>
g
activeActivities
field_18328
f_zntdmkab
possibleActivities
field_218236_g
private Activity
h
defaultActivity
field_18329
f_hblznayd
defaultActivity
field_218237_h
private long
i
lastScheduleUpdate
field_18853
f_nkvabvkg
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(ari<?> arg0)
hasMemoryValue(MemoryModuleType<?> arg0)
method_18896(class_4140<?> arg0)
m_ziwhzzzz(C_vbbyoqyw<?> arg0)
hasMemoryModule(MemoryModuleType<?> arg0)
func_218191_a(MemoryModuleType<?> arg0)
hasMemory(MemoryModuleType<?> arg0)
private <T, U> void
a(ari<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)
m_nehwilnh(C_vbbyoqyw<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(ari<U> arg0)
eraseMemory(MemoryModuleType<U> arg0)
method_18875(class_4140<U> arg0)
m_dwaegred(C_vbbyoqyw<U> arg0)
forget(MemoryModuleType<U> arg0)
func_218189_b(MemoryModuleType<U> arg0)
removeMemory(MemoryModuleType<U> arg0)
public <U> void
a(ari<U> arg0, U arg1)
setMemory(MemoryModuleType<U> arg0, U arg1)
method_18878(class_4140<U> arg0, U arg1)
m_fvnxbipp(C_vbbyoqyw<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(ari<U> arg0, Optional<U> arg1)
setMemory(MemoryModuleType<U> arg0, Optional<U> arg1)
method_18879(class_4140<U> arg0, Optional<U> arg1)
m_pqqxohsa(C_vbbyoqyw<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(ari<U> arg0)
getMemory(MemoryModuleType<U> arg0)
method_18904(class_4140<U> arg0)
m_izdwevme(C_vbbyoqyw<U> arg0)
getOptionalMemory(MemoryModuleType<U> arg0)
func_218207_c(MemoryModuleType<U> arg0)
getMemory(MemoryModuleType<U> arg0)
public boolean
a(ari<?> arg0, arj arg1)
checkMemory(MemoryModuleType<?> arg0, MemoryStatus arg1)
method_18876(class_4140<?> arg0, class_4141 arg1)
m_zpmouher(C_vbbyoqyw<?> arg0, C_nbxzedfr arg1)
isMemoryInState(MemoryModuleType<?> arg0, MemoryModuleState state)
func_218196_a(MemoryModuleType<?> arg0, MemoryModuleStatus arg1)
public Schedule
b()
getSchedule()
method_18894()
m_dgaswiol()
getSchedule()
func_218198_b()
getSchedule()
public void
a(azq arg0)
setSchedule(Schedule arg0)
method_18884(class_4170 arg0)
m_labrylud(C_txyttymj arg0)
setSchedule(Schedule arg0)
func_218203_a(Schedule arg0)
setSchedule(Schedule arg0)
public void
a(Set<azo> arg0)
setCoreActivities(Set<Activity> arg0)
method_18890(Set<class_4168> arg0)
m_xfsxaids(Set<C_gqmpgxlw> arg0)
setCoreActivities(Set<Activity> arg0)
func_218199_a(Set<Activity> arg0)
public Stream<Behavior<? super E>>
d()
getRunningBehaviorsStream()
method_18899()
m_cpogrpkt()
streamRunningTasks()
func_218193_d()
public void
a(azo arg0)
setActivity(Activity arg0)
method_18880(class_4168 arg0)
m_pprimyci(C_gqmpgxlw 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)
m_auonbvly(long arg0, long arg1)
refreshActivities(long timeOfDay, long time)
func_218211_a(long arg0, long arg1)
public void
b(azo arg0)
setDefaultActivity(Activity arg0)
method_18897(class_4168 arg0)
m_sjlndvhw(C_gqmpgxlw arg0)
setDefaultActivity(Activity arg0)
func_218200_b(Activity arg0)
public void
a(azo arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends aly<? 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)
m_atyrapzq(C_gqmpgxlw arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends C_wbtjxfbq<? 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(azo arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends aly<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<ari<?>, arj>> 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)
m_jnylxvyu(C_gqmpgxlw arg0, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer, ? extends C_wbtjxfbq<? super E>>> arg1, Set<com.mojang.datafixers.util.Pair<C_vbbyoqyw<?>, C_nbxzedfr>> 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(azo arg0)
isActive(Activity arg0)
method_18906(class_4168 arg0)
m_elyidpyr(C_gqmpgxlw arg0)
hasActivity(Activity arg0)
func_218214_c(Activity arg0)
public Brain<E>
f()
copyWithoutGoals()
method_18911()
m_bbuwrtez()
copy()
func_218185_f()
public void
a(xd arg0, E arg1)
tick(ServerLevel arg0, E arg1)
method_19542(class_3218 arg0, E arg1)
m_iglzmmbk(C_bdwnwhiu arg0, E arg1)
tick(ServerWorld arg0, E arg1)
func_218210_a(ServerWorld arg0, E arg1)
public void
b(xd arg0, E arg1)
stopAll(ServerLevel arg0, E arg1)
method_18900(class_3218 arg0, E arg1)
m_yrkjvfkz(C_bdwnwhiu 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)
m_cbxsayih(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(xd arg0, E arg1)
tickEachSensor(ServerLevel arg0, E arg1)
method_19544(class_3218 arg0, E arg1)
m_hymdcass(C_bdwnwhiu arg0, E arg1)
updateSensors(ServerWorld arg0, E arg1)
func_218229_c(ServerWorld arg0, E arg1)
private void
d(xd arg0, E arg1)
startEachNonRunningBehavior(ServerLevel arg0, E arg1)
method_18891(class_3218 arg0, E arg1)
m_wcfmakvv(C_bdwnwhiu arg0, E arg1)
startTasks(ServerWorld arg0, E arg1)
func_218218_d(ServerWorld arg0, E arg1)
private void
e(xd arg0, E arg1)
tickEachRunningBehavior(ServerLevel arg0, E arg1)
method_19545(class_3218 arg0, E arg1)
m_oigmxqji(C_bdwnwhiu arg0, E arg1)
updateTasks(ServerWorld arg0, E arg1)
func_218222_e(ServerWorld arg0, E arg1)
private boolean
d(azo arg0)
activityRequirementsAreMet(Activity arg0)
method_18874(class_4168 arg0)
m_ecjxyvmm(C_gqmpgxlw arg0)
canDoActivity(Activity arg0)
func_218217_d(Activity arg0)
private boolean
a(Object arg0)
isEmptyCollection(Object arg0)
method_19948(Object arg0)
m_nbkefyrk(Object arg0)
isEmptyCollection(Object value)
func_218213_a(Object arg0)