SPIGOT-6829: Add per-player world border API

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2022-04-09 09:39:19 +10:00
parent e795b5d12f
commit 2d304809b5
4 changed files with 59 additions and 0 deletions

View File

@@ -715,6 +715,18 @@ public final class Bukkit {
return server.getWorld(uid);
}
/**
* Create a new virtual {@link WorldBorder}.
*
* @return the created world border instance
*
* @see Player#setWorldBorder(WorldBorder)
*/
@NotNull
public static WorldBorder createWorldBorder() {
return server.createWorldBorder();
}
/**
* Gets the map from the given item ID.
*