use of betterquesting.client.toolbox.GuiToolIconProxy in project BetterQuesting by Funwayguy.
the class ToolboxToolIcon method onMouseClick.
@Override
public void onMouseClick(int mx, int my, int click) {
if (click != 0) {
return;
}
GuiButtonQuestInstance btn = gui.getQuestLine().getButtonAt(mx, my);
if (btn != null) {
Minecraft mc = Minecraft.getMinecraft();
btn.playPressSound(mc.getSoundHandler());
mc.displayGuiScreen(new GuiToolIconProxy(mc.currentScreen, btn.getQuest()));
}
}
Aggregations