Class Brain.Profile<E extends LivingEntity>

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

public static final class Brain.Profile<E extends LivingEntity> extends Object
A simple profile of a brain. Indicates what types of memory modules and sensors a brain can have.
Mappings:
Namespace Name
official bnl$b
intermediary net/minecraft/class_4095$class_5303
named net/minecraft/entity/ai/brain/Brain$Profile
  • Field Details

    • memoryModules

      private final Collection<? extends MemoryModuleType<?>> memoryModules
      Mappings:
      Namespace Name Mixin selector
      official a Lbnl$b;a:Ljava/util/Collection;
      intermediary field_24663 Lnet/minecraft/class_4095$class_5303;field_24663:Ljava/util/Collection;
      named memoryModules Lnet/minecraft/entity/ai/brain/Brain$Profile;memoryModules:Ljava/util/Collection;
    • sensors

      private final Collection<? extends SensorType<? extends Sensor<? super E extends LivingEntity>>> sensors
      Mappings:
      Namespace Name Mixin selector
      official b Lbnl$b;b:Ljava/util/Collection;
      intermediary field_24664 Lnet/minecraft/class_4095$class_5303;field_24664:Ljava/util/Collection;
      named sensors Lnet/minecraft/entity/ai/brain/Brain$Profile;sensors:Ljava/util/Collection;
    • codec

      private final com.mojang.serialization.Codec<Brain<E extends LivingEntity>> codec
      Mappings:
      Namespace Name Mixin selector
      official c Lbnl$b;c:Lcom/mojang/serialization/Codec;
      intermediary field_24665 Lnet/minecraft/class_4095$class_5303;field_24665:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/entity/ai/brain/Brain$Profile;codec:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Profile

      Profile(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbnl$b;<init>(Ljava/util/Collection;Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_4095$class_5303;<init>(Ljava/util/Collection;Ljava/util/Collection;)V
      named <init> Lnet/minecraft/entity/ai/brain/Brain$Profile;<init>(Ljava/util/Collection;Ljava/util/Collection;)V
  • Method Details

    • deserialize

      public Brain<E> deserialize(com.mojang.serialization.Dynamic<?> data)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnl$b;a(Lcom/mojang/serialization/Dynamic;)Lbnl;
      intermediary method_28335 Lnet/minecraft/class_4095$class_5303;method_28335(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      named deserialize Lnet/minecraft/entity/ai/brain/Brain$Profile;deserialize(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;