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 SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.InventoryViewInventoryView.Property
- 
Field SummaryFields inherited from interface org.bukkit.inventory.InventoryViewOUTSIDE
- 
Method SummaryModifier and TypeMethodDescriptionintGets the amount of brewing ticks left.intGets the fuel level of this brewing stand.@org.jetbrains.annotations.Range(from=1L, to=2147483647L) intGets the recipe time for the brewing process which is used to compute the progress of the brewing process withgetBrewingTicks().Get the upper inventory involved in this transaction.voidsetBrewingTicks(int ticks) Sets the brewing ticks left.voidsetFuelLevel(int level) Sets the fuel level left.voidsetRecipeBrewTime(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int recipeBrewTime) Sets the recipe time for the brewing process which is used to compute the progress of the brewing process withgetBrewingTicks().Methods inherited from interface org.bukkit.inventory.InventoryViewclose, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getMenuType, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, open, setCursor, setItem, setProperty, setTitle, title
- 
Method Details- 
getTopInventoryDescription copied from interface:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
- getTopInventoryin interface- InventoryView
- Returns:
- the inventory
 
- 
getFuelLevelint 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
 
- 
getBrewingTicksint getBrewingTicks()Gets the amount of brewing ticks left.- Returns:
- The amount of ticks left for the brewing task
 
- 
setFuelLevelSets 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
 
- 
setBrewingTicksSets the brewing ticks left.- Parameters:
- ticks- the ticks left, which is no less than 0
- Throws:
- IllegalArgumentException- if the ticks are less than 0
 
- 
setRecipeBrewTime@Experimental void setRecipeBrewTime(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int recipeBrewTime) Sets the recipe time for the brewing process which is used to compute the progress of the brewing process withgetBrewingTicks().- Parameters:
- recipeBrewTime- recipe brew time (in ticks)
- Throws:
- IllegalArgumentException- if the recipe brew time is non-positive
 
- 
getRecipeBrewTimeGets the recipe time for the brewing process which is used to compute the progress of the brewing process withgetBrewingTicks().- Returns:
- recipe brew time (in ticks)
 
 
-