Package com.ranull.graves.data
Class BlockData
java.lang.Object
com.ranull.graves.data.BlockData
- All Implemented Interfaces:
Serializable
Represents block data associated with a grave.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum representing the type of block. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the UUID of the associated grave.org.bukkit.Location
Gets the location of the block.Gets the data to replace the block with.Gets the material to replace the block with.
-
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
Gets the UUID of the associated grave.- Returns:
- The UUID of the grave.
-
getReplaceMaterial
Gets the material to replace the block with.- Returns:
- The replacement material.
-
getReplaceData
Gets the data to replace the block with.- Returns:
- The replace data.
-