CustomRecipeChoice

class CustomRecipeChoice(tests: List<ItemTest>) : RecipeChoice.ExactChoice

Constructors

Link copied to clipboard
constructor(tests: List<ItemTest>)

Properties

Link copied to clipboard
@get:NotNull
open val choices: @NotNull List<ItemStack?>
Link copied to clipboard
@get:NotNull
open val itemStack: @NotNull ItemStack

Functions

Link copied to clipboard
open fun and(other: Predicate<in ItemStack?>?): Predicate<ItemStack?>?
Link copied to clipboard
@NotNull
open fun clone(): RecipeChoice.ExactChoice
Link copied to clipboard
fun RecipeChoice.getInputStacks(): List<ItemStack>
Link copied to clipboard
open fun negate(): Predicate<ItemStack?>?
Link copied to clipboard
open fun or(other: Predicate<in ItemStack?>?): Predicate<ItemStack?>?
Link copied to clipboard
open override fun test(item: ItemStack): Boolean
Link copied to clipboard
@NotNull
open fun validate(allowEmptyRecipes: Boolean): @NotNull RecipeChoice