java.lang.Object
com.fastasyncworldedit.core.queue.implementation.packet.ChunkPacket
All Implemented Interfaces:
Function<byte[],byte[]>, Supplier<byte[]>

public class ChunkPacket extends Object implements Function<byte[],byte[]>, Supplier<byte[]>
  • Constructor Details

    • ChunkPacket

      public ChunkPacket(int chunkX, int chunkZ, Supplier<IBlocks> chunkSupplier, boolean replaceAllSections)
  • Method Details

    • getChunkX

      public int getChunkX()
    • getChunkZ

      public int getChunkZ()
    • setPosition

      public void setPosition(int chunkX, int chunkZ)
    • isFull

      public boolean isFull()
    • getChunk

      public IBlocks getChunk()
    • getSectionBytes

      public byte[] getSectionBytes()
    • getNativePacket

      public Object getNativePacket()
    • setNativePacket

      public void setNativePacket(Object nativePacket)
    • get

      @Deprecated public byte[] get()
      Deprecated.
      Specified by:
      get in interface Supplier<byte[]>
    • getHeightMap

      public CompoundTag getHeightMap()
    • apply

      public byte[] apply(byte[] buffer)
      Specified by:
      apply in interface Function<byte[],byte[]>