Package org.getspout.spoutapi.chunkstore

Examples of org.getspout.spoutapi.chunkstore.SimpleChunkDataManager


    Bukkit.getPluginManager().registerEvents(this, plugin);
  }

  @EventHandler(priority = EventPriority.MONITOR)
  public void onChunkUnload(ChunkUnloadEvent event) {
    SimpleChunkDataManager dm = (SimpleChunkDataManager)SpoutManager.getChunkDataManager();
    dm.saveChunk(event.getChunk(), true);
  }
View Full Code Here


    dm.saveChunk(event.getChunk(), true);
  }

  @EventHandler(priority = EventPriority.MONITOR)
  public void onWorldSave(WorldSaveEvent event) {
    SimpleChunkDataManager dm = (SimpleChunkDataManager)SpoutManager.getChunkDataManager();
    dm.saveWorldChunks(event.getWorld());
  }
View Full Code Here

    dm.saveWorldChunks(event.getWorld());
  }

  @EventHandler(priority = EventPriority.MONITOR)
  public void onWorldUnload(WorldUnloadEvent event) {
    SimpleChunkDataManager dm = (SimpleChunkDataManager)SpoutManager.getChunkDataManager();
    dm.unloadWorldChunks(event.getWorld());
  }
View Full Code Here

    SpoutManager.getInstance().setSoundManager(new SimpleSoundManager());
    SpoutManager.getInstance().setSkyManager(new SimpleSkyManager());
    SpoutManager.getInstance().setInventoryBuilder(new SpoutInventoryBuilder());
    SpoutManager.getInstance().setPacketManager(new SimplePacketManager());
    SpoutManager.getInstance().setPlayerChunkMap(new SimplePlayerChunkMap());
    SpoutManager.getInstance().setChunkDataManager(new SimpleChunkDataManager());
    SpoutManager.getInstance().setBiomeManager(new SimpleBiomeManager());
    SpoutManager.getInstance().setFileManager(new SimpleFileManager());
    SpoutManager.getInstance().setKeyBindingManager(new SimpleKeyBindingManager());
    SpoutManager.getInstance().setMaterialManager(new SimpleMaterialManager());
    SpoutManager.getInstance().setWorldManager(new SimpleWorldManager());
View Full Code Here

    SpoutCraftChunk.resetAllBukkitChunks();

    getServer().getScheduler().cancelTasks(this);

    SimpleChunkDataManager dm = (SimpleChunkDataManager) SpoutManager.getChunkDataManager();
    dm.unloadAllChunks();
    dm.closeAllFiles();

    CRCConfig.save();

    if (itemMapConfig != null) {
      synchronized (itemMapConfig) {
View Full Code Here

      // Remove mappings from previous loads
      // Can not remove them on disable because the packets will still be in the send queue
      CustomPacket.removeClassMapping();
      CustomPacket.addClassMapping();

      SimpleChunkDataManager dm = (SimpleChunkDataManager) SpoutManager.getChunkDataManager();
      dm.loadAllChunks();

      SimpleMaterialManager.disableFlintStackMix();

      try {
        Class.forName("org.getspout.spoutapi.inventory.SpoutEnchantment");
View Full Code Here

  }
}

class ShutdownThread extends Thread {
  public void run() {
    SimpleChunkDataManager dm = (SimpleChunkDataManager) SpoutManager.getChunkDataManager();
    dm.unloadAllChunks();
    dm.closeAllFiles();
  }
View Full Code Here

        chunk.set(event, event.getChunk().getWorld().getChunkAt(event.getChunk().getX(), event.getChunk().getZ()));
      } catch (Exception e) {
        e.printStackTrace();
      }

      SimpleChunkDataManager dm = (SimpleChunkDataManager)SpoutManager.getChunkDataManager();
      dm.loadChunk(event.getChunk());
    }
  }
View Full Code Here

    }
  }
 
  @EventHandler(priority = EventPriority.LOWEST)
  public void onWorldLoad(WorldLoadEvent event) {
    SimpleChunkDataManager dm = (SimpleChunkDataManager)SpoutManager.getChunkDataManager();
    dm.loadWorldChunks(event.getWorld());
  }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.chunkstore.SimpleChunkDataManager

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.