mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
Add CookTimeTotal API to Furnace
By: md_5 <git@md-5.net>
This commit is contained in:
parent
6cfba952ab
commit
3fbd969ca7
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…
Reference in a new issue