public class FurnaceInventory extends ContainerInventory
| Modifier and Type | Field and Description |
|---|---|
static int |
SLOT_FUEL |
static int |
SLOT_RESULT |
static int |
SLOT_SMELTING |
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
FurnaceInventory(Furnace furnace,
InventoryType inventoryType) |
| Modifier and Type | Method and Description |
|---|---|
Item |
getFuel() |
Furnace |
getHolder() |
Item |
getResult() |
Item |
getSmelting() |
void |
onSlotChange(int index,
Item before,
boolean send) |
boolean |
setFuel(Item item) |
boolean |
setResult(Item item) |
boolean |
setSmelting(Item item) |
calculateRedstone, onClose, onOpen, sendBlockEventPacketaddItem, all, canAddItem, clear, clearAll, close, contains, decreaseCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, increaseCount, isEmpty, isFull, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSizepublic static final int SLOT_SMELTING
public static final int SLOT_FUEL
public static final int SLOT_RESULT
public FurnaceInventory(Furnace furnace, InventoryType inventoryType)
public Furnace getHolder()
getHolder in interface InventorygetHolder in class BaseInventorypublic Item getResult()
public Item getFuel()
public Item getSmelting()
public boolean setResult(Item item)
public boolean setFuel(Item item)
public boolean setSmelting(Item item)
public void onSlotChange(int index,
Item before,
boolean send)
onSlotChange in interface InventoryonSlotChange in class BaseInventoryCopyright © 2020. All rights reserved.