Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.entity.memory |
Classes concerning an entity's persistent memory.
|
Modifier and Type | Field | Description |
---|---|---|
static Registry<MemoryKey> |
Registry.MEMORY_MODULE_TYPE |
Memory Keys.
|
Modifier and Type | Method | Description |
---|---|---|
<T> T |
LivingEntity.getMemory(@NotNull MemoryKey<T> memoryKey) |
Returns the value of the memory specified.
|
<T> void |
LivingEntity.setMemory(@NotNull MemoryKey<T> memoryKey,
T memoryValue) |
Sets the value of the memory specified.
|
Modifier and Type | Field | Description |
---|---|---|
static MemoryKey<Location> |
MemoryKey.HOME |
|
static MemoryKey<Location> |
MemoryKey.JOB_SITE |
|
static MemoryKey<Long> |
MemoryKey.LAST_SLEPT |
|
static MemoryKey<Long> |
MemoryKey.LAST_WOKEN |
|
static MemoryKey<Long> |
MemoryKey.LAST_WORKED_AT_POI |
|
static MemoryKey<Location> |
MemoryKey.MEETING_POINT |
Modifier and Type | Method | Description |
---|---|---|
static @Nullable MemoryKey |
MemoryKey.getByKey(@NotNull NamespacedKey namespacedKey) |
Returns a
MemoryKey by a NamespacedKey . |
Modifier and Type | Method | Description |
---|---|---|
static @NotNull Set<MemoryKey> |
MemoryKey.values() |
Returns the set of all MemoryKeys.
|
Copyright © 2020. All rights reserved.