Class KeyBinding


  • @Client
    public class KeyBinding
    extends java.lang.Object
    • Field Detail

      • keybindArray

        public static final java.util.List<KeyBinding> keybindArray
      • hash

        public static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<KeyBinding> hash
      • category

        public final java.lang.String category
      • keyDescription

        public final java.lang.String keyDescription
      • keyCode

        public int keyCode
      • pressed

        public boolean pressed
      • pressTime

        public int pressTime
    • Constructor Detail

      • KeyBinding

        public KeyBinding​(java.lang.String category,
                          java.lang.String description,
                          int defaultKey)
      • KeyBinding

        @Deprecated
        public KeyBinding​(java.lang.String description,
                          int defaultKey)
        Deprecated.
    • Method Detail

      • onTick

        public static void onTick​(int var0)
      • setKeyBindState

        public static void setKeyBindState​(int var0,
                                           boolean var1)
      • unPressAllKeys

        public static void unPressAllKeys()
      • resetKeyBindingArrayAndHash

        public static void resetKeyBindingArrayAndHash()
      • rebind

        public void rebind​(int to)
      • isPressed

        public boolean isPressed()
      • isHeld

        public boolean isHeld()