mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#911: Expand DataPack API with 1.20.2 pack version methods
Co-authored-by: 2008Choco <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
0341e3a095
commit
a7bbbf0ce7
1 changed files with 30 additions and 4 deletions
|
@ -31,16 +31,42 @@ public interface DataPack extends Keyed {
|
||||||
public String getDescription();
|
public String getDescription();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the pack version.
|
* Gets the pack format.
|
||||||
* <br>
|
* <br>
|
||||||
* This is related to the server version to work.
|
* Pack formats are non-standard and unrelated to the version of Minecraft. For
|
||||||
|
* a list of known pack versions, see the
|
||||||
|
* <a href="https://minecraft.wiki/w/Data_pack#Pack_format">Minecraft Wiki</a>.
|
||||||
*
|
*
|
||||||
* @return the pack version
|
* @return the pack version
|
||||||
* @deprecated packs can support multiple versions
|
* @see #getMinSupportedPackFormat()
|
||||||
|
* @see #getMaxSupportedPackFormat()
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public int getPackFormat();
|
public int getPackFormat();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the minimum supported pack format. If the data pack does not specify a
|
||||||
|
* minimum supported format, {@link #getPackFormat()} is returned.
|
||||||
|
* <br>
|
||||||
|
* Pack formats are non-standard and unrelated to the version of Minecraft. For
|
||||||
|
* a list of known pack versions, see the
|
||||||
|
* <a href="https://minecraft.wiki/w/Data_pack#Pack_format">Minecraft Wiki</a>.
|
||||||
|
*
|
||||||
|
* @return the min pack version supported
|
||||||
|
*/
|
||||||
|
public int getMinSupportedPackFormat();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the maximum supported pack format. If the data pack does not specify a
|
||||||
|
* maximum supported format, {@link #getPackFormat()} is returned.
|
||||||
|
* <br>
|
||||||
|
* Pack formats are non-standard and unrelated to the version of Minecraft. For
|
||||||
|
* a list of known pack versions, see the
|
||||||
|
* <a href="https://minecraft.wiki/w/Data_pack#Pack_format">Minecraft Wiki</a>.
|
||||||
|
*
|
||||||
|
* @return the max pack version supported
|
||||||
|
*/
|
||||||
|
public int getMaxSupportedPackFormat();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets if the data pack is enabled on the server.
|
* Gets if the data pack is enabled on the server.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue