# 接口的使用
org.bukkit.persistence.PersistentDataAdapterContext

使用PersistentDataAdapterContext的程序包
程序包
说明
org.bukkit.persistence
用于向各种对象附加持久化数据的类.

- ## org.bukkit.persistence中PersistentDataAdapterContext的使用

  返回PersistentDataAdapterContext的org.bukkit.persistence中的方法
  修饰符和类型
  方法
  说明
  `@NotNull PersistentDataAdapterContext`
  PersistentDataContainer.`getAdapterContext()`
  Returns the adapter context this tag container uses.
  参数类型为PersistentDataAdapterContext的org.bukkit.persistence中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Boolean`
  PersistentDataType.BooleanPersistentDataType.`fromPrimitive(@NotNull Byte primitive, @NotNull PersistentDataAdapterContext context)`
  `C`
  PersistentDataType.`fromPrimitive(P primitive, @NotNull PersistentDataAdapterContext context)`
  Creates a complex object based of the passed primitive value
  `P`
  PersistentDataType.PrimitivePersistentDataType.`fromPrimitive(P primitive, @NotNull PersistentDataAdapterContext context)`
  `@NotNull Byte`
  PersistentDataType.BooleanPersistentDataType.`toPrimitive(@NotNull Boolean complex, @NotNull PersistentDataAdapterContext context)`
  `P`
  PersistentDataType.PrimitivePersistentDataType.`toPrimitive(P complex, @NotNull PersistentDataAdapterContext context)`
  `P`
  PersistentDataType.`toPrimitive(C complex, @NotNull PersistentDataAdapterContext context)`
  Returns the primitive data that resembles the complex object passed to this method.