mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Expose isFuel and canSmelt methods to FurnaceInventory
This commit is contained in:
parent
fce89ee047
commit
1fa51dd469
1 changed files with 18 additions and 0 deletions
|
@ -53,6 +53,24 @@ public interface FurnaceInventory extends Inventory {
|
||||||
*/
|
*/
|
||||||
void setSmelting(@Nullable ItemStack stack);
|
void setSmelting(@Nullable ItemStack stack);
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Check if an item can be used as a fuel source in this furnace container
|
||||||
|
*
|
||||||
|
* @param item Item to check
|
||||||
|
* @return True if a valid fuel source
|
||||||
|
*/
|
||||||
|
public boolean isFuel(@Nullable ItemStack item);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if an item can be smelted in this furnace container
|
||||||
|
*
|
||||||
|
* @param item Item to check
|
||||||
|
* @return True if can be smelt
|
||||||
|
*/
|
||||||
|
public boolean canSmelt(@Nullable ItemStack item);
|
||||||
|
// Paper end
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
Furnace getHolder();
|
Furnace getHolder();
|
||||||
|
|
Loading…
Reference in a new issue