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. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UUID
The unique identifier for the grave.private final org.bukkit.Location
The location of the grave in the world.private final String
The data associated with the replacement material.private final String
The material used to replace the grave 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.
-
Field Details
-
location
private final org.bukkit.Location locationThe location of the grave in the world.This
Location
represents the coordinates where the grave is situated. -
graveUUID
The unique identifier for the grave.This
UUID
uniquely identifies the grave entity. -
replaceMaterial
The material used to replace the grave block.This
String
specifies the material to replace the block at the grave's location. -
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
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.
-