MCPcopy Create free account
hub / github.com/Hypejet/Jet / ChunkLoader

Interface ChunkLoader

api/src/main/java/net/hypejet/jet/world/chunk/ChunkLoader.java:13–35  ·  view source on GitHub ↗

Represents something that manages loading and saving of plain Chunk chunks. @since 1.0 @see Chunk

Source from the content-addressed store, hash-verified

11 * @see Chunk
12 */
13public 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}

Callers 3

createRegistryAccessMethod · 0.65
createMethod · 0.65
getChunkMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected