Interface DataPack

All Superinterfaces:
Keyed

@Experimental public interface DataPack extends Keyed
Represents a data pack.
See Also:
  • Method Details

    • getTitle

      @NotNull String getTitle()
      Gets the title of the data pack.
      Returns:
      the title
    • getDescription

      @NotNull String getDescription()
      Gets the description of the data pack.
      Returns:
      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.
      Returns:
      the pack version
      See Also:
    • 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.
      Returns:
      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.
      Returns:
      the max pack version supported
    • isEnabled

      boolean isEnabled()
      Gets if the data pack is enabled on the server.
      Returns:
      True if is enabled
    • isRequired

      boolean isRequired()
      Gets if the data pack is required on the server.
      Returns:
      True if is required
    • getCompatibility

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

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

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