Package org.spout.api.gui

Examples of org.spout.api.gui.Widget


    this.offset = offset;
    widgets = new Widget[positions.length];
    for (int i = 0; i < widgets.length; i++) {
      final RenderSlot slot;
      if (VanillaPlugin.getInstance().getEngine() instanceof Client) {
        Widget widget = widgets[i] = ((Client) VanillaPlugin.getInstance().getEngine()).getScreenStack().createWidget();
        slot = widget.add(RenderSlot.class);
        slot.setPosition(positions[i]);
      } else {
        slot = new RenderSlot();
      }
      slot.setSlot(new Slot(inventory, i));
View Full Code Here

TOP

Related Classes of org.spout.api.gui.Widget

Copyright © 2018 www.massapicom. 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.