接口 DataPack
- 所有超级接口:
Keyed
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型接口说明static enum显示数据包与服务器的兼容性.static enum代表数据包的来源. -
方法概要
修饰符和类型方法说明获取此数据包与服务器的兼容性.获取数据包的描述.获取支持的最大包格式.int已过时。获取支持的最小包格式.int已过时。包有主次格式, 请参见getMinSupportedFormat()int已过时。包有主/次和最大/最小格式获取此数据包请求的特性集合.获取此数据包的来源.getTitle()获取数据包的标题.boolean获取数据包是否在服务器上启用.boolean获取数据包是否在服务器上是必需的.
-
方法详细资料
-
getTitle
获取数据包的标题.原文: Gets the title of the data pack.
- 返回:
- 标题
-
getDescription
获取数据包的描述.原文: Gets the description of the data pack.
- 返回:
- 描述
-
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
已过时。包有主次格式, 请参见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
已过时。包有主次格式, 请参见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
获取支持的最小包格式.
包格式是非标准的, 与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
获取支持的最大包格式.
包格式是非标准的, 与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
获取此数据包请求的特性集合.原文: Gets a set of features requested by this data pack.
- 返回:
- 特性集合
-
getSource
获取此数据包的来源.原文: Gets the source of this data pack.
- 返回:
- 来源
-
getMaxSupportedFormat()