Package com.sk89q.worldedit.world.chunk
Class AnvilChunk17
java.lang.Object
com.sk89q.worldedit.world.chunk.AnvilChunk17
- All Implemented Interfaces:
Chunk
The chunk format for Minecraft 1.17
-
Constructor Summary
ConstructorDescriptionAnvilChunk17
(CompoundTag tag, Supplier<CompoundTag> entitiesTag) Deprecated.AnvilChunk17
(com.sk89q.worldedit.util.nbt.CompoundBinaryTag tag, Supplier<com.sk89q.worldedit.util.nbt.CompoundBinaryTag> entityTag) Construct the chunk with a compound tag. -
Method Summary
Modifier and TypeMethodDescriptiongetBiome
(BlockVector3 position) Get a biome.getBlock
(BlockVector3 position) Get a block.Get the stored entities.protected void
readBlockStates
(BlockState[] palette, long[] blockStatesSerialized, BlockState[] chunkSectionBlocks)
-
Constructor Details
-
AnvilChunk17
@Deprecated public AnvilChunk17(CompoundTag tag, Supplier<CompoundTag> entitiesTag) throws DataException Deprecated.Construct the chunk with a compound tag.- Parameters:
tag
- the tag to read- Throws:
DataException
- on a data error
-
AnvilChunk17
public AnvilChunk17(com.sk89q.worldedit.util.nbt.CompoundBinaryTag tag, Supplier<com.sk89q.worldedit.util.nbt.CompoundBinaryTag> entityTag) throws DataException Construct the chunk with a compound tag.- Parameters:
tag
- the tag to readentityTag
- supplier for the entity compound tag found in the entities folder mca files. Not accessed unlessgetEntities()
is called- 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
-
getBiome
Description copied from interface:Chunk
Get a biome.- Specified by:
getBiome
in interfaceChunk
- Parameters:
position
- the position of the block- Returns:
- block the block
- Throws:
DataException
- thrown on data error
-
getEntities
Description copied from interface:Chunk
Get the stored entities.- Specified by:
getEntities
in interfaceChunk
- Returns:
- list of stored entities
- Throws:
DataException
-
AnvilChunk17(CompoundBinaryTag, Supplier)