Interface BlockChangeRecord

All Known Implementing Classes:
BlockChangeRecord1_16_2, BlockChangeRecord1_8

public interface BlockChangeRecord
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    byte
    Returns the relative x coordinate within the chunk section.
    byte
    Returns the relative y coordinate within the chunk section.
    byte
    Returns the relative z coordinate within the chunk section.
    default short
    Returns the absolute y coordinate - only works for sub 1.16 protocols.
    short
    getY(int chunkSectionY)
    Returns the absolute y coordinate based on the given chunk section y.
    void
    setBlockId(int blockId)
     
  • Method Details

    • getSectionX

      byte getSectionX()
      Returns the relative x coordinate within the chunk section.
      Returns:
      relative x coordinate within the chunk section
    • getSectionY

      byte getSectionY()
      Returns the relative y coordinate within the chunk section.
      Returns:
      relative y coordinate within the chunk section
    • getSectionZ

      byte getSectionZ()
      Returns the relative z coordinate within the chunk section.
      Returns:
      relative z coordinate within the chunk section
    • getY

      short getY(int chunkSectionY)
      Returns the absolute y coordinate based on the given chunk section y.
      Parameters:
      chunkSectionY - chunk section
      Returns:
      absolute y coordinate
    • getY

      default short getY()
      Returns the absolute y coordinate - only works for sub 1.16 protocols.
      Returns:
      absolute y coordinate
    • getBlockId

      int getBlockId()
    • setBlockId

      void setBlockId(int blockId)