T
- the class type of the memory valueKeyed
public final class MemoryKey<T> extends Object implements Keyed
LivingEntity
.Modifier and Type | Field | Description |
---|---|---|
static MemoryKey<Location> |
HOME |
|
static MemoryKey<Location> |
JOB_SITE |
|
static MemoryKey<Long> |
LAST_SLEPT |
|
static MemoryKey<Long> |
LAST_WOKEN |
|
static MemoryKey<Long> |
LAST_WORKED_AT_POI |
|
static MemoryKey<Location> |
MEETING_POINT |
Modifier and Type | Method | 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 © 2019. All rights reserved.