Package com.ranull.graves.data
Class EntityData
java.lang.Object
com.ranull.graves.data.EntityData
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HologramData
Represents data for an entity associated with a grave, including its location, UUID, and type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the different types of entities that can be associated with a grave. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.bukkit.LocationThe location of the grave.private final EntityData.TypeThe type of entity associated with the grave.private final UUIDThe unique identifier of the entity associated with the grave.private final UUIDThe unique identifier of the grave. -
Constructor Summary
ConstructorsConstructorDescriptionEntityData(org.bukkit.Location location, UUID uuidEntity, UUID uuidGrave, EntityData.Type type) Constructs a new EntityData instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationGets the location of the entity.getType()Gets the type of the entity.Gets the UUID of the entity.Gets the UUID of the associated grave.
-
Field Details
-
location
private final org.bukkit.Location locationThe location of the grave.This is the
Locationin the game world where the grave is situated. -
uuidEntity
The unique identifier of the entity associated with the grave.This
UUIDidentifies the specific entity that is linked to this grave. -
uuidGrave
The unique identifier of the grave.This
UUIDuniquely identifies the grave itself. -
type
The type of entity associated with the grave.This
EntityData.Typeenum value indicates the type of entity that is related to the grave.
-
-
Constructor Details
-
EntityData
public EntityData(org.bukkit.Location location, UUID uuidEntity, UUID uuidGrave, EntityData.Type type) Constructs a new EntityData instance.- Parameters:
location- The location of the entity.uuidEntity- The UUID of the entity.uuidGrave- The UUID of the associated grave.type- The type of the entity.
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation()Gets the location of the entity.- Returns:
- The location of the entity.
-
getUUIDEntity
Gets the UUID of the entity.- Returns:
- The UUID of the entity.
-
getUUIDGrave
Gets the UUID of the associated grave.- Returns:
- The UUID of the associated grave.
-
getType
Gets the type of the entity.- Returns:
- The type of the entity.
-