Record Class GuiGridPlacement
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiGridPlacement
- Record Components:
rowStart- row start or zerocolumnStart- column start or zerorowSpan- positive row spancolumnSpan- positive column spanarea- named area, or emptyrowLine- named row line, or emptycolumnLine- named column line, or empty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiGridPlacement(int rowStart, int columnStart, int rowSpan, int columnSpan, String area, String rowLine, String columnLine) Creates an instance of aGuiGridPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarea()Returns the value of thearearecord component.static GuiGridPlacementstatic GuiGridPlacementcell(int row, int column) Returns the value of thecolumnLinerecord component.intReturns the value of thecolumnSpanrecord component.intReturns the value of thecolumnStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GuiGridPlacementnamedLines(String rowLine, String columnLine) rowLine()Returns the value of therowLinerecord component.introwSpan()Returns the value of therowSpanrecord component.introwStart()Returns the value of therowStartrecord component.static GuiGridPlacementspan(int row, int column, int rowSpan, int columnSpan) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
AUTO
-
-
Constructor Details
-
GuiGridPlacement
public GuiGridPlacement(int rowStart, int columnStart, int rowSpan, int columnSpan, String area, String rowLine, String columnLine) Creates an instance of aGuiGridPlacementrecord class.- Parameters:
rowStart- the value for therowStartrecord componentcolumnStart- the value for thecolumnStartrecord componentrowSpan- the value for therowSpanrecord componentcolumnSpan- the value for thecolumnSpanrecord componentarea- the value for thearearecord componentrowLine- the value for therowLinerecord componentcolumnLine- the value for thecolumnLinerecord component
-
-
Method Details
-
cell
-
span
-
area
-
namedLines
-
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. -
rowStart
-
columnStart
public int columnStart()Returns the value of thecolumnStartrecord component.- Returns:
- the value of the
columnStartrecord component
-
rowSpan
-
columnSpan
public int columnSpan()Returns the value of thecolumnSpanrecord component.- Returns:
- the value of the
columnSpanrecord component
-
area
-
rowLine
-
columnLine
Returns the value of thecolumnLinerecord component.- Returns:
- the value of the
columnLinerecord component
-