Class Brain<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.Brain<E>

public class Brain<E extends LivingEntity> extends Object
A brain is associated with each living entity.

A brain has memories, sensors, and tasks. In general, the brain can use sensors to refresh the memories over time, and the memories can be shared by different tasks, which can reduce duplicate calculation. For instance, instead of having each task scan for the player, the memories can hold information about nearby player, and the task can choose to run or not accordingly.

To construct a brain, you need to specify the memory (module) types and sensors present in a brain, and then you can add individual tasks.

See Also:
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/Brain
intermediary net/minecraft/class_4095
official buq
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/entity/ai/brain/Brain;LOGGER:Lorg/slf4j/Logger;
      intermediary field_24656 Lnet/minecraft/class_4095;field_24656:Lorg/slf4j/Logger;
      official a Lbuq;a:Lorg/slf4j/Logger;
    • ACTIVITY_REFRESH_COOLDOWN

      private static final int ACTIVITY_REFRESH_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ACTIVITY_REFRESH_COOLDOWN Lnet/minecraft/entity/ai/brain/Brain;ACTIVITY_REFRESH_COOLDOWN:I
      intermediary field_30096 Lnet/minecraft/class_4095;field_30096:I
      official c Lbuq;c:I
    • codecSupplier

      private final Supplier<com.mojang.serialization.Codec<Brain<E extends LivingEntity>>> codecSupplier
      Mappings:
      Namespace Name Mixin selector
      named codecSupplier Lnet/minecraft/entity/ai/brain/Brain;codecSupplier:Ljava/util/function/Supplier;
      intermediary field_24657 Lnet/minecraft/class_4095;field_24657:Ljava/util/function/Supplier;
      official b Lbuq;b:Ljava/util/function/Supplier;
    • memories

      private final Map<MemoryModuleType<?>,Optional<? extends Memory<?>>> memories
      Mappings:
      Namespace Name Mixin selector
      named memories Lnet/minecraft/entity/ai/brain/Brain;memories:Ljava/util/Map;
      intermediary field_18322 Lnet/minecraft/class_4095;field_18322:Ljava/util/Map;
      official d Lbuq;d:Ljava/util/Map;
    • sensors

      private final Map<SensorType<? extends Sensor<? super E extends LivingEntity>>,Sensor<? super E extends LivingEntity>> sensors
      Mappings:
      Namespace Name Mixin selector
      named sensors Lnet/minecraft/entity/ai/brain/Brain;sensors:Ljava/util/Map;
      intermediary field_18323 Lnet/minecraft/class_4095;field_18323:Ljava/util/Map;
      official e Lbuq;e:Ljava/util/Map;
    • tasks

      private final Map<Integer,Map<Activity,Set<Task<? super E extends LivingEntity>>>> tasks
      Mappings:
      Namespace Name Mixin selector
      named tasks Lnet/minecraft/entity/ai/brain/Brain;tasks:Ljava/util/Map;
      intermediary field_18324 Lnet/minecraft/class_4095;field_18324:Ljava/util/Map;
      official f Lbuq;f:Ljava/util/Map;
    • schedule

      private Schedule schedule
      Mappings:
      Namespace Name Mixin selector
      named schedule Lnet/minecraft/entity/ai/brain/Brain;schedule:Lnet/minecraft/entity/ai/brain/Schedule;
      intermediary field_18325 Lnet/minecraft/class_4095;field_18325:Lnet/minecraft/class_4170;
      official g Lbuq;g:Lcop;
    • requiredActivityMemories

      private final Map<Activity,Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>,MemoryModuleState>>> requiredActivityMemories
      Mappings:
      Namespace Name Mixin selector
      named requiredActivityMemories Lnet/minecraft/entity/ai/brain/Brain;requiredActivityMemories:Ljava/util/Map;
      intermediary field_18326 Lnet/minecraft/class_4095;field_18326:Ljava/util/Map;
      official h Lbuq;h:Ljava/util/Map;
    • forgettingActivityMemories

      private final Map<Activity,Set<MemoryModuleType<?>>> forgettingActivityMemories
      The map from activities to the memories to forget after the activity is completed.
      Mappings:
      Namespace Name Mixin selector
      named forgettingActivityMemories Lnet/minecraft/entity/ai/brain/Brain;forgettingActivityMemories:Ljava/util/Map;
      intermediary field_22282 Lnet/minecraft/class_4095;field_22282:Ljava/util/Map;
      official i Lbuq;i:Ljava/util/Map;
    • coreActivities

      private Set<Activity> coreActivities
      Mappings:
      Namespace Name Mixin selector
      named coreActivities Lnet/minecraft/entity/ai/brain/Brain;coreActivities:Ljava/util/Set;
      intermediary field_18327 Lnet/minecraft/class_4095;field_18327:Ljava/util/Set;
      official j Lbuq;j:Ljava/util/Set;
    • possibleActivities

      private final Set<Activity> possibleActivities
      Mappings:
      Namespace Name Mixin selector
      named possibleActivities Lnet/minecraft/entity/ai/brain/Brain;possibleActivities:Ljava/util/Set;
      intermediary field_18328 Lnet/minecraft/class_4095;field_18328:Ljava/util/Set;
      official k Lbuq;k:Ljava/util/Set;
    • defaultActivity

      private Activity defaultActivity
      Mappings:
      Namespace Name Mixin selector
      named defaultActivity Lnet/minecraft/entity/ai/brain/Brain;defaultActivity:Lnet/minecraft/entity/ai/brain/Activity;
      intermediary field_18329 Lnet/minecraft/class_4095;field_18329:Lnet/minecraft/class_4168;
      official l Lbuq;l:Lcom;
    • activityStartTime

      private long activityStartTime
      Mappings:
      Namespace Name Mixin selector
      named activityStartTime Lnet/minecraft/entity/ai/brain/Brain;activityStartTime:J
      intermediary field_18853 Lnet/minecraft/class_4095;field_18853:J
      official m Lbuq;m:J
  • Constructor Details

    • Brain

      public Brain(Collection<? extends MemoryModuleType<?>> memories, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors, ImmutableList<Brain.MemoryEntry<?>> memoryEntries, Supplier<com.mojang.serialization.Codec<Brain<E>>> codecSupplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/brain/Brain;<init>(Ljava/util/Collection;Ljava/util/Collection;Lcom/google/common/collect/ImmutableList;Ljava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_4095;<init>(Ljava/util/Collection;Ljava/util/Collection;Lcom/google/common/collect/ImmutableList;Ljava/util/function/Supplier;)V
      official <init> Lbuq;<init>(Ljava/util/Collection;Ljava/util/Collection;Lcom/google/common/collect/ImmutableList;Ljava/util/function/Supplier;)V
  • Method Details

    • createProfile

      public static <E extends LivingEntity> Brain.Profile<E> createProfile(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)
      Mappings:
      Namespace Name Mixin selector
      named createProfile Lnet/minecraft/entity/ai/brain/Brain;createProfile(Ljava/util/Collection;Ljava/util/Collection;)Lnet/minecraft/entity/ai/brain/Brain$Profile;
      intermediary method_28311 Lnet/minecraft/class_4095;method_28311(Ljava/util/Collection;Ljava/util/Collection;)Lnet/minecraft/class_4095$class_5303;
      official a Lbuq;a(Ljava/util/Collection;Ljava/util/Collection;)Lbuq$b;
    • createBrainCodec

      public static <E extends LivingEntity> com.mojang.serialization.Codec<Brain<E>> createBrainCodec(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)
      Mappings:
      Namespace Name Mixin selector
      named createBrainCodec Lnet/minecraft/entity/ai/brain/Brain;createBrainCodec(Ljava/util/Collection;Ljava/util/Collection;)Lcom/mojang/serialization/Codec;
      intermediary method_28313 Lnet/minecraft/class_4095;method_28313(Ljava/util/Collection;Ljava/util/Collection;)Lcom/mojang/serialization/Codec;
      official b Lbuq;b(Ljava/util/Collection;Ljava/util/Collection;)Lcom/mojang/serialization/Codec;
    • encode

      public <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> ops)
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/entity/ai/brain/Brain;encode(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
      intermediary method_28310 Lnet/minecraft/class_4095;method_28310(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
      official a Lbuq;a(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
    • streamMemories

      Stream<Brain.MemoryEntry<?>> streamMemories()
      Mappings:
      Namespace Name Mixin selector
      named streamMemories Lnet/minecraft/entity/ai/brain/Brain;streamMemories()Ljava/util/stream/Stream;
      intermediary method_28315 Lnet/minecraft/class_4095;method_28315()Ljava/util/stream/Stream;
      official j Lbuq;j()Ljava/util/stream/Stream;
    • hasMemoryModule

      public boolean hasMemoryModule(MemoryModuleType<?> type)
      Mappings:
      Namespace Name Mixin selector
      named hasMemoryModule Lnet/minecraft/entity/ai/brain/Brain;hasMemoryModule(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Z
      intermediary method_18896 Lnet/minecraft/class_4095;method_18896(Lnet/minecraft/class_4140;)Z
      official a Lbuq;a(Lccs;)Z
    • forgetAll

      public void forgetAll()
      Mappings:
      Namespace Name Mixin selector
      named forgetAll Lnet/minecraft/entity/ai/brain/Brain;forgetAll()V
      intermediary method_49709 Lnet/minecraft/class_4095;method_49709()V
      official a Lbuq;a()V
    • forget

      public <U> void forget(MemoryModuleType<U> type)
      Mappings:
      Namespace Name Mixin selector
      named forget Lnet/minecraft/entity/ai/brain/Brain;forget(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
      intermediary method_18875 Lnet/minecraft/class_4095;method_18875(Lnet/minecraft/class_4140;)V
      official b Lbuq;b(Lccs;)V
    • remember

      public <U> void remember(MemoryModuleType<U> type, @Nullable U value)
      Mappings:
      Namespace Name Mixin selector
      named remember Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;)V
      intermediary method_18878 Lnet/minecraft/class_4095;method_18878(Lnet/minecraft/class_4140;Ljava/lang/Object;)V
      official a Lbuq;a(Lccs;Ljava/lang/Object;)V
    • remember

      public <U> void remember(MemoryModuleType<U> type, U value, long expiry)
      Mappings:
      Namespace Name Mixin selector
      named remember Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;J)V
      intermediary method_24525 Lnet/minecraft/class_4095;method_24525(Lnet/minecraft/class_4140;Ljava/lang/Object;J)V
      official a Lbuq;a(Lccs;Ljava/lang/Object;J)V
    • remember

      public <U> void remember(MemoryModuleType<U> type, Optional<? extends U> value)
      Mappings:
      Namespace Name Mixin selector
      named remember Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)V
      intermediary method_18879 Lnet/minecraft/class_4095;method_18879(Lnet/minecraft/class_4140;Ljava/util/Optional;)V
      official a Lbuq;a(Lccs;Ljava/util/Optional;)V
    • setMemory

      <U> void setMemory(MemoryModuleType<U> type, Optional<? extends Memory<?>> memory)
      Mappings:
      Namespace Name Mixin selector
      named setMemory Lnet/minecraft/entity/ai/brain/Brain;setMemory(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)V
      intermediary method_24535 Lnet/minecraft/class_4095;method_24535(Lnet/minecraft/class_4140;Ljava/util/Optional;)V
      official b Lbuq;b(Lccs;Ljava/util/Optional;)V
    • getOptionalRegisteredMemory

      public <U> Optional<U> getOptionalRegisteredMemory(MemoryModuleType<U> type)
      Mappings:
      Namespace Name Mixin selector
      named getOptionalRegisteredMemory Lnet/minecraft/entity/ai/brain/Brain;getOptionalRegisteredMemory(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Optional;
      intermediary method_18904 Lnet/minecraft/class_4095;method_18904(Lnet/minecraft/class_4140;)Ljava/util/Optional;
      official c Lbuq;c(Lccs;)Ljava/util/Optional;
    • getOptionalMemory

      @Nullable public <U> @Nullable Optional<U> getOptionalMemory(MemoryModuleType<U> type)
      Mappings:
      Namespace Name Mixin selector
      named getOptionalMemory Lnet/minecraft/entity/ai/brain/Brain;getOptionalMemory(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Optional;
      intermediary method_46873 Lnet/minecraft/class_4095;method_46873(Lnet/minecraft/class_4140;)Ljava/util/Optional;
      official d Lbuq;d(Lccs;)Ljava/util/Optional;
    • getMemoryExpiry

      public <U> long getMemoryExpiry(MemoryModuleType<U> type)
      Mappings:
      Namespace Name Mixin selector
      named getMemoryExpiry Lnet/minecraft/entity/ai/brain/Brain;getMemoryExpiry(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)J
      intermediary method_36978 Lnet/minecraft/class_4095;method_36978(Lnet/minecraft/class_4140;)J
      official e Lbuq;e(Lccs;)J
    • getMemories

      @Deprecated public Map<MemoryModuleType<?>,Optional<? extends Memory<?>>> getMemories()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named getMemories Lnet/minecraft/entity/ai/brain/Brain;getMemories()Ljava/util/Map;
      intermediary method_35058 Lnet/minecraft/class_4095;method_35058()Ljava/util/Map;
      official b Lbuq;b()Ljava/util/Map;
    • hasMemoryModuleWithValue

      public <U> boolean hasMemoryModuleWithValue(MemoryModuleType<U> type, U value)
      Mappings:
      Namespace Name Mixin selector
      named hasMemoryModuleWithValue Lnet/minecraft/entity/ai/brain/Brain;hasMemoryModuleWithValue(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;)Z
      intermediary method_29519 Lnet/minecraft/class_4095;method_29519(Lnet/minecraft/class_4140;Ljava/lang/Object;)Z
      official b Lbuq;b(Lccs;Ljava/lang/Object;)Z
    • isMemoryInState

      public boolean isMemoryInState(MemoryModuleType<?> type, MemoryModuleState state)
      Mappings:
      Namespace Name Mixin selector
      named isMemoryInState Lnet/minecraft/entity/ai/brain/Brain;isMemoryInState(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleState;)Z
      intermediary method_18876 Lnet/minecraft/class_4095;method_18876(Lnet/minecraft/class_4140;Lnet/minecraft/class_4141;)Z
      official a Lbuq;a(Lccs;Lcct;)Z
    • getSchedule

      public Schedule getSchedule()
      Mappings:
      Namespace Name Mixin selector
      named getSchedule Lnet/minecraft/entity/ai/brain/Brain;getSchedule()Lnet/minecraft/entity/ai/brain/Schedule;
      intermediary method_18894 Lnet/minecraft/class_4095;method_18894()Lnet/minecraft/class_4170;
      official c Lbuq;c()Lcop;
    • setSchedule

      public void setSchedule(Schedule schedule)
      Mappings:
      Namespace Name Mixin selector
      named setSchedule Lnet/minecraft/entity/ai/brain/Brain;setSchedule(Lnet/minecraft/entity/ai/brain/Schedule;)V
      intermediary method_18884 Lnet/minecraft/class_4095;method_18884(Lnet/minecraft/class_4170;)V
      official a Lbuq;a(Lcop;)V
    • setCoreActivities

      public void setCoreActivities(Set<Activity> coreActivities)
      Mappings:
      Namespace Name Mixin selector
      named setCoreActivities Lnet/minecraft/entity/ai/brain/Brain;setCoreActivities(Ljava/util/Set;)V
      intermediary method_18890 Lnet/minecraft/class_4095;method_18890(Ljava/util/Set;)V
      official a Lbuq;a(Ljava/util/Set;)V
    • getPossibleActivities

      @Deprecated public Set<Activity> getPossibleActivities()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named getPossibleActivities Lnet/minecraft/entity/ai/brain/Brain;getPossibleActivities()Ljava/util/Set;
      intermediary method_35059 Lnet/minecraft/class_4095;method_35059()Ljava/util/Set;
      official d Lbuq;d()Ljava/util/Set;
    • getRunningTasks

      @Deprecated public List<Task<? super E>> getRunningTasks()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named getRunningTasks Lnet/minecraft/entity/ai/brain/Brain;getRunningTasks()Ljava/util/List;
      intermediary method_27074 Lnet/minecraft/class_4095;method_27074()Ljava/util/List;
      official e Lbuq;e()Ljava/util/List;
    • resetPossibleActivities

      public void resetPossibleActivities()
      Mappings:
      Namespace Name Mixin selector
      named resetPossibleActivities Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities()V
      intermediary method_24536 Lnet/minecraft/class_4095;method_24536()V
      official f Lbuq;f()V
    • getFirstPossibleNonCoreActivity

      public Optional<Activity> getFirstPossibleNonCoreActivity()
      Mappings:
      Namespace Name Mixin selector
      named getFirstPossibleNonCoreActivity Lnet/minecraft/entity/ai/brain/Brain;getFirstPossibleNonCoreActivity()Ljava/util/Optional;
      intermediary method_24538 Lnet/minecraft/class_4095;method_24538()Ljava/util/Optional;
      official g Lbuq;g()Ljava/util/Optional;
    • doExclusively

      public void doExclusively(Activity activity)
      Mappings:
      Namespace Name Mixin selector
      named doExclusively Lnet/minecraft/entity/ai/brain/Brain;doExclusively(Lnet/minecraft/entity/ai/brain/Activity;)V
      intermediary method_24526 Lnet/minecraft/class_4095;method_24526(Lnet/minecraft/class_4168;)V
      official a Lbuq;a(Lcom;)V
    • resetPossibleActivities

      private void resetPossibleActivities(Activity except)
      Mappings:
      Namespace Name Mixin selector
      named resetPossibleActivities Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities(Lnet/minecraft/entity/ai/brain/Activity;)V
      intermediary method_18880 Lnet/minecraft/class_4095;method_18880(Lnet/minecraft/class_4168;)V
      official d Lbuq;d(Lcom;)V
    • forgetIrrelevantMemories

      private void forgetIrrelevantMemories(Activity except)
      Mappings:
      Namespace Name Mixin selector
      named forgetIrrelevantMemories Lnet/minecraft/entity/ai/brain/Brain;forgetIrrelevantMemories(Lnet/minecraft/entity/ai/brain/Activity;)V
      intermediary method_24537 Lnet/minecraft/class_4095;method_24537(Lnet/minecraft/class_4168;)V
      official e Lbuq;e(Lcom;)V
    • refreshActivities

      public void refreshActivities(long timeOfDay, long time)
      Mappings:
      Namespace Name Mixin selector
      named refreshActivities Lnet/minecraft/entity/ai/brain/Brain;refreshActivities(JJ)V
      intermediary method_18871 Lnet/minecraft/class_4095;method_18871(JJ)V
      official a Lbuq;a(JJ)V
    • resetPossibleActivities

      public void resetPossibleActivities(List<Activity> activities)
      Mappings:
      Namespace Name Mixin selector
      named resetPossibleActivities Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities(Ljava/util/List;)V
      intermediary method_24531 Lnet/minecraft/class_4095;method_24531(Ljava/util/List;)V
      official a Lbuq;a(Ljava/util/List;)V
    • setDefaultActivity

      public void setDefaultActivity(Activity activity)
      Mappings:
      Namespace Name Mixin selector
      named setDefaultActivity Lnet/minecraft/entity/ai/brain/Brain;setDefaultActivity(Lnet/minecraft/entity/ai/brain/Activity;)V
      intermediary method_18897 Lnet/minecraft/class_4095;method_18897(Lnet/minecraft/class_4168;)V
      official b Lbuq;b(Lcom;)V
    • setTaskList

      public void setTaskList(Activity activity, int begin, ImmutableList<? extends Task<? super E>> list)
      Mappings:
      Namespace Name Mixin selector
      named setTaskList Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;ILcom/google/common/collect/ImmutableList;)V
      intermediary method_18882 Lnet/minecraft/class_4095;method_18882(Lnet/minecraft/class_4168;ILcom/google/common/collect/ImmutableList;)V
      official a Lbuq;a(Lcom;ILcom/google/common/collect/ImmutableList;)V
    • setTaskList

      public void setTaskList(Activity activity, int begin, ImmutableList<? extends Task<? super E>> tasks, MemoryModuleType<?> memoryType)
      Mappings:
      Namespace Name Mixin selector
      named setTaskList Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;ILcom/google/common/collect/ImmutableList;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
      intermediary method_24527 Lnet/minecraft/class_4095;method_24527(Lnet/minecraft/class_4168;ILcom/google/common/collect/ImmutableList;Lnet/minecraft/class_4140;)V
      official a Lbuq;a(Lcom;ILcom/google/common/collect/ImmutableList;Lccs;)V
    • setTaskList

      public void setTaskList(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexedTasks)
      Mappings:
      Namespace Name Mixin selector
      named setTaskList Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;Lcom/google/common/collect/ImmutableList;)V
      intermediary method_18881 Lnet/minecraft/class_4095;method_18881(Lnet/minecraft/class_4168;Lcom/google/common/collect/ImmutableList;)V
      official a Lbuq;a(Lcom;Lcom/google/common/collect/ImmutableList;)V
    • setTaskList

      public void setTaskList(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>,MemoryModuleState>> requiredMemories)
      Mappings:
      Namespace Name Mixin selector
      named setTaskList Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;)V
      intermediary method_24529 Lnet/minecraft/class_4095;method_24529(Lnet/minecraft/class_4168;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;)V
      official a Lbuq;a(Lcom;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;)V
    • setTaskList

      public void setTaskList(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexedTasks, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>,MemoryModuleState>> requiredMemories, Set<MemoryModuleType<?>> forgettingMemories)
      Mappings:
      Namespace Name Mixin selector
      named setTaskList Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;Ljava/util/Set;)V
      intermediary method_24530 Lnet/minecraft/class_4095;method_24530(Lnet/minecraft/class_4168;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;Ljava/util/Set;)V
      official a Lbuq;a(Lcom;Lcom/google/common/collect/ImmutableList;Ljava/util/Set;Ljava/util/Set;)V
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/entity/ai/brain/Brain;clear()V
      intermediary method_35060 Lnet/minecraft/class_4095;method_35060()V
      official h Lbuq;h()V
    • hasActivity

      public boolean hasActivity(Activity activity)
      Mappings:
      Namespace Name Mixin selector
      named hasActivity Lnet/minecraft/entity/ai/brain/Brain;hasActivity(Lnet/minecraft/entity/ai/brain/Activity;)Z
      intermediary method_18906 Lnet/minecraft/class_4095;method_18906(Lnet/minecraft/class_4168;)Z
      official c Lbuq;c(Lcom;)Z
    • copy

      public Brain<E> copy()
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/entity/ai/brain/Brain;copy()Lnet/minecraft/entity/ai/brain/Brain;
      intermediary method_18911 Lnet/minecraft/class_4095;method_18911()Lnet/minecraft/class_4095;
      official i Lbuq;i()Lbuq;
    • tick

      public void tick(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/ai/brain/Brain;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_19542 Lnet/minecraft/class_4095;method_19542(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official a Lbuq;a(Laqu;Lbtn;)V
    • tickSensors

      private void tickSensors(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named tickSensors Lnet/minecraft/entity/ai/brain/Brain;tickSensors(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_27073 Lnet/minecraft/class_4095;method_27073(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official c Lbuq;c(Laqu;Lbtn;)V
    • tickMemories

      private void tickMemories()
      Mappings:
      Namespace Name Mixin selector
      named tickMemories Lnet/minecraft/entity/ai/brain/Brain;tickMemories()V
      intermediary method_27075 Lnet/minecraft/class_4095;method_27075()V
      official k Lbuq;k()V
    • stopAllTasks

      public void stopAllTasks(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named stopAllTasks Lnet/minecraft/entity/ai/brain/Brain;stopAllTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_18900 Lnet/minecraft/class_4095;method_18900(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official b Lbuq;b(Laqu;Lbtn;)V
    • startTasks

      private void startTasks(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named startTasks Lnet/minecraft/entity/ai/brain/Brain;startTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_18891 Lnet/minecraft/class_4095;method_18891(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official d Lbuq;d(Laqu;Lbtn;)V
    • updateTasks

      private void updateTasks(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named updateTasks Lnet/minecraft/entity/ai/brain/Brain;updateTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_19545 Lnet/minecraft/class_4095;method_19545(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official e Lbuq;e(Laqu;Lbtn;)V
    • canDoActivity

      private boolean canDoActivity(Activity activity)
      Mappings:
      Namespace Name Mixin selector
      named canDoActivity Lnet/minecraft/entity/ai/brain/Brain;canDoActivity(Lnet/minecraft/entity/ai/brain/Activity;)Z
      intermediary method_18874 Lnet/minecraft/class_4095;method_18874(Lnet/minecraft/class_4168;)Z
      official f Lbuq;f(Lcom;)Z
    • isEmptyCollection

      private boolean isEmptyCollection(Object value)
      Mappings:
      Namespace Name Mixin selector
      named isEmptyCollection Lnet/minecraft/entity/ai/brain/Brain;isEmptyCollection(Ljava/lang/Object;)Z
      intermediary method_19948 Lnet/minecraft/class_4095;method_19948(Ljava/lang/Object;)Z
      official a Lbuq;a(Ljava/lang/Object;)Z
    • indexTaskList

      ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexTaskList(int begin, ImmutableList<? extends Task<? super E>> tasks)
      Parameters:
      begin - the beginning of the index of tasks, exclusive
      Mappings:
      Namespace Name Mixin selector
      named indexTaskList Lnet/minecraft/entity/ai/brain/Brain;indexTaskList(ILcom/google/common/collect/ImmutableList;)Lcom/google/common/collect/ImmutableList;
      intermediary method_24524 Lnet/minecraft/class_4095;method_24524(ILcom/google/common/collect/ImmutableList;)Lcom/google/common/collect/ImmutableList;
      official a Lbuq;a(ILcom/google/common/collect/ImmutableList;)Lcom/google/common/collect/ImmutableList;