Package cn.nukkit.level.format.anvil
Class Chunk
java.lang.Object
cn.nukkit.level.format.generic.BaseFullChunk
cn.nukkit.level.format.generic.BaseChunk
cn.nukkit.level.format.anvil.Chunk
- All Implemented Interfaces:
ChunkManager
,Chunk
,FullChunk
,Cloneable
- Author:
- MagicDroidX (Nukkit Project)
-
Nested Class Summary
Nested classes/interfaces inherited from interface cn.nukkit.level.format.Chunk
Chunk.Entry
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected boolean
protected boolean
protected boolean
Fields inherited from class cn.nukkit.level.format.generic.BaseChunk
sectionLength, sections
Fields inherited from class cn.nukkit.level.format.generic.BaseFullChunk
biomes, blockLight, blocks, changes, chunkPacket, data, entities, extraData, heightMap, isInit, NBTentities, NBTtiles, provider, providerClass, skyLight, tileList, tiles
-
Constructor Summary
ConstructorDescriptionChunk
(LevelProvider level) Chunk
(LevelProvider level, CompoundTag nbt) Chunk
(Class<? extends LevelProvider> providerClass) Chunk
(Class<? extends LevelProvider> providerClass, CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
compress()
static Chunk
fromBinary
(byte[] data) static Chunk
fromBinary
(byte[] data, LevelProvider provider) static Chunk
fromFastBinary
(byte[] data) static Chunk
fromFastBinary
(byte[] data, LevelProvider provider) int
getBlockLight
(int x, int y, int z) int
getBlockSkyLight
(int x, int y, int z) static Chunk
getEmptyChunk
(int chunkX, int chunkZ) static Chunk
getEmptyChunk
(int chunkX, int chunkZ, LevelProvider provider) getNBT()
boolean
boolean
void
void
setGenerated
(boolean value) void
void
setPopulated
(boolean value) byte[]
toBinary()
byte[]
Methods inherited from class cn.nukkit.level.format.generic.BaseChunk
backwardCompatibilityUpdate, delayPaletteUpdates, findBorders, getAndSetBlock, getAndSetBlock, getAndSetBlockState, getBlockData, getBlockData, getBlockId, getBlockId, getBlockLightArray, getBlockSkyLightArray, getBlockState, getBlockStateAt, getFullBlock, getFullBlock, getHeightMapArray, getProvider, getSection, getSections, isBlockChangeAllowed, isBlockedByBorder, isPaletteUpdatesDelayed, isSectionEmpty, load, load, scanBlocks, setBlock, setBlock, setBlockAtLayer, setBlockAtLayer, setBlockData, setBlockData, setBlockId, setBlockId, setBlockLight, setBlockSkyLight, setBlockStateAt, setBlockStateAtLayer, setFullBlockId, setFullBlockId, setPaletteUpdatesDelayed, setSection, toSectionY
Methods inherited from class cn.nukkit.level.format.generic.BaseFullChunk
addBlockEntity, addEntity, getBiomeId, getBiomeIdArray, getBlockDataAt, getBlockDataAt, getBlockEntities, getBlockExtraData, getBlockExtraDataArray, getBlockIdAt, getBlockIdAt, getChanges, getChunk, getChunkPacket, getEntities, getHeightMap, getHighestBlockAt, getHighestBlockAt, getIndex, getSeed, getTile, getX, getZ, hasChanged, initChunk, isLightPopulated, isLoaded, populateSkyLight, recalculateHeightMap, recalculateHeightMapColumn, removeBlockEntity, removeEntity, setBiomeId, setBlockAt, setBlockDataAt, setBlockDataAt, setBlockExtraData, setBlockFullIdAt, setBlockFullIdAt, setBlockIdAt, setBlockIdAt, setChanged, setChanged, setChunk, setChunk, setChunkPacket, setHeightMap, setLightPopulated, setLightPopulated, setPosition, setProvider, setX, setZ, unload, unload, unload
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.level.ChunkManager
getBlockStateAt, getChunk, setBlockAt, setBlockStateAt
Methods inherited from interface cn.nukkit.level.format.FullChunk
addBlockEntity, addEntity, getAndSetBlockState, getBiomeId, getBiomeIdArray, getBlockEntities, getBlockExtraData, getBlockExtraDataArray, getBlockRuntimeId, getBlockRuntimeId, getBlockState, getChunkSectionCount, getEntities, getHeightMap, getHighestBlockAt, getHighestBlockAt, getIndex, getTile, getX, getZ, hasChanged, initChunk, isLightPopulated, isLoaded, isNether, isOverWorld, isTheEnd, populateSkyLight, recalculateHeightMap, recalculateHeightMapColumn, removeBlockEntity, removeEntity, setBiome, setBiomeId, setBiomeId, setBlockExtraData, setBlockState, setChanged, setChanged, setHeightMap, setLightPopulated, setLightPopulated, setPosition, setProvider, setX, setZ, unload, unload, unload
-
Field Details
-
inhabitedTime
protected long inhabitedTime -
terrainPopulated
protected boolean terrainPopulated -
terrainGenerated
protected boolean terrainGenerated -
isNew384World
protected boolean isNew384World
-
-
Constructor Details
-
Chunk
-
Chunk
-
Chunk
-
Chunk
-
-
Method Details
-
clone
-
isPopulated
public boolean isPopulated() -
setPopulated
public void setPopulated() -
setPopulated
public void setPopulated(boolean value) -
isGenerated
public boolean isGenerated() -
setGenerated
public void setGenerated() -
setGenerated
public void setGenerated(boolean value) -
getNBT
-
fromBinary
-
fromBinary
-
fromFastBinary
-
fromFastBinary
-
toFastBinary
public byte[] toFastBinary()- Specified by:
toFastBinary
in interfaceFullChunk
- Overrides:
toFastBinary
in classBaseFullChunk
-
toBinary
public byte[] toBinary() -
getBlockSkyLight
public int getBlockSkyLight(int x, int y, int z) - Specified by:
getBlockSkyLight
in interfaceFullChunk
- Overrides:
getBlockSkyLight
in classBaseChunk
-
getBlockLight
public int getBlockLight(int x, int y, int z) - Specified by:
getBlockLight
in interfaceFullChunk
- Overrides:
getBlockLight
in classBaseChunk
-
getEmptyChunk
-
getEmptyChunk
-
compress
public boolean compress()- Overrides:
compress
in classBaseFullChunk
-