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

Method registerKeybindings

Minecraft-Utils/1.11/src/Variables.java:364–374  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

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