Record Class StrainingRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.StrainingRecipe
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record StrainingRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Fluid input, @NotNull io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, @NotNull org.bukkit.inventory.ItemStack outputItem)
extends Record
implements io.github.pylonmc.rebar.recipe.RebarRecipe
-
Nested Class Summary
Nested 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<StrainingRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionStrainingRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Fluid input, @NotNull io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, @NotNull org.bukkit.inventory.ItemStack outputItem) Creates an instance of aStrainingReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Guidisplay()final booleanIndicates whether some other object is "equal to" this one.@NotNull List<io.github.pylonmc.rebar.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()static @Nullable StrainingRecipegetRecipeForFluid(io.github.pylonmc.rebar.fluid.RebarFluid fluid) @NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.io.github.pylonmc.rebar.recipe.RecipeInput.Fluidinput()Returns the value of theinputrecord component.@NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.@NotNull io.github.pylonmc.rebar.fluid.RebarFluidReturns the value of theoutputFluidrecord component.@NotNull org.bukkit.inventory.ItemStackReturns the value of theoutputItemrecord 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
-
StrainingRecipe
public StrainingRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput.Fluid input, @NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, @NotNull @NotNull org.bukkit.inventory.ItemStack outputItem) Creates an instance of aStrainingReciperecord class.- Parameters:
key- the value for thekeyrecord componentinput- the value for theinputrecord componentoutputFluid- the value for theoutputFluidrecord componentoutputItem- the value for theoutputItemrecord component
-
-
Method Details
-
getRecipeForFluid
@Nullable public static @Nullable StrainingRecipe getRecipeForFluid(io.github.pylonmc.rebar.fluid.RebarFluid fluid) -
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
-
display
@NotNull public @NotNull 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
@NotNull public @NotNull 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
-
input
@NotNull public io.github.pylonmc.rebar.recipe.RecipeInput.Fluid input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
outputFluid
@NotNull public @NotNull io.github.pylonmc.rebar.fluid.RebarFluid outputFluid()Returns the value of theoutputFluidrecord component.- Returns:
- the value of the
outputFluidrecord component
-
outputItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack outputItem()Returns the value of theoutputItemrecord component.- Returns:
- the value of the
outputItemrecord component
-