程序包 org.bukkit.packs

接口 DataPack

所有超级接口:
Keyed

public interface DataPack extends Keyed
代表一个数据包.
另请参阅:
  • 方法详细资料

    • getTitle

      获取数据包的标题.

      原文: Gets the title of the data pack.

      返回:
      标题
    • getDescription

      @NotNull @NotNull String getDescription()
      获取数据包的描述.

      原文: Gets the description of the data pack.

      返回:
      描述
    • getPackFormat

      @Deprecated(since="1.21.9") int getPackFormat()
      已过时。
      包有主/次和最大/最小格式
      获取包格式.
      包格式是非标准的, 与Minecraft版本无关. 已知包版本列表请参见Minecraft Wiki.

      原文: 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.

      返回:
      包版本
      另请参阅:
    • getMinSupportedPackFormat

      @Deprecated(since="1.21.9") int getMinSupportedPackFormat()
      已过时。
      包有主次格式, 请参见getMinSupportedFormat()
      获取支持的最小包格式. 如果数据包未指定最小支持格式, 则返回getPackFormat().
      包格式是非标准的, 与Minecraft版本无关. 已知包版本列表请参见Minecraft Wiki.

      原文: 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.

      返回:
      支持的最小包版本
    • getMaxSupportedPackFormat

      @Deprecated(since="1.21.9") int getMaxSupportedPackFormat()
      已过时。
      包有主次格式, 请参见getMaxSupportedFormat()
      获取支持的最大包格式. 如果数据包未指定最大支持格式, 则返回getPackFormat().
      包格式是非标准的, 与Minecraft版本无关. 已知包版本列表请参见Minecraft Wiki.

      原文: 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.

      返回:
      支持的最大包版本
    • getMinSupportedFormat

      @NotNull @NotNull DataPackFormat getMinSupportedFormat()
      获取支持的最小包格式.
      包格式是非标准的, 与Minecraft版本无关. 已知包版本列表请参见Minecraft Wiki.

      原文: Gets the minimum supported 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.

      返回:
      支持的最小包版本
    • getMaxSupportedFormat

      @NotNull @NotNull DataPackFormat getMaxSupportedFormat()
      获取支持的最大包格式.
      包格式是非标准的, 与Minecraft版本无关. 已知包版本列表请参见Minecraft Wiki.

      原文: Gets the maximum supported 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.

      返回:
      支持的最大包版本
    • isEnabled

      boolean isEnabled()
      获取数据包是否在服务器上启用.

      原文: Gets if the data pack is enabled on the server.

      返回:
      如果启用则为True
    • isRequired

      boolean isRequired()
      获取数据包是否在服务器上是必需的.

      原文: Gets if the data pack is required on the server.

      返回:
      如果是必需的则为True
    • getCompatibility

      获取此数据包与服务器的兼容性.

      原文: Gets the compatibility of this data pack with the server.

      返回:
      一个枚举
    • getRequestedFeatures

      @NotNull @NotNull Set<FeatureFlag> getRequestedFeatures()
      获取此数据包请求的特性集合.

      原文: Gets a set of features requested by this data pack.

      返回:
      特性集合
    • getSource

      获取此数据包的来源.

      原文: Gets the source of this data pack.

      返回:
      来源