Package net.minecraft.world.entity.ai
Class Brain.MemoryValue<U>
java.lang.Object
net.minecraft.world.entity.ai.Brain.MemoryValue<U>
- Enclosing class:
- Brain<E extends LivingEntity>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MemoryModuleType<U>
private final Optional<? extends ExpirableValue<U>>
-
Constructor Summary
ConstructorDescriptionMemoryValue
(MemoryModuleType<U> p_22033_, Optional<? extends ExpirableValue<U>> p_22034_) -
Method Summary
Modifier and TypeMethodDescription(package private) static <U> Brain.MemoryValue<U>
createUnchecked
(MemoryModuleType<U> p_22060_, Optional<? extends ExpirableValue<?>> p_22061_) <T> void
serialize
(com.mojang.serialization.DynamicOps<T> p_22048_, com.mojang.serialization.RecordBuilder<T> p_22049_) (package private) void
setMemoryInternal
(Brain<?> p_22043_)
-
Field Details
-
type
-
value
-
-
Constructor Details
-
MemoryValue
MemoryValue(MemoryModuleType<U> p_22033_, Optional<? extends ExpirableValue<U>> p_22034_)
-
-
Method Details
-
createUnchecked
static <U> Brain.MemoryValue<U> createUnchecked(MemoryModuleType<U> p_22060_, Optional<? extends ExpirableValue<?>> p_22061_) -
setMemoryInternal
-
serialize
public <T> void serialize(com.mojang.serialization.DynamicOps<T> p_22048_, com.mojang.serialization.RecordBuilder<T> p_22049_)
-