Add recipeBrewTime

This commit is contained in:
Tamion
2024-09-20 17:39:22 +02:00
parent 4cd3060ff8
commit 7b11ab058b
3 changed files with 101 additions and 1 deletions

View File

@@ -22,6 +22,29 @@ public interface BrewingStand extends Container {
*/
void setBrewingTime(int brewTime);
// Paper start - Add recipeBrewTime
/**
* Sets the recipe time for the brewing process which is
* used to compute the progress of the brewing process with
* {@link #getBrewingTime()}.
*
* @param recipeBrewTime recipe brew time (in ticks)
* @throws IllegalArgumentException if the recipe brew time is non-positive
*/
@org.jetbrains.annotations.ApiStatus.Experimental
void setRecipeBrewTime(@org.jetbrains.annotations.Range(from = 1, to = Integer.MAX_VALUE) int recipeBrewTime);
/**
* Gets the recipe time for the brewing process which is
* used to compute the progress of the brewing process with
* {@link #getBrewingTime()}.
*
* @return recipe brew time (in ticks)
*/
@org.jetbrains.annotations.ApiStatus.Experimental
@org.jetbrains.annotations.Range(from = 1, to = Integer.MAX_VALUE) int getRecipeBrewTime();
// Paper end - Add recipeBrewTime
/**
* Get the level of current fuel for brewing.
*