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

    • MODIFIER_VALUES

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

      public static KeyModifier getActiveModifier()
    • isKeyCodeModifier

      public static boolean isKeyCodeModifier(InputMappings.Input key)
    • valueFromString

      public static KeyModifier valueFromString(String stringValue)
    • matches

      public abstract boolean matches(InputMappings.Input key)
    • isActive

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

      public abstract ITextComponent getCombinedName(InputMappings.Input key, Supplier<ITextComponent> defaultLogic)