Class SingleRecipe
java.lang.Object
io.github.pylonmc.rebar.recipe.RecipeType<io.github.pylonmc.rebar.recipe.RebarRecipe>
io.github.pylonmc.pylon.recipes.SingleRecipe
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, Iterable<io.github.pylonmc.rebar.recipe.RebarRecipe>, kotlin.jvm.internal.markers.KMappedMarker, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public class SingleRecipe
extends io.github.pylonmc.rebar.recipe.RecipeType<io.github.pylonmc.rebar.recipe.RebarRecipe>
implements io.github.pylonmc.rebar.recipe.RebarRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.rebar.recipe.RecipeType
io.github.pylonmc.rebar.recipe.RecipeType.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
io.github.pylonmc.rebar.recipe.RebarRecipe.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> final @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> final org.bukkit.NamespacedKeyfinal @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> Fields inherited from class io.github.pylonmc.rebar.recipe.RecipeType
Companion, VANILLA_BLASTING, VANILLA_CAMPFIRE, VANILLA_FURNACE, VANILLA_SHAPED, VANILLA_SHAPELESS, VANILLA_SMITHING_TRANSFORM, VANILLA_SMITHING_TRIM, VANILLA_SMOKING, VANILLA_TRANSMUTEFields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionSingleRecipe(org.bukkit.NamespacedKey key, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput input, @NotNull io.github.pylonmc.rebar.recipe.FluidOrItem output, @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> displaySupplier) SingleRecipe(org.bukkit.NamespacedKey key, @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> inputs, @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> outputs, @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> displaySupplier) -
Method Summary
Methods inherited from class io.github.pylonmc.rebar.recipe.RecipeType
addRecipe, getRecipe, getRecipeOrThrow, getRecipes, getRegisteredRecipes, iterator, register, removeRecipe, stream, vanillaCookingRecipes, vanillaCraftingRecipesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
key
public final org.bukkit.NamespacedKey key -
inputs
-
outputs
-
displaySupplier
-
-
Constructor Details
-
SingleRecipe
public SingleRecipe(org.bukkit.NamespacedKey key, @NotNull @NotNull io.github.pylonmc.rebar.recipe.RecipeInput input, @NotNull @NotNull io.github.pylonmc.rebar.recipe.FluidOrItem output, @NotNull @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> displaySupplier) -
SingleRecipe
public SingleRecipe(org.bukkit.NamespacedKey key, @NotNull @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> inputs, @NotNull @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> outputs, @NotNull @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> displaySupplier)
-
-
Method Details
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
display
@Nullable public @Nullable xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed- Overrides:
getKeyin classio.github.pylonmc.rebar.recipe.RecipeType<io.github.pylonmc.rebar.recipe.RebarRecipe>
-