Package logisticspipes.routing

Examples of logisticspipes.routing.PipeRoutingConnectionType


  private void setColor(float i, EnumSet<PipeRoutingConnectionType> flags) {
    GL11.glColor4f(1.0f, 1.0f, 1.0f, 0.5f);
    if(!flags.isEmpty()) {
      int k=0;
      for(int j=0;j<PipeRoutingConnectionType.values.length;j++) {
        PipeRoutingConnectionType type = PipeRoutingConnectionType.values[j];
        if(flags.contains(type)) {
          k++;
        }
        if(k - 1 == (int) i % flags.size()) {
          setColor(type);
View Full Code Here


  public void readData(LPDataInputStream data) throws IOException {
    pos = data.readLPPosition();
    filterPositions = new EnumMap<PipeRoutingConnectionType, List<List<LPPosition>>>(PipeRoutingConnectionType.class);
    short id;
    while((id = data.readShort()) != -1) {
      PipeRoutingConnectionType type = PipeRoutingConnectionType.values[id];
      List<List<LPPosition>> typeFilters = new ArrayList<List<LPPosition>>();
      int length;
      while((length = data.readShort()) != -1) {
        List<LPPosition> linkedFilter = new ArrayList<LPPosition>();
        for(int i=0;i<length;i++) {
View Full Code Here

TOP

Related Classes of logisticspipes.routing.PipeRoutingConnectionType

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.