Interface ChunkSelector


public interface ChunkSelector
A ChunkSelector can be used to select some chunks from a world. This is useful for saving or loading only a select portion of a world, ignoring the rest.

Polar supports ChunkSelectors in most loading/saving APIs.

  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull ChunkSelector
    all()
     
    static @NotNull ChunkSelector
    radius(int radius)
     
    static @NotNull ChunkSelector
    radius(int centerX, int centerZ, int radius)
     
    boolean
    test(int x, int z)
     
  • Method Details

    • all

      @NotNull static @NotNull ChunkSelector all()
    • radius

      @NotNull static @NotNull ChunkSelector radius(int radius)
    • radius

      @NotNull static @NotNull ChunkSelector radius(int centerX, int centerZ, int radius)
    • test

      boolean test(int x, int z)