SPIGOT-2903: Add Structure API

By: Sander Knauff <sanderknauff@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2021-10-05 11:55:20 +11:00
parent 8b6e67635a
commit 6882afca7b
6 changed files with 410 additions and 0 deletions

View File

@@ -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