Package org.bukkit.inventory.view
Interface BrewingStandView
- All Superinterfaces:
InventoryView
An instance of
InventoryView which provides extra methods related to
brewing stand 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 TypeMethodDescriptionintGets the amount of brewing ticks left.intGets the fuel level of this brewing stand.Get the upper inventory involved in this transaction.voidsetBrewingTicks(int ticks) Sets the brewing ticks left.voidsetFuelLevel(int level) Sets the fuel level left.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:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
getTopInventoryin interfaceInventoryView- Returns:
- the inventory
-
getFuelLevel
int getFuelLevel()Gets the fuel level of this brewing stand.The default maximum fuel level in minecraft is 20.
- Returns:
- The amount of fuel level left
-
getBrewingTicks
int getBrewingTicks()Gets the amount of brewing ticks left.- Returns:
- The amount of ticks left for the brewing task
-
setFuelLevel
Sets the fuel level left.- Parameters:
level- the level of the fuel, which is no less than 0- Throws:
IllegalArgumentException- if the level is less than 0
-
setBrewingTicks
Sets the brewing ticks left.- Parameters:
ticks- the ticks left, which is no less than 0- Throws:
IllegalArgumentException- if the ticks are less than 0
-