From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: DoctaEnkoda Date: Mon, 9 Aug 2021 13:22:03 +0200 Subject: [PATCH] Added the ability to add combustible items diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 9189ada0644a226038eeb7967d45c72ddfc89085..8c37680ca16adbf030cfd3098330d2592d4aaa23 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -2387,5 +2387,24 @@ public final class Bukkit { public static boolean isLagging() { return server.isLagging(); } + + /** + * Add an Item as fuel for furnaces + * + * @param material The material that will be the fuel + * @param burnTime The time (in ticks) this item will burn for + */ + public static void addFuel(@NotNull Material material, int burnTime) { + server.addFuel(material, burnTime); + } + + /** + * Remove an item as fuel for furnaces + * + * @param material The material that will no longer be a fuel + */ + public static void removeFuel(@NotNull Material material) { + server.removeFuel(material); + } // Purpur end } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 226dd08c1001c664d60f45a6d9370077f4b8c574..5d1668c6f368843ec071df7d65dbd0a29be545d0 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -2082,5 +2082,20 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi * @return True if lagging */ boolean isLagging(); + + /** + * Add an Item as fuel for furnaces + * + * @param material The material that will be the fuel + * @param burnTime The time (in ticks) this item will burn for + */ + public void addFuel(@NotNull Material material, int burnTime); + + /** + * Remove an item as fuel for furnaces + * + * @param material The material that will no longer be a fuel + */ + public void removeFuel(@NotNull Material material); // Purpur end }