Package net.minecraft.entity.ai.brain
Class Brain<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.Brain<E>
public class Brain<E extends LivingEntity> extends Object
- Mappings:
Namespace Name official asc
intermediary net/minecraft/class_4095
named net/minecraft/entity/ai/brain/Brain
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Brain.MemoryEntry<U>
static class
Brain.Profile<E extends LivingEntity>
A simple profile of a brain. -
Field Summary
Fields Modifier and Type Field Description private long
activityStartTime
private Supplier<com.mojang.serialization.Codec<Brain<E>>>
codecSupplier
private Set<Activity>
coreActivities
private Activity
defaultActivity
private Map<Activity,Set<MemoryModuleType<?>>>
forgettingActivityMemories
The map from activities to the memories to forget after the activity is completed.private static Logger
LOGGER
private Map<MemoryModuleType<?>,Optional<? extends Memory<?>>>
memories
private Set<Activity>
possibleActivities
private Map<Activity,Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>,MemoryModuleState>>>
requiredActivityMemories
private Schedule
schedule
private Map<SensorType<? extends Sensor<? super E>>,Sensor<? super E>>
sensors
private Map<Integer,Map<Activity,Set<Task<? super E>>>>
tasks
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
Modifier and Type Method Description private boolean
canDoActivity(Activity activity)
Brain<E>
copy()
static <E extends LivingEntity>
com.mojang.serialization.Codec<Brain<E>>createBrainCodec(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)
static <E extends LivingEntity>
Brain.Profile<E>createProfile(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)
void
doExclusively(Activity activity)
<T> com.mojang.serialization.DataResult<T>
encode(com.mojang.serialization.DynamicOps<T> ops)
<U> void
forget(MemoryModuleType<U> type)
private void
forgetIrrelevantMemories(Activity except)
Optional<Activity>
getFirstPossibleNonCoreActivity()
<U> Optional<U>
getOptionalMemory(MemoryModuleType<U> type)
List<Task<? super E>>
getRunningTasks()
Deprecated.Schedule
getSchedule()
boolean
hasActivity(Activity activity)
boolean
hasMemoryModule(MemoryModuleType<?> type)
<U> boolean
hasMemoryModuleWithValue(MemoryModuleType<U> type, U value)
(package private) ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>>
indexTaskList(int begin, ImmutableList<? extends Task<? super E>> tasks)
private boolean
isEmptyCollection(Object value)
boolean
isMemoryInState(MemoryModuleType<?> type, MemoryModuleState state)
void
refreshActivities(long timeOfDay, long time)
<U> void
remember(MemoryModuleType<U> type, Optional<? extends U> value)
<U> void
remember(MemoryModuleType<U> type, U value)
<U> void
remember(MemoryModuleType<U> type, U value, long startTime)
void
resetPossibleActivities()
void
resetPossibleActivities(List<Activity> list)
private void
resetPossibleActivities(Activity except)
void
setCoreActivities(Set<Activity> coreActivities)
void
setDefaultActivity(Activity activity)
private <U> void
setMemory(MemoryModuleType<U> type, Optional<? extends Memory<?>> memory)
void
setSchedule(Schedule schedule)
void
setTaskList(Activity activity, int begin, ImmutableList<? extends Task<? super E>> list)
void
setTaskList(Activity activity, int begin, ImmutableList<? extends Task<? super E>> tasks, MemoryModuleType<?> memoryType)
void
setTaskList(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexedTasks)
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)
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)
private void
startTasks(ServerWorld world, E entity)
void
stopAllTasks(ServerWorld world, E entity)
private Stream<Brain.MemoryEntry<?>>
streamMemories()
void
tick(ServerWorld world, E entity)
private void
tickMemories()
private void
tickSensors(ServerWorld world, E entity)
private void
updateTasks(ServerWorld world, E entity)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lasc;a:Lorg/apache/logging/log4j/Logger;
intermediary field_24656
Lnet/minecraft/class_4095;field_24656:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/entity/ai/brain/Brain;LOGGER:Lorg/apache/logging/log4j/Logger;
-
codecSupplier
- Mappings:
Namespace Name Mixin selector official b
Lasc;b:Ljava/util/function/Supplier;
intermediary field_24657
Lnet/minecraft/class_4095;field_24657:Ljava/util/function/Supplier;
named codecSupplier
Lnet/minecraft/entity/ai/brain/Brain;codecSupplier:Ljava/util/function/Supplier;
-
memories
- Mappings:
Namespace Name Mixin selector official c
Lasc;c:Ljava/util/Map;
intermediary field_18322
Lnet/minecraft/class_4095;field_18322:Ljava/util/Map;
named memories
Lnet/minecraft/entity/ai/brain/Brain;memories: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 official d
Lasc;d:Ljava/util/Map;
intermediary field_18323
Lnet/minecraft/class_4095;field_18323:Ljava/util/Map;
named sensors
Lnet/minecraft/entity/ai/brain/Brain;sensors:Ljava/util/Map;
-
tasks
- Mappings:
Namespace Name Mixin selector official e
Lasc;e:Ljava/util/Map;
intermediary field_18324
Lnet/minecraft/class_4095;field_18324:Ljava/util/Map;
named tasks
Lnet/minecraft/entity/ai/brain/Brain;tasks:Ljava/util/Map;
-
schedule
- Mappings:
Namespace Name Mixin selector official f
Lasc;f:Lbiw;
intermediary field_18325
Lnet/minecraft/class_4095;field_18325:Lnet/minecraft/class_4170;
named schedule
Lnet/minecraft/entity/ai/brain/Brain;schedule:Lnet/minecraft/entity/ai/brain/Schedule;
-
requiredActivityMemories
private final Map<Activity,Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>,MemoryModuleState>>> requiredActivityMemories- Mappings:
Namespace Name Mixin selector official g
Lasc;g:Ljava/util/Map;
intermediary field_18326
Lnet/minecraft/class_4095;field_18326:Ljava/util/Map;
named requiredActivityMemories
Lnet/minecraft/entity/ai/brain/Brain;requiredActivityMemories:Ljava/util/Map;
-
forgettingActivityMemories
The map from activities to the memories to forget after the activity is completed.- Mappings:
Namespace Name Mixin selector official h
Lasc;h:Ljava/util/Map;
intermediary field_22282
Lnet/minecraft/class_4095;field_22282:Ljava/util/Map;
named forgettingActivityMemories
Lnet/minecraft/entity/ai/brain/Brain;forgettingActivityMemories:Ljava/util/Map;
-
coreActivities
- Mappings:
Namespace Name Mixin selector official i
Lasc;i:Ljava/util/Set;
intermediary field_18327
Lnet/minecraft/class_4095;field_18327:Ljava/util/Set;
named coreActivities
Lnet/minecraft/entity/ai/brain/Brain;coreActivities:Ljava/util/Set;
-
possibleActivities
- Mappings:
Namespace Name Mixin selector official j
Lasc;j:Ljava/util/Set;
intermediary field_18328
Lnet/minecraft/class_4095;field_18328:Ljava/util/Set;
named possibleActivities
Lnet/minecraft/entity/ai/brain/Brain;possibleActivities:Ljava/util/Set;
-
defaultActivity
- Mappings:
Namespace Name Mixin selector official k
Lasc;k:Lbiu;
intermediary field_18329
Lnet/minecraft/class_4095;field_18329:Lnet/minecraft/class_4168;
named defaultActivity
Lnet/minecraft/entity/ai/brain/Brain;defaultActivity:Lnet/minecraft/entity/ai/brain/Activity;
-
activityStartTime
private long activityStartTime- Mappings:
Namespace Name Mixin selector official l
Lasc;l:J
intermediary field_18853
Lnet/minecraft/class_4095;field_18853:J
named activityStartTime
Lnet/minecraft/entity/ai/brain/Brain;activityStartTime: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 official <init>
Lasc;<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
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
-
-
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 official a
Lasc;a(Ljava/util/Collection;Ljava/util/Collection;)Lasc$b;
intermediary method_28311
Lnet/minecraft/class_4095;method_28311(Ljava/util/Collection;Ljava/util/Collection;)Lnet/minecraft/class_4095$class_5303;
named createProfile
Lnet/minecraft/entity/ai/brain/Brain;createProfile(Ljava/util/Collection;Ljava/util/Collection;)Lnet/minecraft/entity/ai/brain/Brain$Profile;
-
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 official b
Lasc;b(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;
named createBrainCodec
Lnet/minecraft/entity/ai/brain/Brain;createBrainCodec(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 official a
Lasc;a(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;
named encode
Lnet/minecraft/entity/ai/brain/Brain;encode(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
-
streamMemories
- Mappings:
Namespace Name Mixin selector official j
Lasc;j()Ljava/util/stream/Stream;
intermediary method_28315
Lnet/minecraft/class_4095;method_28315()Ljava/util/stream/Stream;
named streamMemories
Lnet/minecraft/entity/ai/brain/Brain;streamMemories()Ljava/util/stream/Stream;
-
hasMemoryModule
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lazf;)Z
intermediary method_18896
Lnet/minecraft/class_4095;method_18896(Lnet/minecraft/class_4140;)Z
named hasMemoryModule
Lnet/minecraft/entity/ai/brain/Brain;hasMemoryModule(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Z
-
forget
- Mappings:
Namespace Name Mixin selector official b
Lasc;b(Lazf;)V
intermediary method_18875
Lnet/minecraft/class_4095;method_18875(Lnet/minecraft/class_4140;)V
named forget
Lnet/minecraft/entity/ai/brain/Brain;forget(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lazf;Ljava/lang/Object;)V
intermediary method_18878
Lnet/minecraft/class_4095;method_18878(Lnet/minecraft/class_4140;Ljava/lang/Object;)V
named remember
Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;)V
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lazf;Ljava/lang/Object;J)V
intermediary method_24525
Lnet/minecraft/class_4095;method_24525(Lnet/minecraft/class_4140;Ljava/lang/Object;J)V
named remember
Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;J)V
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lazf;Ljava/util/Optional;)V
intermediary method_18879
Lnet/minecraft/class_4095;method_18879(Lnet/minecraft/class_4140;Ljava/util/Optional;)V
named remember
Lnet/minecraft/entity/ai/brain/Brain;remember(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)V
-
setMemory
- Mappings:
Namespace Name Mixin selector official b
Lasc;b(Lazf;Ljava/util/Optional;)V
intermediary method_24535
Lnet/minecraft/class_4095;method_24535(Lnet/minecraft/class_4140;Ljava/util/Optional;)V
named setMemory
Lnet/minecraft/entity/ai/brain/Brain;setMemory(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)V
-
getOptionalMemory
- Mappings:
Namespace Name Mixin selector official c
Lasc;c(Lazf;)Ljava/util/Optional;
intermediary method_18904
Lnet/minecraft/class_4095;method_18904(Lnet/minecraft/class_4140;)Ljava/util/Optional;
named getOptionalMemory
Lnet/minecraft/entity/ai/brain/Brain;getOptionalMemory(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Optional;
-
hasMemoryModuleWithValue
- Mappings:
Namespace Name Mixin selector official b
Lasc;b(Lazf;Ljava/lang/Object;)Z
intermediary method_29519
Lnet/minecraft/class_4095;method_29519(Lnet/minecraft/class_4140;Ljava/lang/Object;)Z
named hasMemoryModuleWithValue
Lnet/minecraft/entity/ai/brain/Brain;hasMemoryModuleWithValue(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/lang/Object;)Z
-
isMemoryInState
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lazf;Lazg;)Z
intermediary method_18876
Lnet/minecraft/class_4095;method_18876(Lnet/minecraft/class_4140;Lnet/minecraft/class_4141;)Z
named isMemoryInState
Lnet/minecraft/entity/ai/brain/Brain;isMemoryInState(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleState;)Z
-
getSchedule
- Mappings:
Namespace Name Mixin selector official b
Lasc;b()Lbiw;
intermediary method_18894
Lnet/minecraft/class_4095;method_18894()Lnet/minecraft/class_4170;
named getSchedule
Lnet/minecraft/entity/ai/brain/Brain;getSchedule()Lnet/minecraft/entity/ai/brain/Schedule;
-
setSchedule
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lbiw;)V
intermediary method_18884
Lnet/minecraft/class_4095;method_18884(Lnet/minecraft/class_4170;)V
named setSchedule
Lnet/minecraft/entity/ai/brain/Brain;setSchedule(Lnet/minecraft/entity/ai/brain/Schedule;)V
-
setCoreActivities
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Ljava/util/Set;)V
intermediary method_18890
Lnet/minecraft/class_4095;method_18890(Ljava/util/Set;)V
named setCoreActivities
Lnet/minecraft/entity/ai/brain/Brain;setCoreActivities(Ljava/util/Set;)V
-
getRunningTasks
Deprecated.- Mappings:
Namespace Name Mixin selector official d
Lasc;d()Ljava/util/List;
intermediary method_27074
Lnet/minecraft/class_4095;method_27074()Ljava/util/List;
named getRunningTasks
Lnet/minecraft/entity/ai/brain/Brain;getRunningTasks()Ljava/util/List;
-
resetPossibleActivities
public void resetPossibleActivities()- Mappings:
Namespace Name Mixin selector official e
Lasc;e()V
intermediary method_24536
Lnet/minecraft/class_4095;method_24536()V
named resetPossibleActivities
Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities()V
-
getFirstPossibleNonCoreActivity
- Mappings:
Namespace Name Mixin selector official f
Lasc;f()Ljava/util/Optional;
intermediary method_24538
Lnet/minecraft/class_4095;method_24538()Ljava/util/Optional;
named getFirstPossibleNonCoreActivity
Lnet/minecraft/entity/ai/brain/Brain;getFirstPossibleNonCoreActivity()Ljava/util/Optional;
-
doExclusively
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lbiu;)V
intermediary method_24526
Lnet/minecraft/class_4095;method_24526(Lnet/minecraft/class_4168;)V
named doExclusively
Lnet/minecraft/entity/ai/brain/Brain;doExclusively(Lnet/minecraft/entity/ai/brain/Activity;)V
-
resetPossibleActivities
- Mappings:
Namespace Name Mixin selector official d
Lasc;d(Lbiu;)V
intermediary method_18880
Lnet/minecraft/class_4095;method_18880(Lnet/minecraft/class_4168;)V
named resetPossibleActivities
Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities(Lnet/minecraft/entity/ai/brain/Activity;)V
-
forgetIrrelevantMemories
- Mappings:
Namespace Name Mixin selector official e
Lasc;e(Lbiu;)V
intermediary method_24537
Lnet/minecraft/class_4095;method_24537(Lnet/minecraft/class_4168;)V
named forgetIrrelevantMemories
Lnet/minecraft/entity/ai/brain/Brain;forgetIrrelevantMemories(Lnet/minecraft/entity/ai/brain/Activity;)V
-
refreshActivities
public void refreshActivities(long timeOfDay, long time)- Mappings:
Namespace Name Mixin selector official a
Lasc;a(JJ)V
intermediary method_18871
Lnet/minecraft/class_4095;method_18871(JJ)V
named refreshActivities
Lnet/minecraft/entity/ai/brain/Brain;refreshActivities(JJ)V
-
resetPossibleActivities
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Ljava/util/List;)V
intermediary method_24531
Lnet/minecraft/class_4095;method_24531(Ljava/util/List;)V
named resetPossibleActivities
Lnet/minecraft/entity/ai/brain/Brain;resetPossibleActivities(Ljava/util/List;)V
-
setDefaultActivity
- Mappings:
Namespace Name Mixin selector official b
Lasc;b(Lbiu;)V
intermediary method_18897
Lnet/minecraft/class_4095;method_18897(Lnet/minecraft/class_4168;)V
named setDefaultActivity
Lnet/minecraft/entity/ai/brain/Brain;setDefaultActivity(Lnet/minecraft/entity/ai/brain/Activity;)V
-
setTaskList
public void setTaskList(Activity activity, int begin, ImmutableList<? extends Task<? super E>> list)- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lbiu;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
named setTaskList
Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;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 official a
Lasc;a(Lbiu;ILcom/google/common/collect/ImmutableList;Lazf;)V
intermediary method_24527
Lnet/minecraft/class_4095;method_24527(Lnet/minecraft/class_4168;ILcom/google/common/collect/ImmutableList;Lnet/minecraft/class_4140;)V
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
-
setTaskList
public void setTaskList(Activity activity, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer,? extends Task<? super E>>> indexedTasks)- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Lbiu;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
named setTaskList
Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;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 official a
Lasc;a(Lbiu;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
named setTaskList
Lnet/minecraft/entity/ai/brain/Brain;setTaskList(Lnet/minecraft/entity/ai/brain/Activity;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 official a
Lasc;a(Lbiu;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
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
-
hasActivity
- Mappings:
Namespace Name Mixin selector official c
Lasc;c(Lbiu;)Z
intermediary method_18906
Lnet/minecraft/class_4095;method_18906(Lnet/minecraft/class_4168;)Z
named hasActivity
Lnet/minecraft/entity/ai/brain/Brain;hasActivity(Lnet/minecraft/entity/ai/brain/Activity;)Z
-
copy
- Mappings:
Namespace Name Mixin selector official h
Lasc;h()Lasc;
intermediary method_18911
Lnet/minecraft/class_4095;method_18911()Lnet/minecraft/class_4095;
named copy
Lnet/minecraft/entity/ai/brain/Brain;copy()Lnet/minecraft/entity/ai/brain/Brain;
-
tick
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Laav;Lari;)V
intermediary method_19542
Lnet/minecraft/class_4095;method_19542(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named tick
Lnet/minecraft/entity/ai/brain/Brain;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
tickSensors
- Mappings:
Namespace Name Mixin selector official c
Lasc;c(Laav;Lari;)V
intermediary method_27073
Lnet/minecraft/class_4095;method_27073(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named tickSensors
Lnet/minecraft/entity/ai/brain/Brain;tickSensors(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
tickMemories
private void tickMemories()- Mappings:
Namespace Name Mixin selector official k
Lasc;k()V
intermediary method_27075
Lnet/minecraft/class_4095;method_27075()V
named tickMemories
Lnet/minecraft/entity/ai/brain/Brain;tickMemories()V
-
stopAllTasks
- Mappings:
Namespace Name Mixin selector official b
Lasc;b(Laav;Lari;)V
intermediary method_18900
Lnet/minecraft/class_4095;method_18900(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named stopAllTasks
Lnet/minecraft/entity/ai/brain/Brain;stopAllTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
startTasks
- Mappings:
Namespace Name Mixin selector official d
Lasc;d(Laav;Lari;)V
intermediary method_18891
Lnet/minecraft/class_4095;method_18891(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named startTasks
Lnet/minecraft/entity/ai/brain/Brain;startTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
updateTasks
- Mappings:
Namespace Name Mixin selector official e
Lasc;e(Laav;Lari;)V
intermediary method_19545
Lnet/minecraft/class_4095;method_19545(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
named updateTasks
Lnet/minecraft/entity/ai/brain/Brain;updateTasks(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
-
canDoActivity
- Mappings:
Namespace Name Mixin selector official f
Lasc;f(Lbiu;)Z
intermediary method_18874
Lnet/minecraft/class_4095;method_18874(Lnet/minecraft/class_4168;)Z
named canDoActivity
Lnet/minecraft/entity/ai/brain/Brain;canDoActivity(Lnet/minecraft/entity/ai/brain/Activity;)Z
-
isEmptyCollection
- Mappings:
Namespace Name Mixin selector official a
Lasc;a(Ljava/lang/Object;)Z
intermediary method_19948
Lnet/minecraft/class_4095;method_19948(Ljava/lang/Object;)Z
named isEmptyCollection
Lnet/minecraft/entity/ai/brain/Brain;isEmptyCollection(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 official a
Lasc;a(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;
named indexTaskList
Lnet/minecraft/entity/ai/brain/Brain;indexTaskList(ILcom/google/common/collect/ImmutableList;)Lcom/google/common/collect/ImmutableList;
-