Record Class AssemblingRecipe.Step
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.AssemblingRecipe.Step
- Enclosing class:
AssemblingRecipe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddDisplaysrecord component.intclicks()Returns the value of theclicksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.inventory.ItemStackicon()Returns the value of theiconrecord component.Returns the value of theremoveDisplaysrecord component.tool()Returns the value of thetoolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Step
public Step(String tool, org.bukkit.inventory.ItemStack icon, int clicks, List<AssemblingRecipe.AddDisplay> addDisplays, List<String> removeDisplays) Creates an instance of aSteprecord class.- Parameters:
tool- the value for thetoolrecord componenticon- the value for theiconrecord componentclicks- the value for theclicksrecord componentaddDisplays- the value for theaddDisplaysrecord componentremoveDisplays- the value for theremoveDisplaysrecord component
-
-
Method Details
-
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. -
tool
Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
icon
public org.bukkit.inventory.ItemStack icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
clicks
public int clicks()Returns the value of theclicksrecord component.- Returns:
- the value of the
clicksrecord component
-
addDisplays
Returns the value of theaddDisplaysrecord component.- Returns:
- the value of the
addDisplaysrecord component
-
removeDisplays
-