T
- the class type of the memory valuepublic final class MemoryKey<T> extends Object implements Keyed
LivingEntity
.Modifier and Type | Field and Description |
---|---|
static MemoryKey<Location> |
HOME |
static MemoryKey<Location> |
JOB_SITE |
static MemoryKey<Long> |
LAST_SLEPT |
static MemoryKey<Long> |
LAST_WORKED_AT_POI |
static MemoryKey<Location> |
MEETING_POINT |
Modifier and Type | Method and Description |
---|---|
static MemoryKey |
getByKey(NamespacedKey namespacedKey)
Returns a
MemoryKey by a NamespacedKey . |
NamespacedKey |
getKey()
Return the namespaced identifier for this object.
|
Class<T> |
getMemoryClass()
Gets the class of values associated with this memory.
|
static Set<MemoryKey> |
values()
Returns the set of all MemoryKeys.
|
@NotNull public NamespacedKey getKey()
Keyed
@NotNull public Class<T> getMemoryClass()
@Nullable public static MemoryKey getByKey(@NotNull NamespacedKey namespacedKey)
MemoryKey
by a NamespacedKey
.namespacedKey
- the NamespacedKey
referencing a
MemoryKey
MemoryKey
or null when no MemoryKey
is
available under that keyCopyright © 2022. All rights reserved.