Add basic Datapack API

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
This commit is contained in:
Connor Linfoot
2021-05-16 15:07:34 +01:00
parent 613ffeaeed
commit 8595225f18
10 changed files with 200 additions and 0 deletions

View File

@ -328,9 +328,11 @@ public final class Bukkit {
/**
* Get the DataPack Manager.
*
* @deprecated use {@link #getDatapackManager()}
* @return the manager
*/
@NotNull
@Deprecated(forRemoval = true, since = "1.20")
public static DataPackManager getDataPackManager() {
return server.getDataPackManager();
}
@ -2641,6 +2643,14 @@ public final class Bukkit {
public static com.destroystokyo.paper.entity.ai.MobGoals getMobGoals() {
return server.getMobGoals();
}
/**
* @return the datapack manager
*/
@NotNull
public static io.papermc.paper.datapack.DatapackManager getDatapackManager() {
return server.getDatapackManager();
}
// Paper end
@NotNull