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
public final class MemoryKey<T> extends Object implements Keyed
Represents a key used for accessing memory values of a
LivingEntity.-
Field Summary
Fields Modifier and Type Field Description static MemoryKey<Boolean>ADMIRING_DISABLEDstatic MemoryKey<Boolean>ADMIRING_ITEMstatic MemoryKey<UUID>ANGRY_ATstatic MemoryKey<Boolean>GOLEM_DETECTED_RECENTLYstatic MemoryKey<Location>HOMEstatic MemoryKey<Boolean>HUNTED_RECENTLYstatic MemoryKey<Location>JOB_SITEstatic MemoryKey<Long>LAST_SLEPTstatic MemoryKey<Long>LAST_WOKENstatic MemoryKey<Long>LAST_WORKED_AT_POIstatic MemoryKey<Location>MEETING_POINTstatic MemoryKey<Location>POTENTIAL_JOB_SITEstatic MemoryKey<Boolean>UNIVERSAL_ANGER -
Method Summary
Modifier and Type Method Description static MemoryKeygetByKey(NamespacedKey namespacedKey)Returns aMemoryKeyby aNamespacedKey.NamespacedKeygetKey()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.
-
Field Details
-
Method Details
-
getKey
Description copied from interface:KeyedReturn the namespaced identifier for this object. -
getMemoryClass
Gets the class of values associated with this memory.- Returns:
- the class of value objects
-
getByKey
Returns aMemoryKeyby aNamespacedKey.- Parameters:
namespacedKey- theNamespacedKeyreferencing aMemoryKey- Returns:
- the
MemoryKeyor null when noMemoryKeyis available under that key
-
values
Returns the set of all MemoryKeys.- Returns:
- the memoryKeys
-