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

Method registerKeybindings

Minecraft-Utils/1.7.10/src/Variables.java:358–368  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

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