Package org.bukkit.entity.memory
Class MemoryKey<T>
java.lang.Object
org.bukkit.entity.memory.MemoryKey<T>
- Type Parameters:
T
- the class type of the memory value
- All Implemented Interfaces:
Keyed
Represents a key used for accessing memory values of a
LivingEntity
.-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptiongetByKey(@NotNull NamespacedKey namespacedKey)
Returns aMemoryKey
by aNamespacedKey
.getKey()
Return the namespaced identifier for this object.Gets the class of values associated with this memory.values()
Returns the set of all MemoryKeys.
-
Field Details
-
HOME
-
POTENTIAL_JOB_SITE
-
JOB_SITE
-
MEETING_POINT
-
GOLEM_DETECTED_RECENTLY
-
LAST_SLEPT
-
LAST_WOKEN
-
LAST_WORKED_AT_POI
-
UNIVERSAL_ANGER
-
ANGRY_AT
-
ADMIRING_ITEM
-
ADMIRING_DISABLED
-
HUNTED_RECENTLY
-
-
Method Details
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object. -
getMemoryClass
Gets the class of values associated with this memory.- Returns:
- the class of value objects
-
getByKey
@Nullable public static @Nullable MemoryKey getByKey(@NotNull @NotNull NamespacedKey namespacedKey)Returns aMemoryKey
by aNamespacedKey
.- Parameters:
namespacedKey
- theNamespacedKey
referencing aMemoryKey
- Returns:
- the
MemoryKey
or null when noMemoryKey
is available under that key
-
values
Returns the set of all MemoryKeys.- Returns:
- the memoryKeys
-