Examples of onClick()


Examples of org.spout.vanilla.inventory.window.Window.onClick()

    Window window = player.get(WindowHolder.class).getActiveWindow();
    boolean result = false;
    int slot = message.getSlot();
    ClickArguments args = window.getClickArguments(slot, ClickArguments.ClickAction.getAction(message.getMode(), message.getButton()));
    if (args != null) {
      result = window.onClick(args);
    }
    session.send(new WindowTransactionMessage(window, message.getTransaction(), result));
  }
}
View Full Code Here

Examples of org.spoutcraft.api.gui.ListWidgetItem.onClick()

          action = new PacketControlAction(lw.getScreen(), lw, "click", lw.getSelectedRow());
        } else {
          action = new PacketControlAction(lw.getScreen(), lw, "doubleclick", lw.getSelectedRow());
        }
        ListWidgetItem current = lw.getSelectedItem();
        current.onClick(x - 5, y - currentHeight, doubleclick);
        lw.onSelected(lw.getSelectedRow(), doubleclick);
        if (lw instanceof ComboBoxView) {
          PacketComboBox packet = new PacketComboBox(((ComboBoxView) lw).getComboBox());
          SpoutClient.getInstance().getPacketManager().sendSpoutPacket(packet);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.