Minecraft 1.12-pre2 API Changes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-05-14 12:00:00 +10:00
parent 05d2efaa86
commit 75a18fd5ad
29 changed files with 785 additions and 36 deletions

View File

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