Record Class AssemblingRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.AssemblingRecipe
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record AssemblingRecipe(org.bukkit.NamespacedKey key, List<io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, List<org.bukkit.inventory.ItemStack> results, List<AssemblingRecipe.Step> steps)
extends Record
implements io.github.pylonmc.rebar.recipe.RebarRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
io.github.pylonmc.rebar.recipe.RebarRecipe.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.github.pylonmc.rebar.recipe.RecipeType<AssemblingRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionAssemblingRecipe(org.bukkit.NamespacedKey key, List<io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, List<org.bukkit.inventory.ItemStack> results, List<AssemblingRecipe.Step> steps) Creates an instance of aAssemblingReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable xyz.xenondevs.invui.gui.Guidisplay()final booleanIndicates whether some other object is "equal to" this one.static @Nullable AssemblingRecipefindRecipe(org.bukkit.inventory.ItemStack[] items) @NotNull List<@NotNull io.github.pylonmc.rebar.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()@NotNull List<@NotNull io.github.pylonmc.rebar.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.List<io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs()Returns the value of theinputsrecord component.org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.List<org.bukkit.inventory.ItemStack> results()Returns the value of theresultsrecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
RECIPE_TYPE
-
-
Constructor Details
-
AssemblingRecipe
public AssemblingRecipe(org.bukkit.NamespacedKey key, List<io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, List<org.bukkit.inventory.ItemStack> results, List<AssemblingRecipe.Step> steps) Creates an instance of aAssemblingReciperecord class.- Parameters:
key- the value for thekeyrecord componentinputs- the value for theinputsrecord componentresults- the value for theresultsrecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
findRecipe
@Nullable public static @Nullable AssemblingRecipe findRecipe(org.bukkit.inventory.ItemStack[] items) -
display
@Nullable public @Nullable xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
public org.bukkit.NamespacedKey key()Returns the value of thekeyrecord component.- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed- Specified by:
keyin interfaceorg.bukkit.Keyed- Returns:
- the value of the
keyrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-