Record Class ShimmerAltarRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.ShimmerAltarRecipe
- Record Components:
inputs- pedestal inputs (must be of size 8) (setting the itemstack to have an amount that's not 1 will have no effect)catalyst- the item which must be right-clicked on the magic altar to start the craft (setting the itemstack to have an amount that's not 1 will have no effect)result- the output (respects amount)
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record ShimmerAltarRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull List<@Nullable io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, io.github.pylonmc.rebar.recipe.RecipeInput.Item catalyst, @NotNull org.bukkit.inventory.ItemStack result, int timeSeconds)
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<ShimmerAltarRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionShimmerAltarRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull List<@Nullable io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, io.github.pylonmc.rebar.recipe.RecipeInput.Item catalyst, @NotNull org.bukkit.inventory.ItemStack result, int timeSeconds) Creates an instance of aShimmerAltarReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.github.pylonmc.rebar.recipe.RecipeInput.Itemcatalyst()Returns the value of thecatalystrecord component.@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()@NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.booleaningredientsMatch(List<org.bukkit.inventory.ItemStack> ingredients) @NotNull List<@Nullable io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs()Returns the value of theinputsrecord component.booleanisValidRecipe(List<org.bukkit.inventory.ItemStack> ingredients, org.bukkit.inventory.ItemStack catalyst) @NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.@NotNull org.bukkit.inventory.ItemStackresult()Returns the value of theresultrecord component.intReturns the value of thetimeSecondsrecord 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
-
ShimmerAltarRecipe
public ShimmerAltarRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull List<@Nullable io.github.pylonmc.rebar.recipe.RecipeInput.Item> inputs, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput.Item catalyst, @NotNull @NotNull org.bukkit.inventory.ItemStack result, int timeSeconds) Creates an instance of aShimmerAltarReciperecord class.
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
ingredientsMatch
-
isValidRecipe
public boolean isValidRecipe(List<org.bukkit.inventory.ItemStack> ingredients, org.bukkit.inventory.ItemStack catalyst) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
inputs
-
catalyst
-
result
-
timeSeconds
public int timeSeconds()Returns the value of thetimeSecondsrecord component.- Returns:
- the value of the
timeSecondsrecord component
-