MCPcopy Create free account
hub / github.com/demoth/jake2 / Key_Unbind_f

Method Key_Unbind_f

client/src/main/java/jake2/client/Key.java:939–953  ·  view source on GitHub ↗
(List<String> args)

Source from the content-addressed store, hash-verified

937 }
938
939 private static void Key_Unbind_f(List<String> args) {
940
941 if (args.size() != 2) {
942 Com.Printf("unbind <key> : remove commands from a key\n");
943 return;
944 }
945
946 int b = Key.StringToKeynum(args.get(1));
947 if (b == -1) {
948 Com.Printf("\"" + args.get(1) + "\" isn't a valid key\n");
949 return;
950 }
951
952 Key.SetBinding(b, null);
953 }
954
955 private static void Key_Unbindall_f() {
956 for (int i = 0; i < 256; i++)

Callers

nothing calls this directly

Calls 5

PrintfMethod · 0.95
StringToKeynumMethod · 0.95
SetBindingMethod · 0.95
sizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected