All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.utils.chunk.ChunkSupplier Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.utils.chunk;

import net.minestom.server.instance.Chunk;
import net.minestom.server.instance.Instance;
import org.jetbrains.annotations.NotNull;

/**
 * Used to customize which type of {@link Chunk} an implementation should use.
 */
@FunctionalInterface
public interface ChunkSupplier {

    /**
     * Creates a {@link Chunk} object.
     *
     * @param instance the linked instance
     * @param chunkX   the chunk X
     * @param chunkZ   the chunk Z
     * @return a newly {@link Chunk} object, cannot be null
     */
    @NotNull Chunk createChunk(@NotNull Instance instance, int chunkX, int chunkZ);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy