Enum Class NavigationDirection
- All Implemented Interfaces:
Serializable,Comparable<NavigationDirection>,Constable
- Mappings:
Namespace Name named net/minecraft/client/gui/navigation/NavigationDirectionintermediary net/minecraft/class_8028official fmq
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAxis()Returns the comparator that sorts the coordinates in ascending order.booleanisAfter(int a, int b) Returns whether the coordinateacomes afterb.booleanisBefore(int a, int b) Returns whether the coordinateacomes beforeb.booleanstatic NavigationDirectionReturns the enum constant of this class with the specified name.static NavigationDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UP
- Mappings:
Namespace Name Mixin selector named UPLnet/minecraft/client/gui/navigation/NavigationDirection;UP:Lnet/minecraft/client/gui/navigation/NavigationDirection;intermediary field_41826Lnet/minecraft/class_8028;field_41826:Lnet/minecraft/class_8028;official aLfmq;a:Lfmq;
-
DOWN
- Mappings:
Namespace Name Mixin selector named DOWNLnet/minecraft/client/gui/navigation/NavigationDirection;DOWN:Lnet/minecraft/client/gui/navigation/NavigationDirection;intermediary field_41827Lnet/minecraft/class_8028;field_41827:Lnet/minecraft/class_8028;official bLfmq;b:Lfmq;
-
LEFT
- Mappings:
Namespace Name Mixin selector named LEFTLnet/minecraft/client/gui/navigation/NavigationDirection;LEFT:Lnet/minecraft/client/gui/navigation/NavigationDirection;intermediary field_41828Lnet/minecraft/class_8028;field_41828:Lnet/minecraft/class_8028;official cLfmq;c:Lfmq;
-
RIGHT
- Mappings:
Namespace Name Mixin selector named RIGHTLnet/minecraft/client/gui/navigation/NavigationDirection;RIGHT:Lnet/minecraft/client/gui/navigation/NavigationDirection;intermediary field_41829Lnet/minecraft/class_8028;field_41829:Lnet/minecraft/class_8028;official dLfmq;d:Lfmq;
-
-
Field Details
-
comparator
- Mappings:
Namespace Name Mixin selector named comparatorLnet/minecraft/client/gui/navigation/NavigationDirection;comparator:Lit/unimi/dsi/fastutil/ints/IntComparator;intermediary field_41830Lnet/minecraft/class_8028;field_41830:Lit/unimi/dsi/fastutil/ints/IntComparator;official eLfmq;e:Lit/unimi/dsi/fastutil/ints/IntComparator;
-
-
Constructor Details
-
NavigationDirection
private NavigationDirection()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getAxis
- Mappings:
Namespace Name Mixin selector named getAxisLnet/minecraft/client/gui/navigation/NavigationDirection;getAxis()Lnet/minecraft/client/gui/navigation/NavigationAxis;intermediary method_48237Lnet/minecraft/class_8028;method_48237()Lnet/minecraft/class_8027;official aLfmq;a()Lfmp;
-
getOpposite
- Mappings:
Namespace Name Mixin selector named getOppositeLnet/minecraft/client/gui/navigation/NavigationDirection;getOpposite()Lnet/minecraft/client/gui/navigation/NavigationDirection;intermediary method_48239Lnet/minecraft/class_8028;method_48239()Lnet/minecraft/class_8028;official bLfmq;b()Lfmq;
-
isPositive
public boolean isPositive()- Mappings:
Namespace Name Mixin selector named isPositiveLnet/minecraft/client/gui/navigation/NavigationDirection;isPositive()Zintermediary method_48241Lnet/minecraft/class_8028;method_48241()Zofficial cLfmq;c()Z
-
isAfter
public boolean isAfter(int a, int b) Returns whether the coordinateacomes afterb.For example, if navigating downwards,
2comes after1, while the opposite is true if navigating upwards. This always returnsfalseif two arguments are equal.- Returns:
- whether the coordinate
acomes afterb - See Also:
- Mappings:
Namespace Name Mixin selector named isAfterLnet/minecraft/client/gui/navigation/NavigationDirection;isAfter(II)Zintermediary method_48238Lnet/minecraft/class_8028;method_48238(II)Zofficial aLfmq;a(II)Z
-
isBefore
public boolean isBefore(int a, int b) Returns whether the coordinateacomes beforeb.For example, if navigating downwards,
1comes before2, while the opposite is true if navigating upwards. This always returnsfalseif two arguments are equal.- Returns:
- whether the coordinate
acomes beforeb - See Also:
- Mappings:
Namespace Name Mixin selector named isBeforeLnet/minecraft/client/gui/navigation/NavigationDirection;isBefore(II)Zintermediary method_48240Lnet/minecraft/class_8028;method_48240(II)Zofficial bLfmq;b(II)Z
-
getComparator
Returns the comparator that sorts the coordinates in ascending order.- Returns:
- the comparator that sorts the coordinates in ascending order
- Mappings:
Namespace Name Mixin selector named getComparatorLnet/minecraft/client/gui/navigation/NavigationDirection;getComparator()Lit/unimi/dsi/fastutil/ints/IntComparator;intermediary method_48243Lnet/minecraft/class_8028;method_48243()Lit/unimi/dsi/fastutil/ints/IntComparator;official dLfmq;d()Lit/unimi/dsi/fastutil/ints/IntComparator;
-