Record Class CrucibleRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.CrucibleRecipe
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record CrucibleRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input, io.github.pylonmc.rebar.recipe.FluidOrItem.Fluid output)
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<CrucibleRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionCrucibleRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input, io.github.pylonmc.rebar.recipe.FluidOrItem.Fluid output) Creates an instance of aCrucibleReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Guidisplay()final booleanIndicates whether some other object is "equal to" this one.static Set<org.bukkit.NamespacedKey> static List<org.bukkit.inventory.ItemStack> @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.io.github.pylonmc.rebar.recipe.RecipeInput.Iteminput()Returns the value of theinputrecord component.static booleanisValid(org.bukkit.inventory.ItemStack item) @NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.booleanmatches(org.bukkit.inventory.ItemStack inputItem) io.github.pylonmc.rebar.recipe.FluidOrItem.Fluidoutput()Returns the value of theoutputrecord 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
-
CrucibleRecipe
public CrucibleRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput.Item input, @NotNull io.github.pylonmc.rebar.recipe.FluidOrItem.Fluid output) Creates an instance of aCrucibleReciperecord class.- Parameters:
key- the value for thekeyrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord component
-
-
Method Details
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getHeatedBlocks
-
getHeatSources
-
isValid
public static boolean isValid(org.bukkit.inventory.ItemStack item) -
display
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
matches
public boolean matches(org.bukkit.inventory.ItemStack inputItem) -
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
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.Item input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
@NotNull public io.github.pylonmc.rebar.recipe.FluidOrItem.Fluid output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-