From 92278020ef641d2d099e677dcca5cb7475218a87 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 23 Jan 2019 10:26:43 +1100 Subject: [PATCH] Add CookTimeTotal API to Furnace By: md_5 --- .../org/bukkit/craftbukkit/block/CraftFurnace.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java index 6ca6a6bf24..c2eea8ce03 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java @@ -55,6 +55,16 @@ public class CraftFurnace extends CraftContainer implements F this.getSnapshot().setProperty(2, cookTime); } + @Override + public int getCookTimeTotal() { + return this.getSnapshot().getProperty(3); + } + + @Override + public void setCookTimeTotal(int cookTimeTotal) { + this.getSnapshot().setProperty(3, cookTimeTotal); + } + @Override public String getCustomName() { TileEntityFurnace furnace = this.getSnapshot();