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 enumEnum representing the type of block. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UUIDThe unique identifier for the grave.private final org.bukkit.LocationThe location of the grave in the world.private final StringThe data associated with the replacement material.private final StringThe material used to replace the grave block.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the UUID of the associated grave.org.bukkit.LocationGets the location of the block.Gets the data to replace the block with.Gets the material to replace the block with.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
location
private final org.bukkit.Location locationThe location of the grave in the world.This
Locationrepresents the coordinates where the grave is situated. -
graveUUID
The unique identifier for the grave.This
UUIDuniquely identifies the grave entity. -
replaceMaterial
The material used to replace the grave block.This
Stringspecifies the material to replace the block at the grave's location. -
replaceData
The data associated with the replacement material.This
Stringprovides 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.
-