Search in sources :

Example 6 with ServerChunkManager

use of net.minecraft.server.world.ServerChunkManager in project dynmap by webbukkit.

the class FabricMapChunkCache method setChunks.

public void setChunks(FabricWorld dw, List<DynmapChunk> chunks) {
    this.w = dw.getWorld();
    if (dw.isLoaded()) {
        /* Check if world's provider is ServerChunkManager */
        ChunkManager cp = this.w.getChunkManager();
        if (cp instanceof ServerChunkManager) {
            cps = (ServerChunkManager) cp;
        } else {
            Log.severe("Error: world " + dw.getName() + " has unsupported chunk provider");
        }
    }
    super.setChunks(dw, chunks);
}
Also used : ServerChunkManager(net.minecraft.server.world.ServerChunkManager) ChunkManager(net.minecraft.world.chunk.ChunkManager) ServerChunkManager(net.minecraft.server.world.ServerChunkManager)

Example 7 with ServerChunkManager

use of net.minecraft.server.world.ServerChunkManager in project dynmap by webbukkit.

the class FabricMapChunkCache method setChunks.

public void setChunks(FabricWorld dw, List<DynmapChunk> chunks) {
    this.w = dw.getWorld();
    if (dw.isLoaded()) {
        /* Check if world's provider is ServerChunkManager */
        ChunkManager cp = this.w.getChunkManager();
        if (cp instanceof ServerChunkManager) {
            cps = (ServerChunkManager) cp;
        } else {
            Log.severe("Error: world " + dw.getName() + " has unsupported chunk provider");
        }
    }
    super.setChunks(dw, chunks);
}
Also used : ServerChunkManager(net.minecraft.server.world.ServerChunkManager) ChunkManager(net.minecraft.world.chunk.ChunkManager) ServerChunkManager(net.minecraft.server.world.ServerChunkManager)

Example 8 with ServerChunkManager

use of net.minecraft.server.world.ServerChunkManager in project dynmap by webbukkit.

the class FabricMapChunkCache method setChunks.

public void setChunks(FabricWorld dw, List<DynmapChunk> chunks) {
    this.w = dw.getWorld();
    if (dw.isLoaded()) {
        /* Check if world's provider is ServerChunkManager */
        ChunkManager cp = this.w.getChunkManager();
        if (cp instanceof ServerChunkManager) {
            cps = (ServerChunkManager) cp;
        } else {
            Log.severe("Error: world " + dw.getName() + " has unsupported chunk provider");
        }
    }
    super.setChunks(dw, chunks);
}
Also used : ServerChunkManager(net.minecraft.server.world.ServerChunkManager) ChunkManager(net.minecraft.world.chunk.ChunkManager) ServerChunkManager(net.minecraft.server.world.ServerChunkManager)

Example 9 with ServerChunkManager

use of net.minecraft.server.world.ServerChunkManager in project dynmap by webbukkit.

the class FabricMapChunkCache method setChunks.

public void setChunks(FabricWorld dw, List<DynmapChunk> chunks) {
    this.w = dw.getWorld();
    if (dw.isLoaded()) {
        /* Check if world's provider is ServerChunkManager */
        ChunkManager cp = this.w.getChunkManager();
        if (cp instanceof ServerChunkManager) {
            cps = (ServerChunkManager) cp;
        } else {
            Log.severe("Error: world " + dw.getName() + " has unsupported chunk provider");
        }
    }
    super.setChunks(dw, chunks);
}
Also used : ServerChunkManager(net.minecraft.server.world.ServerChunkManager) ChunkManager(net.minecraft.world.chunk.ChunkManager) ServerChunkManager(net.minecraft.server.world.ServerChunkManager)

Aggregations

ServerChunkManager (net.minecraft.server.world.ServerChunkManager)9 ChunkManager (net.minecraft.world.chunk.ChunkManager)7 IEThreadedAnvilChunkStorage (com.qouteall.immersive_portals.ducks.IEThreadedAnvilChunkStorage)1 MaxChangedBlocksException (com.sk89q.worldedit.MaxChangedBlocksException)1 BlockVector2 (com.sk89q.worldedit.math.BlockVector2)1 BlockVector3 (com.sk89q.worldedit.math.BlockVector3)1 CuboidRegion (com.sk89q.worldedit.regions.CuboidRegion)1 AbstractWorld (com.sk89q.worldedit.world.AbstractWorld)1 File (java.io.File)1 MinecraftServer (net.minecraft.server.MinecraftServer)1 ServerWorld (net.minecraft.server.world.ServerWorld)1 World (net.minecraft.world.World)1 WorldSaveHandler (net.minecraft.world.WorldSaveHandler)1