Record Class Slot
java.lang.Object
java.lang.Record
me.agent.vgui.api.contents.Slot
- Record Components:
row- zero-based rowcolumn- zero-based column
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.static SlotfromIndex(int index, int columns) Converts a flat slot index back to a position for a view that iscolumnswide.final inthashCode()Returns a hash code value for this object.intindex(int columns) Converts this position to a flat slot index for a view that iscolumnswide.static Slotof(int row, int column) Creates a slot position.introw()Returns the value of therowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Slot
-
-
Method Details
-
of
Creates a slot position. -
index
public int index(int columns) Converts this position to a flat slot index for a view that iscolumnswide. -
fromIndex
Converts a flat slot index back to a position for a view that iscolumnswide. -
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 with thecomparemethod from their corresponding wrapper classes. -
row
-
column
-