Record Class NativeUiScene.Node
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiScene.Node
- Enclosing class:
NativeUiScene
public static record NativeUiScene.Node(String name, String type, com.google.gson.JsonObject properties, List<NativeUiScene.Node> children, int action)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNode(String name, String type, com.google.gson.JsonObject properties, List<NativeUiScene.Node> children, int action) Creates an instance of aNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaction()Returns the value of theactionrecord component.children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.floatcom.google.gson.JsonObjectReturns the value of thepropertiesrecord component.booleanscroll()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Node
public Node(String name, String type, com.google.gson.JsonObject properties, List<NativeUiScene.Node> children, int action) Creates an instance of aNoderecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentproperties- the value for thepropertiesrecord componentchildren- the value for thechildrenrecord componentaction- the value for theactionrecord component
-
-
Method Details
-
string
-
number
-
flag
-
interactive
public boolean interactive() -
scroll
public boolean scroll() -
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
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
properties
public com.google.gson.JsonObject properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
action
public int action()Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-