程序包 org.bukkit.packs

# 接口 DataPack

所有超级接口:
  `Keyed`

public interface DataPack extends Keyed
Represents a data pack.

另请参阅:
  - Minecraft wiki

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `DataPack.Compatibility`
  Show the compatibility of the data pack with the server.
  `static enum`
  `DataPack.Source`
  Represent the source of a data pack.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull DataPack.Compatibility`
  `getCompatibility()`
  Gets the compatibility of this data pack with the server.
  `@NotNull String`
  `getDescription()`
  Gets the description of the data pack.
  `int`
  `getMaxSupportedPackFormat()`
  Gets the maximum supported pack format.
  `int`
  `getMinSupportedPackFormat()`
  Gets the minimum supported pack format.
  `int`
  `getPackFormat()`
  Gets the pack format.
  `@NotNull Set<FeatureFlag>`
  `getRequestedFeatures()`
  Gets a set of features requested by this data pack.
  `@NotNull DataPack.Source`
  `getSource()`
  Gets the source of this data pack.
  `@NotNull String`
  `getTitle()`
  Gets the title of the data pack.
  `boolean`
  `isEnabled()`
  Gets if the data pack is enabled on the server.
  `boolean`
  `isRequired()`
  Gets if the data pack is required on the server.

  ### 从接口继承的方法 org.bukkit.Keyed

  `getKey`

- ## 方法详细资料

  - ### getTitle

    @NotNull @NotNull String getTitle()
    Gets the title of the data pack.
    返回:
      the title

  - ### getDescription

    @NotNull @NotNull String getDescription()
    Gets the description of the data pack.
    返回:
      the description

  - ### getPackFormat

    int getPackFormat()
    Gets the pack format.
    Pack formats are non-standard and unrelated to the version of Minecraft. For a list of known pack versions, see the Minecraft Wiki.
    返回:
      the pack version
    另请参阅:
      - `getMinSupportedPackFormat()`
      - `getMaxSupportedPackFormat()`

  - ### getMinSupportedPackFormat

    int getMinSupportedPackFormat()
    Gets the minimum supported pack format. If the data pack does not specify a minimum supported format, `getPackFormat()` is returned.
    Pack formats are non-standard and unrelated to the version of Minecraft. For a list of known pack versions, see the Minecraft Wiki.
    返回:
      the min pack version supported

  - ### getMaxSupportedPackFormat

    int getMaxSupportedPackFormat()
    Gets the maximum supported pack format. If the data pack does not specify a maximum supported format, `getPackFormat()` is returned.
    Pack formats are non-standard and unrelated to the version of Minecraft. For a list of known pack versions, see the Minecraft Wiki.
    返回:
      the max pack version supported

  - ### isEnabled

    boolean isEnabled()
    Gets if the data pack is enabled on the server.
    返回:
      True if is enabled

  - ### isRequired

    boolean isRequired()
    Gets if the data pack is required on the server.
    返回:
      True if is required

  - ### getCompatibility

    @NotNull @NotNull DataPack.Compatibility getCompatibility()
    Gets the compatibility of this data pack with the server.
    返回:
      an enum

  - ### getRequestedFeatures

    @NotNull @NotNull Set<FeatureFlag> getRequestedFeatures()
    Gets a set of features requested by this data pack.
    返回:
      a set of features

  - ### getSource

    @NotNull @NotNull DataPack.Source getSource()
    Gets the source of this data pack.
    返回:
      the source