13
0
geforkt von Mirrors/Paper

Expose isFuel and canSmelt methods to FurnaceInventory

Dieser Commit ist enthalten in:
BillyGalbreath 2021-12-23 15:32:40 -06:00
Ursprung fce89ee047
Commit 1fa51dd469

Datei anzeigen

@ -53,6 +53,24 @@ public interface FurnaceInventory extends Inventory {
*/
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
@Nullable
Furnace getHolder();