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 f4e35cd1a398cc07842c359ec560eed4596732b4..6197605519abf3c59108f1dff34105cc2bca10c2 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -2123,5 +2123,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 e89d80128b2944efb7e105b92f8f825afe80affb..c44212baa2cc167a1a818c158441e5ff749f29eb 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -1855,5 +1855,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 }