Class ItemsAdder

java.lang.Object
com.ranull.graves.manager.EntityDataManager
com.ranull.graves.integration.ItemsAdder

@Deprecated(since="4.9.9.1", forRemoval=true) public final class ItemsAdder extends EntityDataManager
Deprecated, for removal: This API element is subject to removal in a future version.
Use GravesXModule: ItemsAdder instead Integration with the ItemsAdder plugin for handling custom furniture and blocks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.bukkit.plugin.Plugin
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final Graves
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemsAdder(Graves plugin, org.bukkit.plugin.Plugin itemsAdderPlugin)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Constructs an ItemsAdder instance and saves data related to ItemsAdder.
  • Method Summary

    Modifier and Type
    Method
    Description
    private int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Compares versions for ItemsAdder integration.
    void
    createBlock(org.bukkit.Location location, Grave grave)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Creates and places a custom block at a specified location.
    private dev.lone.itemsadder.api.CustomBlock
    createCustomBlock(String name, org.bukkit.Location location)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Creates a custom block instance with a specified name and location.
    private dev.lone.itemsadder.api.CustomFurniture
    createCustomFurniture(String name, org.bukkit.Location location)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Creates a custom furniture instance with a specified name and location.
    void
    createFurniture(org.bukkit.Location location, Grave grave)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Creates and places custom furniture at a specified location.
    private void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Deletes older ItemsAdder Data to give room for new data for newer versions without affecting other files.
    boolean
    hasBlock(Grave grave)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead True if an ItemsAdder custom block exists at the grave location.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead True if an ItemsAdder furniture entity for this grave is currently spawned.
    boolean
    isCustomBlock(org.bukkit.Location location)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Checks if a custom block exists at a specified location.
    void
    removeBlock(org.bukkit.Location location)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Removes a custom block at a specified location.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Removes custom furniture associated with a specific entity data.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Removes all custom furniture associated with a specific grave.
    void
    removeFurniture(Map<EntityData,org.bukkit.entity.Entity> entityDataMap)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Removes custom furniture based on a map of entity data and entities.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use GravesXModule: ItemsAdder instead Copies resource files needed for ItemsAdder integration.

    Methods inherited from class java.lang.Object

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

    • plugin

      private final Graves plugin
      Deprecated, for removal: This API element is subject to removal in a future version.
    • itemsAdderPlugin

      private final org.bukkit.plugin.Plugin itemsAdderPlugin
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ItemsAdder

      @Deprecated(since="4.9.9.1", forRemoval=true) public ItemsAdder(Graves plugin, org.bukkit.plugin.Plugin itemsAdderPlugin)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Constructs an ItemsAdder instance and saves data related to ItemsAdder.
      Parameters:
      plugin - The Graves plugin instance.
      itemsAdderPlugin - The ItemsAdder plugin instance.
  • Method Details

    • saveData

      @Deprecated(since="4.9.9.1", forRemoval=true) public void saveData()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Copies resource files needed for ItemsAdder integration.
    • deleteOldItemsAdderData

      @Deprecated(since="4.9.9.1", forRemoval=true) private void deleteOldItemsAdderData(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Deletes older ItemsAdder Data to give room for new data for newer versions without affecting other files.
    • compareVersions

      @Deprecated(since="4.9.9.1", forRemoval=true) private int compareVersions(String v1, String v2)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Compares versions for ItemsAdder integration.
    • createFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) public void createFurniture(org.bukkit.Location location, Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Creates and places custom furniture at a specified location.
      Parameters:
      location - The location to place the furniture.
      grave - The grave object associated with the furniture.
    • removeFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) public void removeFurniture(Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Removes all custom furniture associated with a specific grave.
      Parameters:
      grave - The grave object whose furniture is to be removed.
    • removeFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) public void removeFurniture(EntityData entityData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Removes custom furniture associated with a specific entity data.
      Parameters:
      entityData - The entity data for the furniture to be removed.
    • removeFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) public void removeFurniture(Map<EntityData,org.bukkit.entity.Entity> entityDataMap)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Removes custom furniture based on a map of entity data and entities.
      Parameters:
      entityDataMap - A map of entity data and corresponding entities to be removed.
    • createBlock

      @Deprecated(since="4.9.9.1", forRemoval=true) public void createBlock(org.bukkit.Location location, Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Creates and places a custom block at a specified location.
      Parameters:
      location - The location to place the block.
      grave - The grave object associated with the block.
    • isCustomBlock

      @Deprecated(since="4.9.9.1", forRemoval=true) public boolean isCustomBlock(org.bukkit.Location location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Checks if a custom block exists at a specified location.
      Parameters:
      location - The location to check.
      Returns:
      True if a custom block exists at the location, false otherwise.
    • removeBlock

      @Deprecated(since="4.9.9.1", forRemoval=true) public void removeBlock(org.bukkit.Location location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Removes a custom block at a specified location.
      Parameters:
      location - The location of the block to be removed.
    • hasFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) public boolean hasFurniture(Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead True if an ItemsAdder furniture entity for this grave is currently spawned.
      Parameters:
      grave - The grave to check.
      Returns:
      True if at least one valid IA furniture entity mapped to this grave exists.
    • hasBlock

      @Deprecated(since="4.9.9.1", forRemoval=true) public boolean hasBlock(Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead True if an ItemsAdder custom block exists at the grave location.
      Parameters:
      grave - The grave to check.
      Returns:
      True if a custom block is present where the grave is placed.
    • createCustomFurniture

      @Deprecated(since="4.9.9.1", forRemoval=true) private dev.lone.itemsadder.api.CustomFurniture createCustomFurniture(String name, org.bukkit.Location location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Creates a custom furniture instance with a specified name and location.
      Parameters:
      name - The name of the custom furniture.
      location - The location where the furniture should be placed.
      Returns:
      The created CustomFurniture instance, or null if creation failed.
    • createCustomBlock

      @Deprecated(since="4.9.9.1", forRemoval=true) private dev.lone.itemsadder.api.CustomBlock createCustomBlock(String name, org.bukkit.Location location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use GravesXModule: ItemsAdder instead Creates a custom block instance with a specified name and location.
      Parameters:
      name - The name of the custom block.
      location - The location where the block should be placed.
      Returns:
      The created CustomBlock instance, or null if creation failed.