Class EntityData

java.lang.Object
com.ranull.graves.data.EntityData
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HologramData

public class EntityData extends Object implements Serializable
Represents data for an entity associated with a grave, including its location, UUID, and type.
See Also:
  • Field Details

    • location

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

      This is the Location in the game world where the grave is situated.

    • uuidEntity

      private final UUID uuidEntity
      The unique identifier of the entity associated with the grave.

      This UUID identifies the specific entity that is linked to this grave.

    • uuidGrave

      private final UUID uuidGrave
      The unique identifier of the grave.

      This UUID uniquely identifies the grave itself.

    • type

      private final EntityData.Type type
      The type of entity associated with the grave.

      This EntityData.Type enum 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

      public UUID getUUIDEntity()
      Gets the UUID of the entity.
      Returns:
      The UUID of the entity.
    • getUUIDGrave

      public UUID getUUIDGrave()
      Gets the UUID of the associated grave.
      Returns:
      The UUID of the associated grave.
    • getType

      public EntityData.Type getType()
      Gets the type of the entity.
      Returns:
      The type of the entity.