Class Chunk
java.lang.Object
net.pl3x.map.core.world.Chunk
- Direct Known Subclasses:
Chunk_1_13, Chunk_1_16, Chunk_1_18, EmptyChunk
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final Chunk.BlockData[]protected static final BlockState[]protected static final byte[]protected static final int[]protected static final long[]protected static final String[]protected booleanprotected static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChunk(World world, Region region, Chunk.Data chunkData, int index) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract BiomegetBiome(int x, int y, int z) abstract BlockStategetBlockState(int x, int y, int z) getData()@Nullable Chunk.BlockDatagetData(int x, int z) intabstract longabstract intgetLight(int x, int y, int z) abstract intgetMaxY()abstract intgetMinY()getWorld()abstract intgetWorldSurfaceY(int x, int z) intgetX()intgetY()intgetZ()inthashCode()abstract booleanabstract booleanisFull()booleanpopulate()toString()
-
Field Details
-
BLOCKS_PER_SECTION
protected static final int BLOCKS_PER_SECTION- See Also:
-
VALUES_PER_HEIGHTMAP
protected static final int VALUES_PER_HEIGHTMAP- See Also:
-
EMPTY_BYTE_ARRAY
protected static final byte[] EMPTY_BYTE_ARRAY -
EMPTY_INT_ARRAY
protected static final int[] EMPTY_INT_ARRAY -
EMPTY_LONG_ARRAY
protected static final long[] EMPTY_LONG_ARRAY -
EMPTY_STRING_ARRAY
-
EMPTY_BLOCKSTATE_ARRAY
-
data
-
populated
protected boolean populated
-
-
Constructor Details
-
Chunk
-
-
Method Details
-
getWorld
-
getRegion
-
getDataVersion
public int getDataVersion() -
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getMinY
public abstract int getMinY() -
getMaxY
public abstract int getMaxY() -
getInhabitedTime
public abstract long getInhabitedTime() -
isFull
public abstract boolean isFull() -
hasWorldSurfaceHeights
public abstract boolean hasWorldSurfaceHeights() -
noHeightmap
public boolean noHeightmap() -
getWorldSurfaceY
public abstract int getWorldSurfaceY(int x, int z) -
getBlockState
-
getLight
public abstract int getLight(int x, int y, int z) -
getBiome
-
populate
-
getData
-
getData
-
equals
-
hashCode
-
toString
-