程序包 org.bukkit.entity.memory

# 类 MemoryKey<T>

java.lang.Object
org.bukkit.entity.memory.MemoryKey<T>

类型参数:
  `T` - the class type of the memory value

所有已实现的接口:
  `Keyed`

public final class MemoryKey<T> extends Object implements Keyed
Represents a key used for accessing memory values of a `LivingEntity`.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final MemoryKey<Boolean>`
  `ADMIRING_DISABLED`
  `static final MemoryKey<Boolean>`
  `ADMIRING_ITEM`
  `static final MemoryKey<UUID>`
  `ANGRY_AT`
  `static final MemoryKey<Boolean>`
  `GOLEM_DETECTED_RECENTLY`
  `static final MemoryKey<Boolean>`
  `HAS_HUNTING_COOLDOWN`
  `static final MemoryKey<Location>`
  `HOME`
  `static final MemoryKey<Boolean>`
  `HUNTED_RECENTLY`
  `static final MemoryKey<Boolean>`
  `IS_TEMPTED`
  `static final MemoryKey<Integer>`
  `ITEM_PICKUP_COOLDOWN_TICKS`
  `static final MemoryKey<Location>`
  `JOB_SITE`
  `static final MemoryKey<Long>`
  `LAST_SLEPT`
  `static final MemoryKey<Long>`
  `LAST_WOKEN`
  `static final MemoryKey<Long>`
  `LAST_WORKED_AT_POI`
  `static final MemoryKey<Integer>`
  `LIKED_NOTEBLOCK_COOLDOWN_TICKS`
  `static final MemoryKey<Location>`
  `LIKED_NOTEBLOCK_POSITION`
  `static final MemoryKey<UUID>`
  `LIKED_PLAYER`
  `static final MemoryKey<Integer>`
  `LONG_JUMP_COOLING_DOWN`
  `static final MemoryKey<Location>`
  `MEETING_POINT`
  `static final MemoryKey<Integer>`
  `PLAY_DEAD_TICKS`
  `static final MemoryKey<Location>`
  `POTENTIAL_JOB_SITE`
  `static final MemoryKey<Integer>`
  `RAM_COOLDOWN_TICKS`
  `static final MemoryKey<Location>`
  `SNIFFER_EXPLORED_POSITIONS`
  `static final MemoryKey<Integer>`
  `TEMPTATION_COOLDOWN_TICKS`
  `static final MemoryKey<Boolean>`
  `UNIVERSAL_ANGER`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @Nullable MemoryKey`
  `getByKey(@NotNull NamespacedKey namespacedKey)`
  Returns a `MemoryKey` by a `NamespacedKey`.
  `@NotNull NamespacedKey`
  `getKey()`
  返回用于此对象的命名空间标识符.
  `@NotNull Class<T>`
  `getMemoryClass()`
  Gets the class of values associated with this memory.
  `static @NotNull Set<MemoryKey>`
  `values()`
  Returns the set of all MemoryKeys.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 字段详细资料

  - ### HOME

    public static final MemoryKey<Location> HOME

  - ### POTENTIAL_JOB_SITE

    public static final MemoryKey<Location> POTENTIAL_JOB_SITE

  - ### JOB_SITE

    public static final MemoryKey<Location> JOB_SITE

  - ### MEETING_POINT

    public static final MemoryKey<Location> MEETING_POINT

  - ### GOLEM_DETECTED_RECENTLY

    public static final MemoryKey<Boolean> GOLEM_DETECTED_RECENTLY

  - ### LAST_SLEPT

    public static final MemoryKey<Long> LAST_SLEPT

  - ### LAST_WOKEN

    public static final MemoryKey<Long> LAST_WOKEN

  - ### LAST_WORKED_AT_POI

    public static final MemoryKey<Long> LAST_WORKED_AT_POI

  - ### UNIVERSAL_ANGER

    public static final MemoryKey<Boolean> UNIVERSAL_ANGER

  - ### ANGRY_AT

    public static final MemoryKey<UUID> ANGRY_AT

  - ### ADMIRING_ITEM

    public static final MemoryKey<Boolean> ADMIRING_ITEM

  - ### ADMIRING_DISABLED

    public static final MemoryKey<Boolean> ADMIRING_DISABLED

  - ### HUNTED_RECENTLY

    public static final MemoryKey<Boolean> HUNTED_RECENTLY

  - ### PLAY_DEAD_TICKS

    public static final MemoryKey<Integer> PLAY_DEAD_TICKS

  - ### TEMPTATION_COOLDOWN_TICKS

    public static final MemoryKey<Integer> TEMPTATION_COOLDOWN_TICKS

  - ### IS_TEMPTED

    public static final MemoryKey<Boolean> IS_TEMPTED

  - ### LONG_JUMP_COOLING_DOWN

    public static final MemoryKey<Integer> LONG_JUMP_COOLING_DOWN

  - ### HAS_HUNTING_COOLDOWN

    public static final MemoryKey<Boolean> HAS_HUNTING_COOLDOWN

  - ### RAM_COOLDOWN_TICKS

    public static final MemoryKey<Integer> RAM_COOLDOWN_TICKS

  - ### LIKED_PLAYER

    public static final MemoryKey<UUID> LIKED_PLAYER

  - ### LIKED_NOTEBLOCK_POSITION

    public static final MemoryKey<Location> LIKED_NOTEBLOCK_POSITION

  - ### LIKED_NOTEBLOCK_COOLDOWN_TICKS

    public static final MemoryKey<Integer> LIKED_NOTEBLOCK_COOLDOWN_TICKS

  - ### ITEM_PICKUP_COOLDOWN_TICKS

    public static final MemoryKey<Integer> ITEM_PICKUP_COOLDOWN_TICKS

  - ### SNIFFER_EXPLORED_POSITIONS

    public static final MemoryKey<Location> SNIFFER_EXPLORED_POSITIONS

- ## 方法详细资料

  - ### getKey

    @NotNull public @NotNull NamespacedKey getKey()
    从接口复制的说明: `Keyed`
    返回用于此对象的命名空间标识符.

    原文:Return the namespaced identifier for this object.

    指定者:
      `getKey` 在接口中 `Keyed`
    返回:
      标识此对象的 key

  - ### getMemoryClass

    @NotNull public @NotNull Class<T> getMemoryClass()
    Gets the class of values associated with this memory.
    返回:
      the class of value objects

  - ### getByKey

    @Nullable public static @Nullable MemoryKey getByKey(@NotNull @NotNull NamespacedKey namespacedKey)
    Returns a `MemoryKey` by a `NamespacedKey`.
    参数:
      `namespacedKey` - the `NamespacedKey` referencing a `MemoryKey`
    返回:
      the `MemoryKey` or null when no `MemoryKey` is available under that key

  - ### values

    @NotNull public static @NotNull Set<MemoryKey> values()
    Returns the set of all MemoryKeys.
    返回:
      the memoryKeys