程序包 org.bukkit.packs

接口 DataPack

所有超级接口:
Keyed

@Experimental public interface DataPack extends Keyed
Represents a data pack.
  • 方法详细资料

    • 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 version.
      This is related to the server version to work.
      返回:
      the pack version
    • 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

      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

      Gets the source of this data pack.
      返回:
      the source