Package org.bukkit.packs
Interface DataPack
- All Superinterfaces:
Keyed
Represents a data pack.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Show the compatibility of the data pack with the server.static enum
Represent the source of a data pack. -
Method Summary
Modifier and TypeMethodDescriptionGets the compatibility of this data pack with the server.Gets the description of the data pack.int
Gets the pack version.Gets a set of features requested by this data pack.Gets the source of this data pack.getTitle()
Gets the title of the data pack.boolean
Gets if the data pack is enabled on the server.boolean
Gets if the data pack is required on the server.
-
Method Details
-
getTitle
Gets the title of the data pack.- Returns:
- the title
-
getDescription
Gets the description of the data pack.- Returns:
- the description
-
getPackFormat
int getPackFormat()Gets the pack version.
This is related to the server version to work.- Returns:
- the pack version
-
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
Gets the compatibility of this data pack with the server.- Returns:
- an enum
-
getRequestedFeatures
Gets a set of features requested by this data pack.- Returns:
- a set of features
-
getSource
Gets the source of this data pack.- Returns:
- the source
-