Class BlockData

java.lang.Object
com.ranull.graves.data.BlockData
All Implemented Interfaces:
Serializable

public class BlockData extends Object implements Serializable
Represents block data associated with a grave.
See Also:
  • Field Details

    • location

      private final org.bukkit.Location location
      The location of the grave in the world.

      This Location represents the coordinates where the grave is situated.

    • graveUUID

      private final UUID graveUUID
      The unique identifier for the grave.

      This UUID uniquely identifies the grave entity.

    • replaceMaterial

      private final String replaceMaterial
      The material used to replace the grave block.

      This String specifies the material to replace the block at the grave's location.

    • replaceData

      private final String replaceData
      The data associated with the replacement material.

      This String provides additional data or properties for the replacement material, if applicable.

  • Constructor Details

    • BlockData

      public BlockData(org.bukkit.Location location, UUID graveUUID, String replaceMaterial, String replaceData)
      Constructs a new BlockData instance.
      Parameters:
      location - The location of the block.
      graveUUID - The UUID of the associated grave.
      replaceMaterial - The material to replace the block with.
      replaceData - The data to replace the block with.
  • Method Details

    • getLocation

      public org.bukkit.Location getLocation()
      Gets the location of the block.
      Returns:
      The location of the block.
    • getGraveUUID

      public UUID getGraveUUID()
      Gets the UUID of the associated grave.
      Returns:
      The UUID of the grave.
    • getReplaceMaterial

      public String getReplaceMaterial()
      Gets the material to replace the block with.
      Returns:
      The replacement material.
    • getReplaceData

      public String getReplaceData()
      Gets the data to replace the block with.
      Returns:
      The replace data.