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

Method AudioButton

Minecraft-Utils/1.9/src/AudioButton.java:30–39  ·  view source on GitHub ↗
(int id, int x, int y, AudioCallback callback)

Source from the content-addressed store, hash-verified

28 private int errorTicks;
29
30 public AudioButton(int id, int x, int y, AudioCallback callback) {
31 super(ITEMS, 16 * 5, 0, id, x, y);
32 this.callback = callback;
33 try {
34 File dir = FileUtils.createDir(new File(MinecraftFactory.getClassProxyCallback().getModDirectory(), "media/" + MinecraftFactory.getVars().getGameProfile().getId().toString()));
35 tmpFile = FileUtils.createFile(new File(dir, "audio.wav.tmp"));
36 } catch (IOException e1) {
37 e1.printStackTrace();
38 }
39 }
40
41 @Override
42 public void tick() {

Callers

nothing calls this directly

Calls 8

createDirMethod · 0.95
getClassProxyCallbackMethod · 0.95
getVarsMethod · 0.95
createFileMethod · 0.95
getModDirectoryMethod · 0.65
getIdMethod · 0.65
getGameProfileMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected