Class MultiBlockChangeInfo

java.lang.Object
com.comphenix.protocol.wrappers.MultiBlockChangeInfo

public class MultiBlockChangeInfo extends Object
Represents a single block change.
  • Constructor Details

  • Method Details

    • getLocation

      public org.bukkit.Location getLocation(org.bukkit.World world)
      Returns this block change's absolute Location in a given World.
      Parameters:
      world - World for the location
      Returns:
      This block change's absolute Location
    • setLocation

      public void setLocation(org.bukkit.Location location)
      Sets this block change's absolute Location.
      Parameters:
      location - This block change's new location
    • setLocation

      public void setLocation(int x, int y, int z)
      Sets this block change's absolute coordinates.
      Parameters:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
    • getX

      public int getX()
      Gets this block change's relative x coordinate.
      Returns:
      Relative X coordinate
    • getAbsoluteX

      public int getAbsoluteX()
      Gets this block change's absolute x coordinate.
      Returns:
      Absolute X coordinate
    • setX

      public void setX(int x)
      Sets this block change's absolute x coordinate.
      Parameters:
      x - New x coordinate
    • getY

      public int getY()
      Gets this block change's y coordinate.
      Returns:
      Y coordinate
    • setY

      public void setY(int y)
      Sets this block change's y coordinate
      Parameters:
      y - New y coordinate
    • getZ

      public int getZ()
      Gets this block change's relative z coordinate.
      Returns:
      Relative Z coordinate
    • getAbsoluteZ

      public int getAbsoluteZ()
      Gets this block change's absolute z coordinate.
      Returns:
      Absolute Z coordinate
    • setZ

      public void setZ(int z)
      Sets this block change's relative z coordinate.
      Parameters:
      z - New z coordinate
    • getData

      public WrappedBlockData getData()
      Gets this block change's block data.
      Returns:
      The block data
    • setData

      public void setData(WrappedBlockData data)
      Sets this block change's block data.
      Parameters:
      data - New block data
    • getChunk

      public ChunkCoordIntPair getChunk()
      Gets the chunk this block change occured in.
      Returns:
      The chunk
    • getConverter

      public static EquivalentConverter<MultiBlockChangeInfo> getConverter(ChunkCoordIntPair chunk)