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
named net/minecraft/entity/ai/brain/Brain$Profile
intermediary net/minecraft/class_4095$class_5303
official bus$b
  • Field Details

    • memoryModules

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

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

      private final com.mojang.serialization.Codec<Brain<E extends LivingEntity>> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/entity/ai/brain/Brain$Profile;codec:Lcom/mojang/serialization/Codec;
      intermediary field_24665 Lnet/minecraft/class_4095$class_5303;field_24665:Lcom/mojang/serialization/Codec;
      official c Lbus$b;c: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
      named <init> Lnet/minecraft/entity/ai/brain/Brain$Profile;<init>(Ljava/util/Collection;Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_4095$class_5303;<init>(Ljava/util/Collection;Ljava/util/Collection;)V
      official <init> Lbus$b;<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
      named deserialize Lnet/minecraft/entity/ai/brain/Brain$Profile;deserialize(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_28335 Lnet/minecraft/class_4095$class_5303;method_28335(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      official a Lbus$b;a(Lcom/mojang/serialization/Dynamic;)Lbus;