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

Method registerKeybindings

Minecraft-Utils/1.8.8/src/Variables.java:367–377  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

365 }
366
367 @Override
368 public void registerKeybindings(List<IKeybinding> keybindings) {
369 avb[] currentKeybindings = getGameSettings().aw;
370 avb[] customKeybindings = new avb[keybindings.size()];
371 for (int i = 0; i < keybindings.size(); i++) {
372 customKeybindings[i] = (avb) keybindings.get(i);
373 }
374 getGameSettings().aw = Utils.concat(currentKeybindings, customKeybindings);
375
376 getGameSettings().a();
377 }
378
379 @Override
380 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