Examples of IDataManager


Examples of net.minecraft.server.IDataManager

   *
   * @param world (can not be null)
   * @return players folder
   */
  public static File getPlayersFolder(org.bukkit.World world) {
    IDataManager man = CommonNMS.getNative(world).getDataManager();
    if (man instanceof WorldNBTStorage) {
      return ((WorldNBTStorage) man).getPlayerDir();
    }
    return new File(getWorldFolder(world), "playerdata");
  }
View Full Code Here

Examples of org.hive2hive.core.network.data.IDataManager

      logger.info("No download of the file needed since '{}' is a folder.", index.getFullPath());
      getParent().add(new CreateFolderStep(context, networkManager));
    } else {
      logger.info("Initalize the process for downloading file '{}'.", index.getFullPath());
      try {
        IDataManager dataManager = networkManager.getDataManager();
        getParent().add(new GetMetaFileStep(context, context, dataManager));
        PeerAddress ownPeerAddress = networkManager.getConnection().getPeer().getPeerAddress();
        getParent().add(
            new InitDownloadChunksStep(context, networkManager.getSession(), ownPeerAddress));
      } catch (NoPeerConnectionException | NoSessionException e) {
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.