Class BlockChangeRecord1_16_2

    • Constructor Summary

      Constructors 
      Constructor Description
      BlockChangeRecord1_16_2​(byte sectionX, byte sectionY, byte sectionZ, int blockId)  
      BlockChangeRecord1_16_2​(int sectionX, int sectionY, int sectionZ, int blockId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBlockId()  
      byte getSectionX()
      Returns the relative x coordinate within the chunk section.
      byte getSectionY()
      Returns the relative y coordinate within the chunk section.
      byte getSectionZ()
      Returns the relative z coordinate within the chunk section.
      short getY​(int chunkSectionY)
      Returns the absolute y coordinate based on the given chunk section y.
      void setBlockId​(int blockId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlockChangeRecord1_16_2

        public BlockChangeRecord1_16_2​(byte sectionX,
                                       byte sectionY,
                                       byte sectionZ,
                                       int blockId)
      • BlockChangeRecord1_16_2

        public BlockChangeRecord1_16_2​(int sectionX,
                                       int sectionY,
                                       int sectionZ,
                                       int blockId)
    • Method Detail

      • getSectionX

        public byte getSectionX()
        Description copied from interface: BlockChangeRecord
        Returns the relative x coordinate within the chunk section.
        Specified by:
        getSectionX in interface BlockChangeRecord
        Returns:
        relative x coordinate within the chunk section
      • getSectionY

        public byte getSectionY()
        Description copied from interface: BlockChangeRecord
        Returns the relative y coordinate within the chunk section.
        Specified by:
        getSectionY in interface BlockChangeRecord
        Returns:
        relative y coordinate within the chunk section
      • getSectionZ

        public byte getSectionZ()
        Description copied from interface: BlockChangeRecord
        Returns the relative z coordinate within the chunk section.
        Specified by:
        getSectionZ in interface BlockChangeRecord
        Returns:
        relative z coordinate within the chunk section
      • getY

        public short getY​(int chunkSectionY)
        Description copied from interface: BlockChangeRecord
        Returns the absolute y coordinate based on the given chunk section y.
        Specified by:
        getY in interface BlockChangeRecord
        Parameters:
        chunkSectionY - chunk section
        Returns:
        absolute y coordinate