mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
SPIGOT-7530, #948: Improve Resource Pack API with new 1.20.3 functionality
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -44,6 +44,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.loot.LootTable;
|
||||
import org.bukkit.map.MapView;
|
||||
import org.bukkit.packs.DataPackManager;
|
||||
import org.bukkit.packs.ResourcePack;
|
||||
import org.bukkit.permissions.Permissible;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.ServicesManager;
|
||||
@@ -247,6 +248,14 @@ public interface Server extends PluginMessageRecipient {
|
||||
@NotNull
|
||||
public ServerTickManager getServerTickManager();
|
||||
|
||||
/**
|
||||
* Gets the resource pack configured to be sent to clients by the server.
|
||||
*
|
||||
* @return the resource pack
|
||||
*/
|
||||
@Nullable
|
||||
public ResourcePack getServerResourcePack();
|
||||
|
||||
/**
|
||||
* Gets the server resource pack uri, or empty string if not specified.
|
||||
*
|
||||
|
Reference in New Issue
Block a user