Package net.minecraft.entity.ai.brain
package net.minecraft.entity.ai.brain
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
Compared to the goal system, the brain system's main advantage is that it allows sharing of certain expensive calculation results in the form of memory by the individual tasks.
-
ClassDescriptionBrain<E extends LivingEntity>A brain is associated with each living entity.Brain.Profile<E extends LivingEntity>A simple profile of a brain.Memory<T>A memory module type represents a type of data stored in a brain.MemoryQuery<F extends com.mojang.datafixers.kinds.K1,
Value> A query of an entity's brain.MemoryQuery.Absent<Value>A query that succeeds if a value is not present in the memory.MemoryQuery.Optional<Value>A query that always succeeds.MemoryQuery.Value<Value>A query that succeeds if a value is present in the memory.MemoryQueryResult<F extends com.mojang.datafixers.kinds.K1,Value> The result of aMemoryQuery
.