Record Class NativeUiInput.Ancestor
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Ancestor
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Ancestor(NativeUiInput.Bounds bounds, boolean clip, boolean scroll, NativeUiInput.Bounds alternateTrack)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAncestor(NativeUiInput.Bounds bounds, boolean clip, boolean scroll, NativeUiInput.Bounds alternateTrack) Creates an instance of aAncestorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealternateTrackrecord component.bounds()Returns the value of theboundsrecord component.booleanclip()Returns the value of thecliprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanscroll()Returns the value of thescrollrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Ancestor
public Ancestor(NativeUiInput.Bounds bounds, boolean clip, boolean scroll, NativeUiInput.Bounds alternateTrack) Creates an instance of aAncestorrecord class.- Parameters:
bounds- the value for theboundsrecord componentclip- the value for thecliprecord componentscroll- the value for thescrollrecord componentalternateTrack- the value for thealternateTrackrecord component
-
-
Method Details
-
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. -
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
clip
public boolean clip()Returns the value of thecliprecord component.- Returns:
- the value of the
cliprecord component
-
scroll
public boolean scroll()Returns the value of thescrollrecord component.- Returns:
- the value of the
scrollrecord component
-
alternateTrack
Returns the value of thealternateTrackrecord component.- Returns:
- the value of the
alternateTrackrecord component
-