Record Class NativeUiCollectionWindow
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiCollectionWindow
-
Constructor Summary
ConstructorsConstructorDescriptionNativeUiCollectionWindow(String key, int size, net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Window range, float cellWidth, float cellHeight) Creates an instance of aNativeUiCollectionWindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecellHeightrecord component.floatReturns the value of thecellWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.static NativeUiCollectionWindowfrom(NativeUiScene.Node node) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Windowrange()Returns the value of therangerecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.visible(NativeUiLayout.Box root) visible(NativeUiLayout.Box root, NativeUiScene.Node focused)
-
Constructor Details
-
NativeUiCollectionWindow
public NativeUiCollectionWindow(String key, int size, net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Window range, float cellWidth, float cellHeight) Creates an instance of aNativeUiCollectionWindowrecord class.- Parameters:
key- the value for thekeyrecord componentsize- the value for thesizerecord componentrange- the value for therangerecord componentcellWidth- the value for thecellWidthrecord componentcellHeight- the value for thecellHeightrecord component
-
-
Method Details
-
from
-
visible
public static Map<String, net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Window> visible(NativeUiLayout.Box root) -
visible
public static Map<String, net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Window> visible(NativeUiLayout.Box root, NativeUiScene.Node focused) -
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. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
range
public net.raphimc.viabedrock.api.resourcepack.ui.UiBindings.Window range()Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
cellWidth
public float cellWidth()Returns the value of thecellWidthrecord component.- Returns:
- the value of the
cellWidthrecord component
-
cellHeight
public float cellHeight()Returns the value of thecellHeightrecord component.- Returns:
- the value of the
cellHeightrecord component
-