Package net.minecraft.src
Class KeyBinding
- java.lang.Object
-
- net.minecraft.src.KeyBinding
-
@Client public class KeyBinding extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
category
static it.unimi.dsi.fastutil.ints.Int2ObjectMap<KeyBinding>
hash
static java.util.List<KeyBinding>
keybindArray
int
keyCode
java.lang.String
keyDescription
boolean
pressed
int
pressTime
-
Constructor Summary
Constructors Constructor Description KeyBinding(java.lang.String description, int defaultKey)
Deprecated.KeyBinding(java.lang.String category, java.lang.String description, int defaultKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHeld()
boolean
isPressed()
static void
onTick(int var0)
void
rebind(int to)
static void
resetKeyBindingArrayAndHash()
static void
setKeyBindState(int var0, boolean var1)
static void
unPressAllKeys()
-
-
-
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
-
-
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()
-
-