Record Class DrillingDisplayRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.base.recipes.DrillingDisplayRecipe
- All Implemented Interfaces:
io.github.pylonmc.pylon.core.recipe.PylonRecipe,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public record DrillingDisplayRecipe(org.bukkit.NamespacedKey key, org.bukkit.inventory.ItemStack drill, org.bukkit.inventory.ItemStack result)
extends Record
implements io.github.pylonmc.pylon.core.recipe.PylonRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.github.pylonmc.pylon.core.recipe.RecipeType<DrillingDisplayRecipe> -
Constructor Summary
ConstructorsConstructorDescriptionDrillingDisplayRecipe(org.bukkit.NamespacedKey key, org.bukkit.inventory.ItemStack drill, org.bukkit.inventory.ItemStack result) Creates an instance of aDrillingDisplayReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Guidisplay()org.bukkit.inventory.ItemStackdrill()Returns the value of thedrillrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull List<@NotNull io.github.pylonmc.pylon.core.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()@NotNull List<@NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.org.bukkit.inventory.ItemStackresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.pylonmc.pylon.core.recipe.PylonRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
RECIPE_TYPE
public static final io.github.pylonmc.pylon.core.recipe.RecipeType<DrillingDisplayRecipe> RECIPE_TYPE
-
-
Constructor Details
-
DrillingDisplayRecipe
public DrillingDisplayRecipe(org.bukkit.NamespacedKey key, org.bukkit.inventory.ItemStack drill, org.bukkit.inventory.ItemStack result) Creates an instance of aDrillingDisplayReciperecord class.- Parameters:
key- the value for thekeyrecord componentdrill- the value for thedrillrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
getResults
@NotNull public @NotNull List<@NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem> getResults()- Specified by:
getResultsin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
display
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
drill
public org.bukkit.inventory.ItemStack drill()Returns the value of thedrillrecord component.- Returns:
- the value of the
drillrecord component
-
result
public org.bukkit.inventory.ItemStack result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-