Package com.sk89q.worldedit.world.chunk
Class AnvilChunk18
java.lang.Object
com.sk89q.worldedit.world.chunk.AnvilChunk18
- All Implemented Interfaces:
Chunk
The chunk format for Minecraft 1.18 and newer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlock
(BlockVector3 position) Get a block.protected void
readBlockStates
(BlockState[] palette, long[] blockStatesSerialized, BlockState[] chunkSectionBlocks)
-
Constructor Details
-
AnvilChunk18
Construct the chunk with a compound tag.- Parameters:
tag
- the tag to read- Throws:
DataException
- on a data error
-
-
Method Details
-
readBlockStates
protected void readBlockStates(BlockState[] palette, long[] blockStatesSerialized, BlockState[] chunkSectionBlocks) throws InvalidFormatException - Throws:
InvalidFormatException
-
getBlock
Description copied from interface:Chunk
Get a block.- Specified by:
getBlock
in interfaceChunk
- Parameters:
position
- the position of the block- Returns:
- block the block
- Throws:
DataException
- thrown on data error
-