Represents something that manages loading and saving of plain Chunk chunks. @since 1.0 @see Chunk
| 11 | * @see Chunk |
| 12 | */ |
| 13 | public interface ChunkLoader { |
| 14 | /** |
| 15 | * Creates {@linkplain Chunk a chunk} that should be present at {@linkplain ChunkPosition a chunk position} |
| 16 | * specified in {@linkplain World a world specified}. |
| 17 | * |
| 18 | * @param position a position |
| 19 | * @param world the world |
| 20 | * @return the chunk |
| 21 | * @since 1.0 |
| 22 | */ |
| 23 | @NonNull Chunk load(@NonNull ChunkPosition position, @NonNull World world); |
| 24 | |
| 25 | /** |
| 26 | * Saves data of {@linkplain Chunk a chunk} specified, which is at {@linkplain ChunkPosition a chunk position} |
| 27 | * specified in {@linkplain World a world} specified. |
| 28 | * |
| 29 | * @param position the chunk position |
| 30 | * @param world the world |
| 31 | * @param chunk the chunk |
| 32 | * @since 1.0 |
| 33 | */ |
| 34 | void save(@NonNull ChunkPosition position, @NonNull World world, @NonNull Chunk chunk); |
| 35 | } |
no outgoing calls
no test coverage detected