Rename StorageChunkLoader

This commit is contained in:
TheMode 2021-06-20 20:46:57 +02:00
parent 08ce627db7
commit 8bc9bc7de5
3 changed files with 6 additions and 6 deletions

View File

@ -157,7 +157,7 @@ public class DynamicChunk extends Chunk {
/** /**
* Serialize this {@link Chunk} based on {@link #readChunk(BinaryReader, ChunkCallback)} * Serialize this {@link Chunk} based on {@link #readChunk(BinaryReader, ChunkCallback)}
* <p> * <p>
* It is also used by the default {@link IChunkLoader} which is {@link MinestomBasicChunkLoader} * Currently used by {@link StorageChunkLoader}.
* *
* @return the serialized chunk data * @return the serialized chunk data
*/ */

View File

@ -14,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/** /**
* Interface implemented to change the way chunks are loaded/saved. * Interface implemented to change the way chunks are loaded/saved.
* <p> * <p>
* See {@link MinestomBasicChunkLoader} for the default implementation used in {@link InstanceContainer}. * See {@link AnvilLoader} for the default implementation used in {@link InstanceContainer}.
*/ */
public interface IChunkLoader { public interface IChunkLoader {

View File

@ -19,9 +19,9 @@ import org.slf4j.LoggerFactory;
* <p> * <p>
* The key used in the {@link StorageLocation} is defined by {@link #getChunkKey(int, int)} and should NOT be changed. * The key used in the {@link StorageLocation} is defined by {@link #getChunkKey(int, int)} and should NOT be changed.
*/ */
public class MinestomBasicChunkLoader implements IChunkLoader { public class StorageChunkLoader implements IChunkLoader {
private final static Logger LOGGER = LoggerFactory.getLogger(MinestomBasicChunkLoader.class); private final static Logger LOGGER = LoggerFactory.getLogger(StorageChunkLoader.class);
private final InstanceContainer instanceContainer; private final InstanceContainer instanceContainer;
/** /**
@ -33,7 +33,7 @@ public class MinestomBasicChunkLoader implements IChunkLoader {
* *
* @param instanceContainer the {@link InstanceContainer} linked to this loader * @param instanceContainer the {@link InstanceContainer} linked to this loader
*/ */
public MinestomBasicChunkLoader(InstanceContainer instanceContainer) { public StorageChunkLoader(InstanceContainer instanceContainer) {
this.instanceContainer = instanceContainer; this.instanceContainer = instanceContainer;
} }
@ -78,7 +78,7 @@ public class MinestomBasicChunkLoader implements IChunkLoader {
BinaryReader reader = new BinaryReader(bytes); BinaryReader reader = new BinaryReader(bytes);
// Create the chunk object using the instance's ChunkSupplier to support multiple implementations // Create the chunk object using the instance's ChunkSupplier to support multiple implementations
Chunk chunk = instanceContainer.getChunkSupplier().createChunk(instance, null, chunkX, chunkZ); Chunk chunk = instanceContainer.getChunkSupplier().createChunk(instance, null, chunkX, chunkZ);
// Execute the callback once all blocks are placed (allow for multithreaded implementations) // Execute the callback once all blocks are placed (allow for multi-threaded implementations)
chunk.readChunk(reader, callback); chunk.readChunk(reader, callback);
return true; return true;
} }