mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add CookTimeTotal API to Furnace
This commit is contained in:
parent
c64197df52
commit
2844ce2038
1 changed files with 22 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue