Package net.minecraft.entity.ai.brain
Interface MemoryQuery<F extends com.mojang.datafixers.kinds.K1,Value>
- All Known Implementing Classes:
MemoryQuery.Absent
,MemoryQuery.Optional
,MemoryQuery.Value
public interface MemoryQuery<F extends com.mojang.datafixers.kinds.K1,Value>
A query of an entity's brain. There are three types, with each querying a different
value. If a query fails, the task does not run.
- See Also:
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/MemoryQuery
intermediary net/minecraft/class_7907
official byz
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
A query that succeeds if a value is not present in the memory.static final record
A query that always succeeds.static final record
A query that succeeds if a value is present in the memory. -
Method Summary
Modifier and TypeMethodDescriptiongetState()
memory()
toQueryResult
(Brain<?> brain, Optional<MemoryQuery.Value> value)
-
Method Details
-
memory
MemoryModuleType<MemoryQuery.Value> memory()- Mappings:
Namespace Name Mixin selector named memory
Lnet/minecraft/entity/ai/brain/MemoryQuery;memory()Lnet/minecraft/entity/ai/brain/MemoryModuleType;
intermediary comp_1151
Lnet/minecraft/class_7907;comp_1151()Lnet/minecraft/class_4140;
official a
Lbyz;a()Lccv;
-
getState
MemoryModuleState getState()- Mappings:
Namespace Name Mixin selector named getState
Lnet/minecraft/entity/ai/brain/MemoryQuery;getState()Lnet/minecraft/entity/ai/brain/MemoryModuleState;
intermediary method_47254
Lnet/minecraft/class_7907;method_47254()Lnet/minecraft/class_4141;
official b
Lbyz;b()Lccw;
-
toQueryResult
@Nullable @Nullable MemoryQueryResult<F,MemoryQuery.Value> toQueryResult(Brain<?> brain, Optional<MemoryQuery.Value> value) - Mappings:
Namespace Name Mixin selector named toQueryResult
Lnet/minecraft/entity/ai/brain/MemoryQuery;toQueryResult(Lnet/minecraft/entity/ai/brain/Brain;Ljava/util/Optional;)Lnet/minecraft/entity/ai/brain/MemoryQueryResult;
intermediary method_47253
Lnet/minecraft/class_7907;method_47253(Lnet/minecraft/class_4095;Ljava/util/Optional;)Lnet/minecraft/class_7906;
official a
Lbyz;a(Lbut;Ljava/util/Optional;)Lbyy;
-