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.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe

    io.github.pylonmc.rebar.recipe.RebarRecipe.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui>
     
    final @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput>
     
    final org.bukkit.NamespacedKey
     
    final @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_TRANSMUTE

    Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleRecipe(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

    Modifier and Type
    Method
    Description
    @Nullable xyz.xenondevs.invui.gui.Gui
     
    @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput>
     
    @NotNull org.bukkit.NamespacedKey
     
    @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem>
     

    Methods inherited from class io.github.pylonmc.rebar.recipe.RecipeType

    addRecipe, getRecipe, getRecipeOrThrow, getRecipes, getRegisteredRecipes, iterator, register, removeRecipe, stream, vanillaCookingRecipes, vanillaCraftingRecipes

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe

    isHidden, isInput, isInput, isOutput, isOutput
  • Field Details

    • key

      public final org.bukkit.NamespacedKey key
    • inputs

      @NotNull public final @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> inputs
    • outputs

      @NotNull public final @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> outputs
    • displaySupplier

      @NotNull public final @NotNull Supplier<@Nullable xyz.xenondevs.invui.gui.Gui> 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

      @NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> getInputs()
      Specified by:
      getInputs in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • getResults

      @NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> getResults()
      Specified by:
      getResults in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • display

      @Nullable public @Nullable xyz.xenondevs.invui.gui.Gui display()
      Specified by:
      display in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
      Overrides:
      getKey in class io.github.pylonmc.rebar.recipe.RecipeType<io.github.pylonmc.rebar.recipe.RebarRecipe>