Class Chunk

All Implemented Interfaces:
ChunkManager, Chunk, FullChunk, Cloneable

public class Chunk extends BaseChunk
Author:
MagicDroidX (Nukkit Project)
  • Field Details

    • inhabitedTime

      protected long inhabitedTime
    • terrainPopulated

      protected boolean terrainPopulated
    • terrainGenerated

      protected boolean terrainGenerated
    • isNew384World

      protected boolean isNew384World
  • Constructor Details

  • Method Details

    • clone

      public Chunk clone()
      Overrides:
      clone in class BaseChunk
    • 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

      public CompoundTag getNBT()
    • fromBinary

      public static Chunk fromBinary(byte[] data)
    • fromBinary

      public static Chunk fromBinary(byte[] data, LevelProvider provider)
    • fromFastBinary

      public static Chunk fromFastBinary(byte[] data)
    • fromFastBinary

      public static Chunk fromFastBinary(byte[] data, LevelProvider provider)
    • toFastBinary

      public byte[] toFastBinary()
      Specified by:
      toFastBinary in interface FullChunk
      Overrides:
      toFastBinary in class BaseFullChunk
    • toBinary

      public byte[] toBinary()
    • getBlockSkyLight

      public int getBlockSkyLight(int x, int y, int z)
      Specified by:
      getBlockSkyLight in interface FullChunk
      Overrides:
      getBlockSkyLight in class BaseChunk
    • getBlockLight

      public int getBlockLight(int x, int y, int z)
      Specified by:
      getBlockLight in interface FullChunk
      Overrides:
      getBlockLight in class BaseChunk
    • getEmptyChunk

      public static Chunk getEmptyChunk(int chunkX, int chunkZ)
    • getEmptyChunk

      public static Chunk getEmptyChunk(int chunkX, int chunkZ, LevelProvider provider)
    • compress

      public boolean compress()
      Overrides:
      compress in class BaseFullChunk