mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
SPIGOT-2903: Add Structure API
By: Sander Knauff <sanderknauff@hotmail.com>
This commit is contained in:
@@ -47,6 +47,7 @@ import org.bukkit.plugin.messaging.Messenger;
|
||||
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
import org.bukkit.scoreboard.ScoreboardManager;
|
||||
import org.bukkit.structure.StructureManager;
|
||||
import org.bukkit.util.CachedServerIcon;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -1426,6 +1427,14 @@ public interface Server extends PluginMessageRecipient {
|
||||
@NotNull
|
||||
List<Entity> selectEntities(@NotNull CommandSender sender, @NotNull String selector) throws IllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Gets the structure manager for loading and saving structures.
|
||||
*
|
||||
* @return the structure manager
|
||||
*/
|
||||
@NotNull
|
||||
StructureManager getStructureManager();
|
||||
|
||||
/**
|
||||
* @return the unsafe values instance
|
||||
* @see UnsafeValues
|
||||
|
Reference in New Issue
Block a user