Package org.bukkit.inventory.view
Interface CrafterView
- All Superinterfaces:
InventoryView
An instance of
InventoryView
which provides extra methods related to
crafter view data.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.InventoryView
InventoryView.Property
-
Field Summary
Fields inherited from interface org.bukkit.inventory.InventoryView
OUTSIDE
-
Method Summary
Modifier and TypeMethodDescriptionGet the upper inventory involved in this transaction.boolean
Checks whether or not this crafter view is powered.boolean
isSlotDisabled
(int slot) Checks if the given crafter slot is disabled.void
setSlotDisabled
(int slot, boolean disabled) Sets the status of the crafter slot.Methods inherited from interface org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
-
Method Details
-
getTopInventory
Description copied from interface:InventoryView
Get the upper inventory involved in this transaction.- Specified by:
getTopInventory
in interfaceInventoryView
- Returns:
- the inventory
-
isSlotDisabled
boolean isSlotDisabled(int slot) Checks if the given crafter slot is disabled.- Parameters:
slot
- the slot to check- Returns:
- true if the slot is disabled otherwise false
-
isPowered
boolean isPowered()Checks whether or not this crafter view is powered.- Returns:
- true if the crafter is powered
-
setSlotDisabled
void setSlotDisabled(int slot, boolean disabled) Sets the status of the crafter slot.- Parameters:
slot
- the slot to set the status ofdisabled
- true if the slot should be disabled otherwise false
-