Package net.minecraft.entity.ai.brain
Class MemoryQueryResult<F extends com.mojang.datafixers.kinds.K1,Value>
java.lang.Object
net.minecraft.entity.ai.brain.MemoryQueryResult<F,Value>
The result of a
MemoryQuery
. This is passed as a lambda argument to
TaskTriggerer.task(java.util.function.Function<net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext<E>, ? extends com.mojang.datafixers.kinds.App<net.minecraft.entity.ai.brain.task.TaskTriggerer.K1<E>, net.minecraft.entity.ai.brain.task.TaskRunnable<E>>>)
. Use
TaskTriggerer.TaskContext.getValue(net.minecraft.entity.ai.brain.MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu, Value>)
to
get the value.
It is also possible to set or forget the stored memory value using methods in this class.
- See Also:
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/MemoryQueryResult
intermediary net/minecraft/class_7906
official byt
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMemoryQueryResult
(Brain<?> brain, MemoryModuleType<Value> memory, com.mojang.datafixers.kinds.App<F, Value> value) -
Method Summary
-
Field Details
-
brain
- Mappings:
Namespace Name Mixin selector named brain
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;brain:Lnet/minecraft/entity/ai/brain/Brain;
intermediary field_41025
Lnet/minecraft/class_7906;field_41025:Lnet/minecraft/class_4095;
official a
Lbyt;a:Lbuo;
-
memory
- Mappings:
Namespace Name Mixin selector named memory
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;memory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
intermediary field_41026
Lnet/minecraft/class_7906;field_41026:Lnet/minecraft/class_4140;
official b
Lbyt;b:Lccq;
-
value
- Mappings:
Namespace Name Mixin selector named value
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;value:Lcom/mojang/datafixers/kinds/App;
intermediary field_41027
Lnet/minecraft/class_7906;field_41027:Lcom/mojang/datafixers/kinds/App;
official c
Lbyt;c:Lcom/mojang/datafixers/kinds/App;
-
-
Constructor Details
-
MemoryQueryResult
public MemoryQueryResult(Brain<?> brain, MemoryModuleType<Value> memory, com.mojang.datafixers.kinds.App<F, Value> value) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;<init>(Lnet/minecraft/entity/ai/brain/Brain;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lcom/mojang/datafixers/kinds/App;)V
intermediary <init>
Lnet/minecraft/class_7906;<init>(Lnet/minecraft/class_4095;Lnet/minecraft/class_4140;Lcom/mojang/datafixers/kinds/App;)V
official <init>
Lbyt;<init>(Lbuo;Lccq;Lcom/mojang/datafixers/kinds/App;)V
-
-
Method Details
-
getValue
- Mappings:
Namespace Name Mixin selector named getValue
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;getValue()Lcom/mojang/datafixers/kinds/App;
intermediary method_47248
Lnet/minecraft/class_7906;method_47248()Lcom/mojang/datafixers/kinds/App;
official a
Lbyt;a()Lcom/mojang/datafixers/kinds/App;
-
remember
- Mappings:
Namespace Name Mixin selector named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/lang/Object;)V
intermediary method_47249
Lnet/minecraft/class_7906;method_47249(Ljava/lang/Object;)V
official a
Lbyt;a(Ljava/lang/Object;)V
-
remember
- Mappings:
Namespace Name Mixin selector named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/util/Optional;)V
intermediary method_47251
Lnet/minecraft/class_7906;method_47251(Ljava/util/Optional;)V
official a
Lbyt;a(Ljava/util/Optional;)V
-
remember
- Mappings:
Namespace Name Mixin selector named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/lang/Object;J)V
intermediary method_47250
Lnet/minecraft/class_7906;method_47250(Ljava/lang/Object;J)V
official a
Lbyt;a(Ljava/lang/Object;J)V
-
forget
public void forget()- Mappings:
Namespace Name Mixin selector named forget
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;forget()V
intermediary method_47252
Lnet/minecraft/class_7906;method_47252()V
official b
Lbyt;b()V
-