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

Method registerKeybindings

Minecraft-Utils/1.12.2/src/Variables.java:363–373  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

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