T - the class type of the memory valueKeyedpublic 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 @Nullable MemoryKey |
getByKey(@NotNull NamespacedKey namespacedKey) |
Returns a
MemoryKey by a NamespacedKey. |
@NotNull NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
@NotNull Class<T> |
getMemoryClass() |
Gets the class of values associated with this memory.
|
static @NotNull Set<MemoryKey> |
values() |
Returns the set of all MemoryKeys.
|
@NotNull public @NotNull NamespacedKey getKey()
Keyed@NotNull public @NotNull Class<T> getMemoryClass()
@Nullable public static @Nullable MemoryKey getByKey(@NotNull @NotNull NamespacedKey namespacedKey)
MemoryKey by a NamespacedKey.namespacedKey - the NamespacedKey referencing a
MemoryKeyMemoryKey or null when no MemoryKey is
available under that keyCopyright © 2020. All rights reserved.