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 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); }