Interface DataPack

All Superinterfaces:
net.kyori.adventure.key.Keyed, Keyed

@Experimental @Deprecated(forRemoval=true) public interface DataPack extends Keyed
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a data pack.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Show the compatibility of the data pack with the server.
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Represent the source of a data pack.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the compatibility of this data pack with the server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the description of the data pack.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the pack version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets a set of features requested by this data pack.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the source of this data pack.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the title of the data pack.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets if the data pack is enabled on the server.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets if the data pack is required on the server.

    Methods inherited from interface org.bukkit.Keyed

    getKey, key
  • Method Details

    • getTitle

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the title of the data pack.
      Returns:
      the title
    • getDescription

      @NotNull @NotNull String getDescription()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the description of the data pack.
      Returns:
      the description
    • getPackFormat

      int getPackFormat()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the pack version.
      This is related to the server version to work.
      Returns:
      the pack version
    • isEnabled

      boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets if the data pack is enabled on the server.
      Returns:
      True if is enabled
    • isRequired

      boolean isRequired()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets if the data pack is required on the server.
      Returns:
      True if is required
    • getCompatibility

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the compatibility of this data pack with the server.
      Returns:
      an enum
    • getRequestedFeatures

      @NotNull @NotNull Set<FeatureFlag> getRequestedFeatures()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a set of features requested by this data pack.
      Returns:
      a set of features
    • getSource

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the source of this data pack.
      Returns:
      the source