Enum Class KeyModifier

java.lang.Object
java.lang.Enum<KeyModifier>
net.minecraftforge.client.settings.KeyModifier
All Implemented Interfaces:
Serializable, Comparable<KeyModifier>, Constable

public enum KeyModifier extends Enum<KeyModifier>
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • KeyModifier

      private KeyModifier()
  • Method Details

    • values

      public static KeyModifier[] 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 KeyModifier 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
    • getActiveModifier

      @Deprecated(forRemoval=true, since="1.20.2") public static KeyModifier getActiveModifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getValues

      public static final List<KeyModifier> getValues(boolean includeNone)
    • getModifier

      @Nullable public static @Nullable KeyModifier getModifier(InputConstants.Key key)
    • isKeyCodeModifier

      public static boolean isKeyCodeModifier(InputConstants.Key key)
    • valueFromString

      public static KeyModifier valueFromString(String stringValue)
    • matches

      public abstract boolean matches(InputConstants.Key key)
    • isActive

      public abstract boolean isActive(@Nullable @Nullable IKeyConflictContext conflictContext)
    • getCombinedName

      public abstract Component getCombinedName(InputConstants.Key key, Supplier<Component> defaultLogic)