Record Class FocusNavigationEvent.TabNavigation
java.lang.Object
java.lang.Record
net.minecraft.client.gui.navigation.FocusNavigationEvent.TabNavigation
- All Implemented Interfaces:
FocusNavigationEvent
- Enclosing interface:
FocusNavigationEvent
public static record FocusNavigationEvent.TabNavigation(boolean forward)
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 booleanThe field for theforwardrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTabNavigation(boolean forward) Creates an instance of aTabNavigationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanforward()Returns the value of theforwardrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
forward
private final boolean forwardThe field for theforwardrecord component.
-
-
Constructor Details
-
TabNavigation
public TabNavigation(boolean forward) Creates an instance of aTabNavigationrecord class.- Parameters:
forward- the value for theforwardrecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
forward
public boolean forward()Returns the value of theforwardrecord component.- Returns:
- the value of the
forwardrecord component
-