MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / registerKeybindings

Method registerKeybindings

Minecraft-Utils/1.13/src/Variables.java:376–386  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

374 }
375
376 @Override
377 public void registerKeybindings(List<IKeybinding> keybindings) {
378 cfe[] currentKeybindings = getGameSettings().aw;
379 cfe[] customKeybindings = new cfe[keybindings.size()];
380 for (int i = 0; i < keybindings.size(); i++) {
381 customKeybindings[i] = (cfe) keybindings.get(i);
382 }
383 getGameSettings().aw = Utils.concat(currentKeybindings, customKeybindings);
384
385 getGameSettings().a();
386 }
387
388 @Override
389 public void playSound(String sound, float pitch) {

Callers

nothing calls this directly

Calls 5

getGameSettingsMethod · 0.95
concatMethod · 0.95
sizeMethod · 0.80
getMethod · 0.65
aMethod · 0.45

Tested by

no test coverage detected