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<Boolean> |
ADMIRING_DISABLED |
static MemoryKey<Boolean> |
ADMIRING_ITEM |
static MemoryKey<UUID> |
ANGRY_AT |
static MemoryKey<Boolean> |
GOLEM_DETECTED_RECENTLY |
static MemoryKey<Location> |
HOME |
static MemoryKey<Boolean> |
HUNTED_RECENTLY |
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 |
static MemoryKey<Location> |
POTENTIAL_JOB_SITE |
static MemoryKey<Boolean> |
UNIVERSAL_ANGER |
Modifier and Type | Method and 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
MemoryKey
MemoryKey
or null when no MemoryKey
is
available under that keyCopyright © 2021. All rights reserved.