java.lang.Object
at.syntaxerror.syntaxnbt.region.Region
A structure holding a 32x32 area of
Chunks- Author:
- SyntaxError404
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChunk(int x, int z) Returns a specific chunk.@NonNull NBTCompressionReturns the default compression scheme for chunksintgetTimestamp(int x, int z) Returns the timestamp for a specific chunkOverrides a specific chunkvoidsetCompression(@NonNull NBTCompression compression) Sets the default compression scheme for chunkssetTimestamp(int x, int z, int time) Overrides the timestamp for a specific chunk
-
Constructor Details
-
Region
public Region()Constructs a new region
-
-
Method Details
-
getChunk
Returns a specific chunk. A value ofnullsuggest that the chunk has not been generated yet.- Parameters:
x- chunk's X position (0 >= x < 32)z- chunk's Z position (0 >= z < 32)- Returns:
- a specific chunk
-
setChunk
Overrides a specific chunk- Parameters:
x- chunk's X position (0 >= x < 32)z- chunk's Z position (0 >= z < 32)chunk- new chunk- Returns:
- this region
-
getTimestamp
public int getTimestamp(int x, int z) Returns the timestamp for a specific chunk- Parameters:
x- chunk's X position (0 >= x < 32)z- chunk's Z position (0 >= z < 32)- Returns:
- the timestamp for a specific chunk
-
setTimestamp
Overrides the timestamp for a specific chunk- Parameters:
x- chunk's X position (0 >= x < 32)z- chunk's Z position (0 >= z < 32)time- new timestamp- Returns:
- this region
-
getCompression
Returns the default compression scheme for chunks- Returns:
- the compression scheme
-
setCompression
Sets the default compression scheme for chunks- Parameters:
compression- the compression scheme
-