(int id, int x, int y, AudioCallback callback)
| 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() { |
nothing calls this directly
no test coverage detected