Uses of Class
net.minecraft.entity.ai.brain.Memory
| Package | Description |
|---|---|
| net.minecraft.entity.ai.brain |
-
Uses of Memory in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type Memory Modifier and Type Field Description private Optional<com.mojang.serialization.Codec<Memory<U>>>MemoryModuleType. codecprivate Optional<? extends Memory<U>>Brain.MemoryEntry. dataprivate Map<MemoryModuleType<?>,Optional<? extends Memory<?>>>Brain. memoriesMethods in net.minecraft.entity.ai.brain that return Memory Modifier and Type Method Description static <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 Memory Modifier and Type Method Description static <T> com.mojang.serialization.Codec<Memory<T>>Memory. createCodec(com.mojang.serialization.Codec<T> codec)Optional<com.mojang.serialization.Codec<Memory<U>>>MemoryModuleType. getCodec()Map<MemoryModuleType<?>,Optional<? extends Memory<?>>>Brain. method_35058()Deprecated.Method parameters in net.minecraft.entity.ai.brain with type arguments of type Memory Modifier and Type Method Description private static <U> Brain.MemoryEntry<U>Brain.MemoryEntry. of(MemoryModuleType<U> type, Optional<? extends Memory<?>> data)private <U> voidBrain. setMemory(MemoryModuleType<U> type, Optional<? extends Memory<?>> memory)Constructor parameters in net.minecraft.entity.ai.brain with type arguments of type Memory Constructor Description MemoryEntry(MemoryModuleType<U> type, Optional<? extends Memory<U>> data)