Interface ChunkResolver

  • All Known Implementing Classes:
    ChunkCache

    public interface ChunkResolver
    A service to retrieve chunks.
    • Method Detail

      • get

        java.util.Optional<Chunk> get​(@NonNull
                                      @NonNull com.simsilica.mathd.Vec3i location)
        Return a Chunk optional.
        Parameters:
        location - of the chunk
        Returns:
        chunk
      • getChunk

        @Deprecated
        Chunk getChunk​(@NonNull
                       @NonNull com.simsilica.mathd.Vec3i location)
        Deprecated.
        use get(Vec3i) instead
        Return the chunk at the given location or null.
        Parameters:
        location - of the chunk
        Returns:
        chunk or null