Class Brain.MemoryCodec<U>

java.lang.Object
net.minecraft.entity.ai.brain.Brain.MemoryCodec<U>
Enclosing class:
Brain<E extends LivingEntity>

static final class Brain.MemoryCodec<U> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • createUnchecked

      private static <U> Brain.MemoryCodec<U> createUnchecked(MemoryModuleType<U> p_233743_0_, Optional<? extends Memory<?>> p_233743_1_)
    • setMemoryInternal

      private void setMemoryInternal(Brain<?> p_233738_1_)
    • serialize

      public <T> void serialize(com.mojang.serialization.DynamicOps<T> p_233740_1_, com.mojang.serialization.RecordBuilder<T> p_233740_2_)