Record Class GuiPaintInputs
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiPaintInputs
- Record Components:
properties- named immutable values, at most 128stateQueries- additional selector queries, at most 64
public record GuiPaintInputs(Map<String,Object> properties, Set<GuiStyleState> stateQueries)
extends Record
Immutable declared worklet inputs for one retained component. Properties belong to that component rather than its
descendants; nested paint commands preserve their owner's inputs. Values must themselves be immutable. Standard
interaction flags and explicitly authored selector states are available without declaring queries. Additional queries
allow a component's state providers to contribute custom or structural selector states.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiPaintInputs(Map<String, Object> properties, Set<GuiStyleState> stateQueries) Creates an instance of aGuiPaintInputsrecord 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.Returns the value of thepropertiesrecord component.Returns the value of thestateQueriesrecord component.final StringtoString()Returns a string representation of this record class.withProperty(String name, Object value) Declares a property without changing the original input snapshot.withState(GuiStyleState state) Adds a selector-state query without changing the original input snapshot.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
GuiPaintInputs
Creates an instance of aGuiPaintInputsrecord class.- Parameters:
properties- the value for thepropertiesrecord componentstateQueries- the value for thestateQueriesrecord component
-
-
Method Details
-
withProperty
Declares a property without changing the original input snapshot. -
withState
Adds a selector-state query without changing the original input snapshot. -
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). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
stateQueries
Returns the value of thestateQueriesrecord component.- Returns:
- the value of the
stateQueriesrecord component
-