Package net.minecraft.entity.ai.brain
Record Class MemoryQuery.Absent<Value>
java.lang.Object
java.lang.Record
net.minecraft.entity.ai.brain.MemoryQuery.Absent<Value>
- Record Components:
memory
-
- All Implemented Interfaces:
MemoryQuery<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,
Value>
- Enclosing interface:
MemoryQuery<F extends com.mojang.datafixers.kinds.K1,
Value>
public static record MemoryQuery.Absent<Value>(MemoryModuleType<Value> memory)
extends Record
implements MemoryQuery<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,Value>
A query that succeeds if a value is not present in the memory. The
query result is always
Unit.INSTANCE
.- See Also:
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/MemoryQuery$Absent
intermediary net/minecraft/class_7907$class_7908
official byz$a
named memory
intermediary comp_1151
official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.entity.ai.brain.MemoryQuery
MemoryQuery.Absent<Value>, MemoryQuery.Optional<Value>, MemoryQuery.Value<Value>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MemoryModuleType
<Value> The field for thememory
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getState()
final int
hashCode()
Returns a hash code value for this object.memory()
Returns the value of thememory
record component.MemoryQueryResult
<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>, Value> toQueryResult
(Brain<?> brain, Optional<Value> value) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.entity.ai.brain.MemoryQuery
toQueryResult
-
Field Details
-
memory
The field for thememory
record component.
-
-
Constructor Details
-
Absent
-
-
Method Details
-
getState
- Specified by:
getState
in interfaceMemoryQuery<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,
Value> - 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
public MemoryQueryResult<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,Value> toQueryResult(Brain<?> brain, Optional<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;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
memory
Returns the value of thememory
record component.- Specified by:
memory
in interfaceMemoryQuery<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,
Value> - Returns:
- the value of the
memory
record component
-