Uses of Class
net.minecraft.entity.ai.brain.Memory
Packages that use Memory
Package
Description
The base package for all Minecraft classes.
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
Method parameters in net.minecraft with type arguments of type MemoryModifier and TypeMethodDescriptionprivate static Stringclass_12006.method_74549(ServerWorld serverWorld, long long2, MemoryModuleType<?> memoryModuleType, Optional<? extends Memory<?>> optional) -
Uses of Memory in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type MemoryModifier and TypeFieldDescriptionMemoryModuleType.codecBrain.MemoryEntry.dataprivate final Map<MemoryModuleType<?>, Optional<? extends Memory<?>>> Brain.memoriesMethods in net.minecraft.entity.ai.brain that return MemoryModifier 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.Methods in net.minecraft.entity.ai.brain that return types with arguments of type MemoryModifier 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.Method parameters in net.minecraft.entity.ai.brain with type arguments of type MemoryModifier and TypeMethodDescription(package private) static <U> Brain.MemoryEntry<U> Brain.MemoryEntry.of(MemoryModuleType<U> type, Optional<? extends Memory<?>> data) (package private) <U> voidBrain.setMemory(MemoryModuleType<U> type, Optional<? extends Memory<?>> memory) Constructor parameters in net.minecraft.entity.ai.brain with type arguments of type MemoryModifierConstructorDescription(package private)MemoryEntry(MemoryModuleType<U> type, Optional<? extends Memory<U>> data)