mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
@@ -41,6 +41,7 @@ import org.bukkit.scoreboard.ScoreboardManager;
|
||||
import org.bukkit.util.CachedServerIcon;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.bukkit.advancement.Advancement;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
|
||||
import org.bukkit.inventory.ItemFactory;
|
||||
@@ -533,6 +534,14 @@ public final class Bukkit {
|
||||
server.reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reload only the Minecraft data for the server. This includes custom
|
||||
* advancements and loot tables.
|
||||
*/
|
||||
public static void reloadData() {
|
||||
server.reloadData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the primary logger associated with this server instance.
|
||||
*
|
||||
@@ -1125,6 +1134,16 @@ public final class Bukkit {
|
||||
return server.getEntity(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the advancement specified by this key.
|
||||
*
|
||||
* @param key unique advancement key
|
||||
* @return advancement or null if not exists
|
||||
*/
|
||||
public static Advancement getAdvancement(NamespacedKey key) {
|
||||
return server.getAdvancement(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
Reference in New Issue
Block a user