static final class Brain.MemoryEntry<U> extends Object
Modifier and Type | Field and Description |
---|---|
private Optional<? extends Memory<U>> |
data |
private MemoryModuleType<U> |
type |
Modifier | Constructor and Description |
---|---|
private |
MemoryEntry(MemoryModuleType<U> type,
Optional<? extends Memory<U>> data) |
Modifier and Type | Method and Description |
---|---|
private void |
apply(Brain<?> brain) |
private static <U> Brain.MemoryEntry<U> |
of(MemoryModuleType<U> type,
Optional<? extends Memory<?>> data) |
<T> void |
serialize(com.mojang.serialization.DynamicOps<T> ops,
com.mojang.serialization.RecordBuilder<T> builder) |
private final MemoryModuleType<U> type
private MemoryEntry(MemoryModuleType<U> type, Optional<? extends Memory<U>> data)
private static <U> Brain.MemoryEntry<U> of(MemoryModuleType<U> type, Optional<? extends Memory<?>> data)
private void apply(Brain<?> brain)
public <T> void serialize(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.RecordBuilder<T> builder)