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: PaperMC/Paper@9cab01e [ci skip] Update Gradle wrapper to 7.4 PaperMC/Paper@cdb893b Add mid-tick task execution to block ticking PaperMC/Paper@854f3d3 Put world into worldlist before initing the world PaperMC/Paper@db81163 Execute mid tick tasks during tile entity ticking PaperMC/Paper@501834e Fix custom inventory holders (#6199) PaperMC/Paper@04a337a Add some missing deprecations to the adventure patch (#7500) PaperMC/Paper@b6dad9c Fix desync on teleporting entity on first tick (#7183) PaperMC/Paper@2a55e35 Option to have default CustomSpawners in custom worlds (#7493) PaperMC/Paper@bfa50ad Custom Potion Mixes (#6744)
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 3ef38fee9957243a4e52fefdb50a53b63a40f4a3..dfdcbcd79e750fefa90b7a7ca58490a1fa5e92e0 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -2331,5 +2331,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 c14f73492c99aeee0f85fc6d80763a05de3d72a6..97e26767b9143e290fb232013090a91bb67bca7c 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -2033,5 +2033,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
|
|
}
|