From 61c762f448044972c7c11bc0464356d1ca74336d Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 23 Jan 2019 10:26:43 +1100 Subject: [PATCH] Add CookTimeTotal API to Furnace --- .../org/bukkit/craftbukkit/block/CraftFurnace.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java b/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java index 6ca6a6bf24..c2eea8ce03 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftFurnace.java +++ b/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();