Record Class GuiStyleState
java.lang.Object
java.lang.Record
com.render.api.gui.style.GuiStyleState
- Record Components:
name- normalized state namestandard- standard pseudo-class, ornullfor a custom state
Standard or component-defined state passed to a state-provider SPI.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiStyleState(String name, GuiPseudoClass standard) Creates an instance of aGuiStyleStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiStyleStateCreates a custom state query.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.standard()Returns the value of thestandardrecord component.static GuiStyleStatestandard(GuiPseudoClass pseudoClass) Creates a standard state query.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
standard
Creates a standard state query.- Parameters:
pseudoClass- standard pseudo-class- Returns:
- state query
-
custom
Creates a custom state query.- Parameters:
name- custom state name- Returns:
- state query
-
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 withObjects::equals(Object,Object). -
name
-
standard
-