Package com.rvandoosselaer.blocks
Interface ChunkResolver
-
- All Known Implementing Classes:
ChunkCache
public interface ChunkResolverA service to retrieve chunks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<Chunk>get(@NonNull com.simsilica.mathd.Vec3i location)Return a Chunk optional.ChunkgetChunk(@NonNull com.simsilica.mathd.Vec3i location)Deprecated.useget(Vec3i)instead
-
-
-
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.useget(Vec3i)insteadReturn the chunk at the given location or null.- Parameters:
location- of the chunk- Returns:
- chunk or null
-
-