RebarRecipeProcessor

An interface that stores and progresses a recipe.

You can set a progress item with setRecipeProgressItem. This item will be automatically synchronized to the recipe progress, and will be persisted.

See also

Properties

Link copied to clipboard
@get:ApiStatus.NonExtendable
open val currentRecipe: T?
Link copied to clipboard
@get:ApiStatus.NonExtendable
open val isProcessingRecipe: Boolean
Link copied to clipboard
Link copied to clipboard
@get:ApiStatus.NonExtendable
open val recipeTicksRemaining: Int?

Functions

Link copied to clipboard
open fun finishRecipe()
Link copied to clipboard
abstract fun onRecipeFinished(recipe: T)
Link copied to clipboard
open fun progressRecipe(ticks: Int)
Link copied to clipboard
@ApiStatus.NonExtendable
open fun setRecipeType(type: RecipeType<T>)

Set the progress item that should be updated as the recipe progresses. Optional.

Link copied to clipboard
open fun startRecipe(recipe: T, ticks: Int)

Starts a new recipe with duration ticks, with ticks being the number of server ticks the recipe will take.

Link copied to clipboard
open fun stopRecipe()