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

Method registerKeybindings

Minecraft-Utils/1.9/src/Variables.java:331–341  ·  view source on GitHub ↗
(List<IKeybinding> keybindings)

Source from the content-addressed store, hash-verified

329 }
330
331 @Override
332 public void registerKeybindings(List<IKeybinding> keybindings) {
333 bcc[] currentKeybindings = getGameSettings().al;
334 bcc[] customKeybindings = new bcc[keybindings.size()];
335 for (int i = 0; i < keybindings.size(); i++) {
336 customKeybindings[i] = (bcc) keybindings.get(i);
337 }
338 getGameSettings().al = Utils.concat(currentKeybindings, customKeybindings);
339
340 getGameSettings().a();
341 }
342
343 @Override
344 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