Class GraveCreationAPI

java.lang.Object
dev.cwhead.GravesX.api.grave.GraveCreationAPI

public final class GraveCreationAPI extends Object
API for creating graves and firing appropriate events.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.Entity killer, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
    Creates a grave for an entity killed by another entity.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.Entity killer, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, boolean graveProtection, long graveProtectionTime)
    Creates a grave for an entity killed by another entity with protection settings.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.Entity killer, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
    Main method to create a grave with all available parameters.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, int experience, long timeAliveRemaining)
    Creates a grave for an entity with the basic parameters.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, long timeAliveRemaining)
    Creates a grave for an entity with the basic parameters.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
    Creates a grave for an entity with the basic parameters.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, boolean graveProtection, long graveProtectionTime)
    Creates a grave with additional protection settings.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
    Creates a grave for an entity with a specific storage type.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
    Creates a grave for an entity with a specific storage type and additional protection settings.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
    Creates a grave for an entity at a specific location without a killer and no storage type.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
    Creates a grave for an entity at a specific location where the victim died.
    void
    createGrave(@NotNull org.bukkit.entity.Entity victim, @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable org.bukkit.Location locationDeath, @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
    Creates a grave for an entity at a specific location with protection settings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, long timeAliveRemaining)
      Creates a grave for an entity with the basic parameters.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      timeAliveRemaining - The remaining time the grave will stay alive.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, int experience, long timeAliveRemaining)
      Creates a grave for an entity with the basic parameters.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
      Creates a grave for an entity with the basic parameters.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, boolean graveProtection, long graveProtectionTime)
      Creates a grave with additional protection settings.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      graveProtection - Whether the grave is protected.
      graveProtectionTime - The time for which the grave remains protected.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, @Nullable org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
      Creates a grave for an entity with a specific storage type.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      damageCause - Damage Caused (nullable).
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, @Nullable org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
      Creates a grave for an entity with a specific storage type and additional protection settings.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      damageCause - Damage Caused (nullable).
      graveProtection - Whether the grave is protected.
      graveProtectionTime - The time for which the grave remains protected.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, @Nullable org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
      Creates a grave for an entity at a specific location where the victim died.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      damageCause - Damage Caused (nullable).
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, @Nullable org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
      Creates a grave for an entity at a specific location with protection settings.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      damageCause - Damage Caused (nullable).
      graveProtection - Whether the grave is protected.
      graveProtectionTime - The time for which the grave remains protected.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
      Creates a grave for an entity at a specific location without a killer and no storage type.
      Parameters:
      victim - The entity that died.
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.Entity killer, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining)
      Creates a grave for an entity killed by another entity.
      Parameters:
      victim - The entity that died.
      killer - The entity that killed the victim (nullable).
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.Entity killer, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, boolean graveProtection, long graveProtectionTime)
      Creates a grave for an entity killed by another entity with protection settings.
      Parameters:
      victim - The entity that died.
      killer - The entity that killed the victim (nullable).
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      graveProtection - Whether the grave is protected.
      graveProtectionTime - The time for which the grave remains protected.
    • createGrave

      public void createGrave(@NotNull @NotNull org.bukkit.entity.Entity victim, @Nullable @Nullable org.bukkit.entity.Entity killer, @Nullable @Nullable org.bukkit.entity.EntityType killerEntityType, @Nullable @Nullable org.bukkit.Location locationDeath, @Nullable @Nullable Map<org.bukkit.inventory.EquipmentSlot,org.bukkit.inventory.ItemStack> equipmentMap, @Nullable @Nullable List<org.bukkit.inventory.ItemStack> itemStackList, int experience, long timeAliveRemaining, @Nullable org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause, boolean graveProtection, long graveProtectionTime)
      Main method to create a grave with all available parameters.
      Parameters:
      victim - The entity that died.
      killer - The entity that killed the victim (nullable).
      killerEntityType - The entity type of the killer.
      locationDeath - The location where the victim died (nullable).
      equipmentMap - The equipment the victim had at the time of death.
      itemStackList - The list of items the victim had at the time of death.
      experience - The experience the victim had.
      timeAliveRemaining - The remaining time the grave will stay alive.
      damageCause - Damage Caused (nullable).
      graveProtection - Whether the grave is protected.
      graveProtectionTime - The time for which the grave remains protected.