Package net.minecraft.entity.ai.brain
Class Brain.MemoryCodec<U>
java.lang.Object
net.minecraft.entity.ai.brain.Brain.MemoryCodec<U>
- Enclosing class:
- Brain<E extends LivingEntity>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
MemoryCodec
(MemoryModuleType<U> p_i231496_1_, Optional<? extends Memory<U>> p_i231496_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <U> Brain.MemoryCodec<U>
createUnchecked
(MemoryModuleType<U> p_233743_0_, Optional<? extends Memory<?>> p_233743_1_) <T> void
serialize
(com.mojang.serialization.DynamicOps<T> p_233740_1_, com.mojang.serialization.RecordBuilder<T> p_233740_2_) private void
setMemoryInternal
(Brain<?> p_233738_1_)
-
Field Details
-
type
-
value
-
-
Constructor Details
-
MemoryCodec
-
-
Method Details
-
createUnchecked
private static <U> Brain.MemoryCodec<U> createUnchecked(MemoryModuleType<U> p_233743_0_, Optional<? extends Memory<?>> p_233743_1_) -
setMemoryInternal
-
serialize
public <T> void serialize(com.mojang.serialization.DynamicOps<T> p_233740_1_, com.mojang.serialization.RecordBuilder<T> p_233740_2_)
-