Package org.bukkit.event.block
Class BrewingStartEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.InventoryBlockStartEvent
org.bukkit.event.block.BrewingStartEvent
Called when a brewing stand starts to brew.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.InventoryBlockStartEventsourceFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionBrewingStartEvent(@NotNull Block furnace, @NotNull ItemStack source, int brewingTime) 
- 
Method SummaryModifier and TypeMethodDescription@org.jetbrains.annotations.Range(from=0L, to=2147483647L) intGets the amount of brewing ticks left.@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 withgetBrewingTime().intDeprecated, for removal: This API element is subject to removal in a future version.voidsetBrewingTime(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int brewTime) Sets the brewing ticks 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 withgetBrewingTime().voidsetTotalBrewTime(int brewTime) Deprecated, for removal: This API element is subject to removal in a future version.usesetBrewingTime(int)insteadMethods inherited from class org.bukkit.event.block.InventoryBlockStartEventgetHandlerList, getHandlers, getSourceMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
BrewingStartEvent
 
- 
- 
Method Details- 
getTotalBrewTimeDeprecated, for removal: This API element is subject to removal in a future version.usegetBrewingTime()insteadGets the total brew time associated with this event.- Returns:
- the total brew time
 
- 
setTotalBrewTimeDeprecated, for removal: This API element is subject to removal in a future version.usesetBrewingTime(int)insteadSets the total brew time for this event.- Parameters:
- brewTime- the new total brew time
 
- 
getRecipeBrewTime@Experimental public @org.jetbrains.annotations.Range(from=1L, to=2147483647L) int getRecipeBrewTime()Gets the recipe time for the brewing process which is used to compute the progress of the brewing process withgetBrewingTime().- Returns:
- recipe brew time (in ticks)
 
- 
setRecipeBrewTime@Experimental public 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 withgetBrewingTime().- Parameters:
- recipeBrewTime- recipe brew time (in ticks)
- Throws:
- IllegalArgumentException- if the recipe brew time is non-positive
 
- 
getBrewingTimepublic @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int getBrewingTime()Gets the amount of brewing ticks left.- Returns:
- The amount of ticks left for the brewing task
 
- 
setBrewingTimepublic void setBrewingTime(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int brewTime) Sets the brewing ticks left.- Parameters:
- brewTime- the ticks left, which is no less than 0
- Throws:
- IllegalArgumentException- if the ticks are less than 0
 
 
- 
getBrewingTime()instead