mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@156675c Fix lodestone compass target conversion PaperMC/Paper@5632210 add RegistryAccess for managing registries (#10154) PaperMC/Paper@6fcca46 Add missing step in V3818
61 lines
2.1 KiB
Diff
61 lines
2.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: DoctaEnkoda <bierquejason@gmail.com>
|
|
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 215647d7f5cc8487d6a173bc0160fec6db1971eb..7bc4e5e9947ab646707a5c0b39c70c0cc6606bd8 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -2929,5 +2929,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 7f9dc209c88a66bd2ee82cc62b948e827c6b1060..fa926319ff033768d78508491e072efec1dcbc9f 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -2567,5 +2567,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
|
|
}
|