Package net.hollowcube.polar
Class PolarWorld
java.lang.Object
net.hollowcube.polar.PolarWorld
A Java type representing the latest version of the world format.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PolarWorld.CompressionTypestatic final shortstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPolarWorld(short version, int dataVersion, @NotNull PolarWorld.CompressionType compression, byte minSection, byte maxSection, byte @NotNull [] userData, @NotNull List<PolarChunk> chunks) PolarWorld(@NotNull net.minestom.server.world.DimensionType dimensionType) -
Method Summary
Modifier and TypeMethodDescription@Nullable PolarChunkchunkAt(int x, int z) @NotNull Collection<PolarChunk> chunks()@NotNull PolarWorld.CompressionTypeintbytebytevoidsetCompression(@NotNull PolarWorld.CompressionType compression) voidsetSectionCount(byte minSection, byte maxSection) voidupdateChunkAt(int x, int z, @NotNull PolarChunk chunk) byte @NotNull []userData()voiduserData(byte @NotNull [] userData) shortversion()
-
Field Details
-
MAGIC_NUMBER
public static final int MAGIC_NUMBER- See Also:
-
LATEST_VERSION
public static final short LATEST_VERSION- See Also:
-
DEFAULT_COMPRESSION
-
-
Constructor Details
-
PolarWorld
public PolarWorld() -
PolarWorld
public PolarWorld(@NotNull @NotNull net.minestom.server.world.DimensionType dimensionType) -
PolarWorld
public PolarWorld(short version, int dataVersion, @NotNull @NotNull PolarWorld.CompressionType compression, byte minSection, byte maxSection, byte @NotNull [] userData, @NotNull @NotNull List<PolarChunk> chunks)
-
-
Method Details
-
version
public short version() -
dataVersion
public int dataVersion() -
compression
-
setCompression
-
minSection
public byte minSection() -
maxSection
public byte maxSection() -
setSectionCount
public void setSectionCount(byte minSection, byte maxSection) -
userData
public byte @NotNull [] userData() -
userData
public void userData(byte @NotNull [] userData) -
chunkAt
-
updateChunkAt
-
chunks
-