Record Class GuiMatchedRule
java.lang.Object
java.lang.Record
com.render.api.gui.style.GuiMatchedRule
- Record Components:
name- diagnostic rule nameselector- selectorspecificity- selector specificitylayer- layer indexsourceOrder- source order within its sheetsheetOrder- view stylesheet order
public record GuiMatchedRule(String name, GuiSelector selector, GuiSpecificity specificity, int layer, long sourceOrder, int sheetOrder)
extends Record
Devtools-facing description of a selector that matched a style target.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiMatchedRule(String name, GuiSelector selector, GuiSpecificity specificity, int layer, long sourceOrder, int sheetOrder) Creates an instance of aGuiMatchedRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlayer()Returns the value of thelayerrecord component.name()Returns the value of thenamerecord component.selector()Returns the value of theselectorrecord component.intReturns the value of thesheetOrderrecord component.longReturns the value of thesourceOrderrecord component.Returns the value of thespecificityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiMatchedRule
public GuiMatchedRule(String name, GuiSelector selector, GuiSpecificity specificity, int layer, long sourceOrder, int sheetOrder) Creates an instance of aGuiMatchedRulerecord class.- Parameters:
name- the value for thenamerecord componentselector- the value for theselectorrecord componentspecificity- the value for thespecificityrecord componentlayer- the value for thelayerrecord componentsourceOrder- the value for thesourceOrderrecord componentsheetOrder- the value for thesheetOrderrecord 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. -
name
-
selector
-
specificity
Returns the value of thespecificityrecord component.- Returns:
- the value of the
specificityrecord component
-
layer
-
sourceOrder
public long sourceOrder()Returns the value of thesourceOrderrecord component.- Returns:
- the value of the
sourceOrderrecord component
-
sheetOrder
public int sheetOrder()Returns the value of thesheetOrderrecord component.- Returns:
- the value of the
sheetOrderrecord component
-