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 official ble
intermediary net/minecraft/class_7906
named net/minecraft/entity/ai/brain/MemoryQueryResult
-
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 official a
Lble;a:Lbha;
intermediary field_41025
Lnet/minecraft/class_7906;field_41025:Lnet/minecraft/class_4095;
named brain
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;brain:Lnet/minecraft/entity/ai/brain/Brain;
-
memory
- Mappings:
Namespace Name Mixin selector official b
Lble;b:Lbpb;
intermediary field_41026
Lnet/minecraft/class_7906;field_41026:Lnet/minecraft/class_4140;
named memory
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;memory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
value
- Mappings:
Namespace Name Mixin selector official c
Lble;c:Lcom/mojang/datafixers/kinds/App;
intermediary field_41027
Lnet/minecraft/class_7906;field_41027:Lcom/mojang/datafixers/kinds/App;
named value
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;value: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 official <init>
Lble;<init>(Lbha;Lbpb;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
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
-
-
Method Details
-
getValue
- Mappings:
Namespace Name Mixin selector official a
Lble;a()Lcom/mojang/datafixers/kinds/App;
intermediary method_47248
Lnet/minecraft/class_7906;method_47248()Lcom/mojang/datafixers/kinds/App;
named getValue
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;getValue()Lcom/mojang/datafixers/kinds/App;
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lble;a(Ljava/lang/Object;)V
intermediary method_47249
Lnet/minecraft/class_7906;method_47249(Ljava/lang/Object;)V
named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/lang/Object;)V
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lble;a(Ljava/util/Optional;)V
intermediary method_47251
Lnet/minecraft/class_7906;method_47251(Ljava/util/Optional;)V
named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/util/Optional;)V
-
remember
- Mappings:
Namespace Name Mixin selector official a
Lble;a(Ljava/lang/Object;J)V
intermediary method_47250
Lnet/minecraft/class_7906;method_47250(Ljava/lang/Object;J)V
named remember
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;remember(Ljava/lang/Object;J)V
-
forget
public void forget()- Mappings:
Namespace Name Mixin selector official b
Lble;b()V
intermediary method_47252
Lnet/minecraft/class_7906;method_47252()V
named forget
Lnet/minecraft/entity/ai/brain/MemoryQueryResult;forget()V
-