Record Class NativeUiFocus.Target
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiFocus.Target
- Enclosing class:
NativeUiFocus
public static record NativeUiFocus.Target(NativeUiLayout.Box box, NativeUiFocus.Clip clip, List<NativeUiLayout.Box> ancestors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTarget(NativeUiLayout.Box box, NativeUiFocus.Clip clip, List<NativeUiLayout.Box> ancestors) Creates an instance of aTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theancestorsrecord component.box()Returns the value of theboxrecord component.clip()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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
Creates an instance of aTargetrecord class.- Parameters:
box- the value for theboxrecord componentclip- the value for thecliprecord componentancestors- the value for theancestorsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-
clip
Returns the value of thecliprecord component.- Returns:
- the value of the
cliprecord component
-
ancestors
Returns the value of theancestorsrecord component.- Returns:
- the value of the
ancestorsrecord component
-