From 3fbd969ca73652ae5cec03a575f760fe7ac85dd1 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 23 Jan 2019 10:26:35 +1100 Subject: [PATCH] Add CookTimeTotal API to Furnace By: md_5 --- .../main/java/org/bukkit/block/Furnace.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Furnace.java b/paper-api/src/main/java/org/bukkit/block/Furnace.java index b41e8ffd79..fb82104bae 100644 --- a/paper-api/src/main/java/org/bukkit/block/Furnace.java +++ b/paper-api/src/main/java/org/bukkit/block/Furnace.java @@ -28,6 +28,8 @@ public interface Furnace extends Container, Nameable { /** * Get cook time. * + * This is the amount of time the item has been cooking for. + * * @return Cook time */ public short getCookTime(); @@ -35,10 +37,30 @@ public interface Furnace extends Container, Nameable { /** * Set cook time. * + * This is the amount of time the item has been cooking for. + * * @param cookTime Cook time */ public void setCookTime(short cookTime); + /** + * Get cook time total. + * + * This is the amount of time the item is required to cook for. + * + * @return Cook time total + */ + public int getCookTimeTotal(); + + /** + * Set cook time. + * + * This is the amount of time the item is required to cook for. + * + * @param cookTimeTotal Cook time total + */ + public void setCookTimeTotal(int cookTimeTotal); + @Override public FurnaceInventory getInventory();