Package simpleserver.nbt

Examples of simpleserver.nbt.NBTArray


    NBTCompound playerData = get(playerName.toLowerCase());
    String field = PlayerField.PW_HASH.toString();
    if (playerData.containsKey(field)) {
      playerData.getArray(field).set(pwHash);
    } else {
      NBTArray tag = new NBTArray(field, pwHash);
      playerData.put(tag);
    }
  }
View Full Code Here


  }

  public void set(String name, Position pos) {
    NBTCompound tag = pos.tag();
    tag.rename(name.toLowerCase());
    tag.put(new NBTArray(CAPS, capitals(name)));
    node.put(tag);
  }
View Full Code Here

  private void capitalizeWaypoints() {
    List<String> keys = new ArrayList<String>(keys());
    for (String name : keys) {
      if (!node.getCompound(name).containsKey(CAPS)) {
        node.getCompound(name).put(new NBTArray(CAPS, capitals(name)));
        node.rename(name, name.toLowerCase());
      }
    }
  }
View Full Code Here

TOP

Related Classes of simpleserver.nbt.NBTArray

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.