Enum Class NavigationDirection

java.lang.Object
java.lang.Enum<NavigationDirection>
net.minecraft.client.gui.navigation.NavigationDirection
All Implemented Interfaces:
Serializable, Comparable<NavigationDirection>, Constable

@Environment(CLIENT) public enum NavigationDirection extends Enum<NavigationDirection>
Mappings:
Namespace Name
named net/minecraft/client/gui/navigation/NavigationDirection
intermediary net/minecraft/class_8028
official flj
  • Enum Constant Details

    • UP

      public static final NavigationDirection UP
      Mappings:
      Namespace Name Mixin selector
      named UP Lnet/minecraft/client/gui/navigation/NavigationDirection;UP:Lnet/minecraft/client/gui/navigation/NavigationDirection;
      intermediary field_41826 Lnet/minecraft/class_8028;field_41826:Lnet/minecraft/class_8028;
      official a Lflj;a:Lflj;
    • DOWN

      public static final NavigationDirection DOWN
      Mappings:
      Namespace Name Mixin selector
      named DOWN Lnet/minecraft/client/gui/navigation/NavigationDirection;DOWN:Lnet/minecraft/client/gui/navigation/NavigationDirection;
      intermediary field_41827 Lnet/minecraft/class_8028;field_41827:Lnet/minecraft/class_8028;
      official b Lflj;b:Lflj;
    • LEFT

      public static final NavigationDirection LEFT
      Mappings:
      Namespace Name Mixin selector
      named LEFT Lnet/minecraft/client/gui/navigation/NavigationDirection;LEFT:Lnet/minecraft/client/gui/navigation/NavigationDirection;
      intermediary field_41828 Lnet/minecraft/class_8028;field_41828:Lnet/minecraft/class_8028;
      official c Lflj;c:Lflj;
  • Field Details

    • comparator

      private final IntComparator comparator
      Mappings:
      Namespace Name Mixin selector
      named comparator Lnet/minecraft/client/gui/navigation/NavigationDirection;comparator:Lit/unimi/dsi/fastutil/ints/IntComparator;
      intermediary field_41830 Lnet/minecraft/class_8028;field_41830:Lit/unimi/dsi/fastutil/ints/IntComparator;
      official e Lflj;e:Lit/unimi/dsi/fastutil/ints/IntComparator;
  • Constructor Details

    • NavigationDirection

      private NavigationDirection()
  • Method Details

    • values

      public static NavigationDirection[] 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

      public static NavigationDirection valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getAxis

      public NavigationAxis getAxis()
      Mappings:
      Namespace Name Mixin selector
      named getAxis Lnet/minecraft/client/gui/navigation/NavigationDirection;getAxis()Lnet/minecraft/client/gui/navigation/NavigationAxis;
      intermediary method_48237 Lnet/minecraft/class_8028;method_48237()Lnet/minecraft/class_8027;
      official a Lflj;a()Lfli;
    • getOpposite

      public NavigationDirection getOpposite()
      Mappings:
      Namespace Name Mixin selector
      named getOpposite Lnet/minecraft/client/gui/navigation/NavigationDirection;getOpposite()Lnet/minecraft/client/gui/navigation/NavigationDirection;
      intermediary method_48239 Lnet/minecraft/class_8028;method_48239()Lnet/minecraft/class_8028;
      official b Lflj;b()Lflj;
    • isPositive

      public boolean isPositive()
      Mappings:
      Namespace Name Mixin selector
      named isPositive Lnet/minecraft/client/gui/navigation/NavigationDirection;isPositive()Z
      intermediary method_48241 Lnet/minecraft/class_8028;method_48241()Z
      official c Lflj;c()Z
    • isAfter

      public boolean isAfter(int a, int b)
      Returns whether the coordinate a comes after b.

      For example, if navigating downwards, 2 comes after 1, while the opposite is true if navigating upwards. This always returns false if two arguments are equal.

      Returns:
      whether the coordinate a comes after b
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isAfter Lnet/minecraft/client/gui/navigation/NavigationDirection;isAfter(II)Z
      intermediary method_48238 Lnet/minecraft/class_8028;method_48238(II)Z
      official a Lflj;a(II)Z
    • isBefore

      public boolean isBefore(int a, int b)
      Returns whether the coordinate a comes before b.

      For example, if navigating downwards, 1 comes before 2, while the opposite is true if navigating upwards. This always returns false if two arguments are equal.

      Returns:
      whether the coordinate a comes before b
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isBefore Lnet/minecraft/client/gui/navigation/NavigationDirection;isBefore(II)Z
      intermediary method_48240 Lnet/minecraft/class_8028;method_48240(II)Z
      official b Lflj;b(II)Z
    • getComparator

      public IntComparator 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 getComparator Lnet/minecraft/client/gui/navigation/NavigationDirection;getComparator()Lit/unimi/dsi/fastutil/ints/IntComparator;
      intermediary method_48243 Lnet/minecraft/class_8028;method_48243()Lit/unimi/dsi/fastutil/ints/IntComparator;
      official d Lflj;d()Lit/unimi/dsi/fastutil/ints/IntComparator;