Package org.spout.vanilla

Examples of org.spout.vanilla.VanillaPlugin


  private static final String authString = "OK";
  private final String params;
  private final Runnable runnable;

  public ClientLoginAuth(String hash, Runnable runnable) {
    VanillaPlugin p = VanillaPlugin.getInstance();
    String encodedUser = "";
    String encodedId = "";
    try {
      encodedUser = URLEncoder.encode(p.getUsername(), "UTF-8");
      encodedId = URLEncoder.encode(p.getSessionId(), "UTF-8");
    } catch (UnsupportedEncodingException e) {
      e.printStackTrace();
    }
    this.params = "user=" + encodedUser + "&sessionId=" + encodedId + "&serverId=" + hash;
    System.out.println(params);
View Full Code Here


        background = label = null;
        break;
      case CLIENT:
        background = ((Client) VanillaPlugin.getInstance().getEngine()).getScreenStack().createWidget();
        label = ((Client) VanillaPlugin.getInstance().getEngine()).getScreenStack().createWidget();
        VanillaPlugin plugin = VanillaPlugin.getInstance();
        popup.setGrabsMouse(false);

        // Setup the window to render
        RenderPartComponent backgroundRect = background.add(RenderPartComponent.class);
        backgroundRect.setRenderMaterial(type.getRenderMaterial());
View Full Code Here

TOP

Related Classes of org.spout.vanilla.VanillaPlugin

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.