Record Class GlyphPositions.ChestSlotsButtons
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.ChestSlotsButtons
- Enclosing class:
GlyphPositions
public static record GlyphPositions.ChestSlotsButtons(int[] scrollUp, int[] scrollDown, int[] answer1, int[] answer2, int[] answer3, int[] answer4)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChestSlotsButtons(int[] scrollUp, int[] scrollDown, int[] answer1, int[] answer2, int[] answer3, int[] answer4) Creates an instance of aChestSlotsButtonsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]answer1()Returns the value of theanswer1record component.int[]answer2()Returns the value of theanswer2record component.int[]answer3()Returns the value of theanswer3record component.int[]answer4()Returns the value of theanswer4record component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.int[]Returns the value of thescrollDownrecord component.int[]scrollUp()Returns the value of thescrollUprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChestSlotsButtons
public ChestSlotsButtons(int[] scrollUp, int[] scrollDown, int[] answer1, int[] answer2, int[] answer3, int[] answer4) Creates an instance of aChestSlotsButtonsrecord class.- Parameters:
scrollUp- the value for thescrollUprecord componentscrollDown- the value for thescrollDownrecord componentanswer1- the value for theanswer1record componentanswer2- the value for theanswer2record componentanswer3- the value for theanswer3record componentanswer4- the value for theanswer4record component
-
-
Method Details
-
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). -
scrollUp
public int[] scrollUp()Returns the value of thescrollUprecord component.- Returns:
- the value of the
scrollUprecord component
-
scrollDown
public int[] scrollDown()Returns the value of thescrollDownrecord component.- Returns:
- the value of the
scrollDownrecord component
-
answer1
public int[] answer1()Returns the value of theanswer1record component.- Returns:
- the value of the
answer1record component
-
answer2
public int[] answer2()Returns the value of theanswer2record component.- Returns:
- the value of the
answer2record component
-
answer3
public int[] answer3()Returns the value of theanswer3record component.- Returns:
- the value of the
answer3record component
-
answer4
public int[] answer4()Returns the value of theanswer4record component.- Returns:
- the value of the
answer4record component
-