mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 08:27:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes:4276013833Updated Upstream (Bukkit/CraftBukkit/Spigot)5344798579Clean plugin folder logic in extra-jars patch (Fixes #6347) (#6619)3f2159e43cUnlimited chunk load rate (#6768)fc0e6c7e08Fix off by one for determining server view distance0a16fb8182Fix merchant inventories not closing on entity removal (#6544)c1644521c9Do not overload I/O threads with chunk data while flush saving
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 5d20d91f44a9f0f94183eaea300d1033f292a28e..2e86aa13913553306512232a72497ec6b003260c 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -2137,5 +2137,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 4d15d4b5b23d38599ab227dc1c2a9c25a077e531..ccfb8a8dcd51bf998c79298a22e38cebb2be6d39 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -1867,5 +1867,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
|
|
}
|