yarn/mappings/net/minecraft/entity/ai/brain/MemoryQuery.mapping

25 lines
1.3 KiB
Plaintext

CLASS net/minecraft/class_7907 net/minecraft/entity/ai/brain/MemoryQuery
COMMENT A query of an entity's brain. There are three types, with each querying a different
COMMENT value. If a query fails, the task does not run.
COMMENT
COMMENT @see MemoryQueryResult
COMMENT @see net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext
METHOD method_47253 toQueryResult (Lnet/minecraft/class_4095;Ljava/util/Optional;)Lnet/minecraft/class_7906;
ARG 1 brain
ARG 2 value
METHOD method_47254 getState ()Lnet/minecraft/class_4141;
CLASS class_7908 Absent
COMMENT A query that succeeds if a value is <strong>not</strong> present in the memory. The
COMMENT query result is always {@code Unit.INSTANCE}.
COMMENT
COMMENT @see net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext#queryMemoryAbsent
CLASS class_7909 Value
COMMENT A query that succeeds if a value is present in the memory. The result is the queried value.
COMMENT
COMMENT @see net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext#queryMemoryValue
CLASS class_7910 Optional
COMMENT A query that always succeeds. The value is an optional that contains the value if it
COMMENT is present in the memory.
COMMENT
COMMENT @see net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext#queryMemoryOptional