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

Method registerKeybindings

Minecraft-Utils/1.8/src/Variables.java:356–366  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

354 }
355
356 @Override
357 public void registerKeybindings(List<IKeybinding> keybindings) {
358 bsr[] currentKeybindings = getGameSettings().at;
359 bsr[] customKeybindings = new bsr[keybindings.size()];
360 for (int i = 0; i < keybindings.size(); i++) {
361 customKeybindings[i] = (bsr) keybindings.get(i);
362 }
363 getGameSettings().at = Utils.concat(currentKeybindings, customKeybindings);
364
365 getGameSettings().a();
366 }
367
368 @Override
369 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