mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Add fuel related methods to BrewingStand API
By: lapry <lapry34@gmail.com>
This commit is contained in:
parent
ef7bd3a4ab
commit
128ff503e9
2 changed files with 30 additions and 0 deletions
|
@ -22,5 +22,19 @@ public interface BrewingStand extends BlockState, InventoryHolder {
|
|||
*/
|
||||
void setBrewingTime(int brewTime);
|
||||
|
||||
/**
|
||||
* Get the level of current fuel for brewing.
|
||||
*
|
||||
* @return The fuel level
|
||||
*/
|
||||
int getFuelLevel();
|
||||
|
||||
/**
|
||||
* Set the level of current fuel for brewing.
|
||||
*
|
||||
* @param level fuel level
|
||||
*/
|
||||
void setFuelLevel(int level);
|
||||
|
||||
public BrewerInventory getInventory();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.bukkit.inventory;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.BrewingStand;
|
||||
|
||||
/**
|
||||
|
@ -21,5 +22,20 @@ public interface BrewerInventory extends Inventory {
|
|||
*/
|
||||
void setIngredient(ItemStack ingredient);
|
||||
|
||||
/**
|
||||
* Get the current fuel for brewing.
|
||||
*
|
||||
* @return The fuel
|
||||
*/
|
||||
ItemStack getFuel();
|
||||
|
||||
/**
|
||||
* Set the current fuel for brewing. Generally only
|
||||
* {@link Material#BLAZE_POWDER} will be of use.
|
||||
*
|
||||
* @param fuel The fuel
|
||||
*/
|
||||
void setFuel(ItemStack fuel);
|
||||
|
||||
BrewingStand getHolder();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue