Package com.bergerkiller.bukkit.common.config

Examples of com.bergerkiller.bukkit.common.config.DataReader


   * @param filename - The groupdata file to read from
   */
  public static void init(String filename) {
    synchronized (managers) {
      deinit();
      new DataReader(filename) {
        public void read(DataInputStream stream) throws IOException {
          int totalgroups = 0;
          int totalmembers = 0;
          final int worldcount = stream.readInt();
          for (int worldIdx = 0; worldIdx < worldcount; worldIdx++) {
View Full Code Here


    }
  }
  public static void init(String filename) {
    regionsById.clear();
    regions.clear();
    new DataReader(filename) {
      public void read(DataInputStream stream) throws IOException {
        int count = stream.readInt();
        int coordcount;
        for (;count > 0; --count) {
          //get required info
View Full Code Here

    }
  }

  public static void init(String filename) {
    spawnSigns.clear();
    new DataReader(filename) {
      public void read(DataInputStream stream) throws IOException {
        int count = stream.readInt();
        for (;count > 0; --count) {
          SpawnSign sign = SpawnSign.read(stream);
          spawnSigns.put(sign.getWorldName(), sign.getLocation(), sign);
View Full Code Here

    return event != null && event.getMode() != SignActionMode.NONE && event.isType("detector");
  }

  public static void init(String filename) {
    detectors.clear();
    new DataReader(filename) {
      public void read(DataInputStream stream) throws IOException {
        for (int count = stream.readInt(); count > 0; --count) {
          //get required info
          UUID id = StreamUtil.readUUID(stream);
          //init a new detector
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.config.DataReader

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.