Package logisticspipes.utils

Examples of logisticspipes.utils.Colors


        GL11.glScaled(0.07, 0.07, 1);
        GL11.glTranslated(-3, 3.5, -0.025);
      }
      for(int i=0;i<6;i++) {
        int colorCode = colors.getInteger("color:" + i);
        Colors color = Colors.values()[colorCode];
        int x = i / 3;
        int y = i % 3;
        if(type == ItemRenderType.INVENTORY) {
          drawRect(x * 5 + 4, y * 3 + 3, x * 5 + 7, y * 3 + 5, color.getColorCode());
        }
        if(type == ItemRenderType.ENTITY) {
          drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
          GL11.glRotatef(180, 1, 0, 0);
          drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
          GL11.glRotatef(180, 1, 0, 0);
        }
      }
    }
    GL11.glPopMatrix();
View Full Code Here


      }
      return currentlyEquippedStack;
    }
   
    if(slot instanceof ColorSlot) {
      Colors equipped = Colors.getColor(currentlyEquippedStack);
      Colors color = Colors.getColor(slot.getStack());
      if(Colors.BLANK.equals(equipped)) {
        if(mouseButton == 0) {
          color = color.getNext();
        } else if(mouseButton == 1) {
          color = color.getPrev();
        } else {
          color = Colors.BLANK;
        }
        slot.putStack(color.getItemStack());
      } else {
        if(mouseButton == 1) {
          slot.putStack(Colors.BLANK.getItemStack());
        } else {
          slot.putStack(equipped.getItemStack());
View Full Code Here

TOP

Related Classes of logisticspipes.utils.Colors

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.