Class Brain.MemoryEntry<U>

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

private static final class Brain.MemoryEntry<U> extends Object
Mappings:
Namespace Name
official axv$a
intermediary net/minecraft/class_4095$class_5302
named net/minecraft/entity/ai/brain/Brain$MemoryEntry
  • Field Details

    • type

      private final MemoryModuleType<U> type
      Mappings:
      Namespace Name Mixin selector
      official a Laxv$a;a:Lbez;
      intermediary field_24661 Lnet/minecraft/class_4095$class_5302;field_24661:Lnet/minecraft/class_4140;
      named type Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;type:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • data

      private final Optional<? extends Memory<U>> data
      Mappings:
      Namespace Name Mixin selector
      official b Laxv$a;b:Ljava/util/Optional;
      intermediary field_24662 Lnet/minecraft/class_4095$class_5302;field_24662:Ljava/util/Optional;
      named data Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;data:Ljava/util/Optional;
  • Constructor Details

    • MemoryEntry

      MemoryEntry(MemoryModuleType<U> type, Optional<? extends Memory<U>> data)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxv$a;<init>(Lbez;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4095$class_5302;<init>(Lnet/minecraft/class_4140;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)V
  • Method Details

    • of

      static <U> Brain.MemoryEntry<U> of(MemoryModuleType<U> type, Optional<? extends Memory<?>> data)
      Mappings:
      Namespace Name Mixin selector
      official a Laxv$a;a(Lbez;Ljava/util/Optional;)Laxv$a;
      intermediary method_28333 Lnet/minecraft/class_4095$class_5302;method_28333(Lnet/minecraft/class_4140;Ljava/util/Optional;)Lnet/minecraft/class_4095$class_5302;
      named of Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;of(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;
    • apply

      void apply(Brain<?> brain)
      Mappings:
      Namespace Name Mixin selector
      official a Laxv$a;a(Laxv;)V
      intermediary method_28328 Lnet/minecraft/class_4095$class_5302;method_28328(Lnet/minecraft/class_4095;)V
      named apply Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;apply(Lnet/minecraft/entity/ai/brain/Brain;)V
    • serialize

      public <T> void serialize(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.RecordBuilder<T> builder)
      Mappings:
      Namespace Name Mixin selector
      official a Laxv$a;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)V
      intermediary method_28330 Lnet/minecraft/class_4095$class_5302;method_28330(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)V
      named serialize Lnet/minecraft/entity/ai/brain/Brain$MemoryEntry;serialize(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)V