Record Class NativeUiLayout.Box
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiLayout.Box
- Enclosing class:
NativeUiLayout
public static record NativeUiLayout.Box(NativeUiScene.Node node, NativeUiLayout.Rect bounds, NativeUiLayout.Rect clip, NativeUiLayout.Size content, NativeUiLayout.Rect scrollViewport, float layer, List<NativeUiLayout.Box> children)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBox(NativeUiScene.Node node, NativeUiLayout.Rect bounds, NativeUiLayout.Rect clip, NativeUiLayout.Size content, NativeUiLayout.Rect scrollViewport, float layer, List<NativeUiLayout.Box> children) Creates an instance of aBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.children()Returns the value of thechildrenrecord component.clip()Returns the value of thecliprecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlayer()Returns the value of thelayerrecord component.node()Returns the value of thenoderecord component.Returns the value of thescrollViewportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Box
public Box(NativeUiScene.Node node, NativeUiLayout.Rect bounds, NativeUiLayout.Rect clip, NativeUiLayout.Size content, NativeUiLayout.Rect scrollViewport, float layer, List<NativeUiLayout.Box> children) Creates an instance of aBoxrecord class.- Parameters:
node- the value for thenoderecord componentbounds- the value for theboundsrecord componentclip- the value for thecliprecord componentcontent- the value for thecontentrecord componentscrollViewport- the value for thescrollViewportrecord componentlayer- the value for thelayerrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
visibleBounds
-
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. -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
clip
Returns the value of thecliprecord component.- Returns:
- the value of the
cliprecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
scrollViewport
Returns the value of thescrollViewportrecord component.- Returns:
- the value of the
scrollViewportrecord component
-
layer
public float layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-