Package org.getspout.spoutapi.inventory

Examples of org.getspout.spoutapi.inventory.ItemMap.rename()


      if ((new File(worldFolder, "spout_meta/worldItemMap.txt")).exists()) {
        World world = Bukkit.getWorld(worldFolder.getName());
        if (world != null) {
          ItemMap worldItemMap = SpoutManager.getChunkDataManager().getItemMap(world);
          if (worldItemMap != null) {
            worldItemMap.rename(fullOldKey, fullNewKey);
            continue;
          }
        }
        FlatFileStore<Integer> fs = new FlatFileStore<Integer>(new File(worldFolder, "spout_meta/worldItemMap.txt"), Integer.class);
        fs.load();
View Full Code Here


          }
        }
        FlatFileStore<Integer> fs = new FlatFileStore<Integer>(new File(worldFolder, "spout_meta/worldItemMap.txt"), Integer.class);
        fs.load();
        ItemMap worldItemMap = new ItemMap(ItemMap.getRootMap(), fs, null);
        worldItemMap.rename(fullOldKey, fullNewKey);
      }
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.