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

Method registerKeybindings

Minecraft-Utils/1.12/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 bhw[] currentKeybindings = getGameSettings().as;
367 bhw[] customKeybindings = new bhw[keybindings.size()];
368 for (int i = 0; i < keybindings.size(); i++) {
369 customKeybindings[i] = (bhw) keybindings.get(i);
370 }
371 getGameSettings().as = 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