Uses of Class
net.minecraft.entity.ai.brain.Memory
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of Memory in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionMemoryModuleType.codec
Brain.MemoryEntry.data
private final Map
<MemoryModuleType<?>, Optional<? extends Memory<?>>> Brain.memories
Modifier and TypeMethodDescriptionstatic <T> Memory
<T> Memory.permanent
(T value) Creates a memory without an expiry time.static <T> Memory
<T> Memory.timed
(T value, long expiry) Creates a memory that has an expiry time.Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<Memory<T>> Memory.createCodec
(com.mojang.serialization.Codec<T> codec) MemoryModuleType.getCodec()
Map
<MemoryModuleType<?>, Optional<? extends Memory<?>>> Brain.getMemories()
Deprecated.Modifier and TypeMethodDescription(package private) static <U> Brain.MemoryEntry
<U> Brain.MemoryEntry.of
(MemoryModuleType<U> type, Optional<? extends Memory<?>> data) (package private) <U> void
Brain.setMemory
(MemoryModuleType<U> type, Optional<? extends Memory<?>> memory) ModifierConstructorDescription(package private)
MemoryEntry
(MemoryModuleType<U> type, Optional<? extends Memory<U>> data)