Record Class FocusNavigationEvent.ArrowNavigation
java.lang.Object
java.lang.Record
net.minecraft.client.gui.navigation.FocusNavigationEvent.ArrowNavigation
- All Implemented Interfaces:
FocusNavigationEvent
- Enclosing interface:
FocusNavigationEvent
public static record FocusNavigationEvent.ArrowNavigation(ScreenDirection direction, @Nullable ScreenRectangle previousFocus)
extends Record
implements FocusNavigationEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface FocusNavigationEvent
FocusNavigationEvent.ArrowNavigation, FocusNavigationEvent.InitialFocus, FocusNavigationEvent.TabNavigation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScreenDirectionThe field for thedirectionrecord component.private final @Nullable ScreenRectangleThe field for thepreviousFocusrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArrowNavigation(ScreenDirection direction) ArrowNavigation(ScreenDirection direction, @Nullable ScreenRectangle previousFocus) Creates an instance of aArrowNavigationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable ScreenRectangleReturns the value of thepreviousFocusrecord component.final StringtoString()Returns a string representation of this record class.with(ScreenRectangle previousFocus)
-
Field Details
-
direction
The field for thedirectionrecord component. -
previousFocus
The field for thepreviousFocusrecord component.
-
-
Constructor Details
-
Method Details
-
getVerticalDirectionForInitialFocus
- Specified by:
getVerticalDirectionForInitialFocusin interfaceFocusNavigationEvent
-
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). -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
previousFocus
Returns the value of thepreviousFocusrecord component.- Returns:
- the value of the
previousFocusrecord component
-