public QueuedChunk(int x, int z, ChunkRegionLoader loader, World world, ChunkProviderServer provider) { this.x = x; this.z = z; this.loader = loader; this.world = world; this.provider = provider; }
public Chunk callStage1(QueuedChunk queuedChunk) throws RuntimeException { ChunkRegionLoader loader = queuedChunk.loader; Object[] data = loader.loadChunk(queuedChunk.world, queuedChunk.x, queuedChunk.z); if (data != null) { queuedChunk.compound = (NBTTagCompound) data[1]; return (Chunk) data[0]; } return null; }
public Chunk callStage1(QueuedChunk queuedChunk) throws RuntimeException { try { ChunkRegionLoader loader = queuedChunk.loader; Object[] data = loader.loadChunk(queuedChunk.world, queuedChunk.x, queuedChunk.z); if (data != null) { queuedChunk.compound = (NBTTagCompound) data[1]; return (Chunk) data[0]; } return null; } catch (IOException ex) { throw new RuntimeException(ex); } }
public Chunk callStage1(QueuedChunk queuedChunk) throws RuntimeException { ChunkRegionLoader loader = queuedChunk.loader; Object[] data = loader.loadChunk(queuedChunk.world, LongHash.msw(queuedChunk.coords), LongHash.lsw(queuedChunk.coords)); if (data != null) { queuedChunk.compound = (NBTTagCompound) data[1]; return (Chunk) data[0]; } return null; }
public static Chunk syncChunkLoad(World world, ChunkRegionLoader loader, ChunkProviderServer provider, int x, int z) { return instance.getSkipQueue(new QueuedChunk(x, z, loader, world, provider)); }
public static void queueChunkLoad(World world, ChunkRegionLoader loader, ChunkProviderServer provider, int x, int z, Runnable runnable) { instance.add(new QueuedChunk(x, z, loader, world, provider), runnable); }
public QueuedChunk(long coords, ChunkRegionLoader loader, World world, ChunkProviderServer provider) { this.coords = coords; this.loader = loader; this.world = world; this.provider = provider; }
public static void queueChunkLoad(World world, ChunkRegionLoader loader, ChunkProviderServer provider, int x, int z, Runnable runnable) { instance.add(new QueuedChunk(LongHash.toLong(x, z), loader, world, provider), runnable); }