Class WrapperPlayServerMultiBlockChange.EncodedBlock

java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerMultiBlockChange.EncodedBlock
Enclosing class:
WrapperPlayServerMultiBlockChange

public static class WrapperPlayServerMultiBlockChange.EncodedBlock extends Object
  • Constructor Details

    • EncodedBlock

      public EncodedBlock(int blockID, int x, int y, int z)
    • EncodedBlock

      public EncodedBlock(WrappedBlockState blockState, int x, int y, int z)
    • EncodedBlock

      public EncodedBlock(Vector3i chunk, long data)
  • Method Details

    • toLong

      public long toLong()
    • getBlockId

      public int getBlockId()
    • setBlockId

      public void setBlockId(int blockID)
    • getBlockState

      public WrappedBlockState getBlockState(ClientVersion version)
    • setBlockState

      public void setBlockState(WrappedBlockState blockState)
    • getX

      public int getX()
      Returns:
      Global X position of block
    • getY

      public int getY()
      Returns:
      Global Y position of block
    • getZ

      public int getZ()
      Returns:
      Global Z position of block
    • setX

      public void setX(int x)
      Parameters:
      x - Global X position of block
    • setY

      public void setY(int y)
      Parameters:
      y - Global Y position of block
    • setZ

      public void setZ(int z)
      Parameters:
      z - Global Z position of block