Package org.spout.api.gui.render

Examples of org.spout.api.gui.render.RenderPart


      if (hungerTicks == 98) {
        x = 0.09f * SCALE;
        y = -0.77f;
        for (int i = 0; i < 10; i++) {

          RenderPart part = parts.get(i);
          RenderPart partBg = parts.get(i + 10);

          int rand = random.nextInt(3);
          if (rand == 0) {
            y = -0.765f; // Twitch up
          } else if (rand == 1) {
            y = -0.775f; // Twitch down
          }

          part.setSprite(new Rectangle(x, y, 0.075f * SCALE, 0.07f));
          partBg.setSprite(new Rectangle(x, y, 0.075f * SCALE, 0.07f));
          x += dx;
        }
        hungerTicks++;
        widget.update();
      } else if (hungerTicks == 100) {
View Full Code Here

TOP

Related Classes of org.spout.api.gui.render.RenderPart

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.