Class QueueService

java.lang.Object
studio.magemonkey.fusion.api.events.services.QueueService

public class QueueService extends Object
  • Constructor Details

    • QueueService

      public QueueService()
  • Method Details

    • addQueueItem

      public void addQueueItem(org.bukkit.entity.Player player, CraftingTable table, CraftingQueue queue, QueueItem item)
      Call the QueueItemAddedEvent.
      Parameters:
      player - The player that adds the item to the queue.
      table - The crafting table (profession) the player is using.
      queue - The crafting queue the player is using.
      item - The queue item that is added to the queue.
    • cancelQueueItem

      public void cancelQueueItem(org.bukkit.entity.Player player, CraftingTable table, CraftingQueue queue, QueueItem item, boolean finished, boolean refunded, List<org.bukkit.inventory.ItemStack> refundItems)
      Call the QueueItemCanceledEvent.
      Parameters:
      player - The player that cancels the item in the queue.
      table - The crafting table (profession) the player is using.
      queue - The crafting queue the player is using.
      item - The queue item that is canceled.
      finished - If the item is finished.
      refunded - If the item ingredients will be refunded.
      refundItems - The items that will be refunded in case `refunded=true`.
    • finishQueueItem

      public void finishQueueItem(org.bukkit.entity.Player player, CraftingTable table, CraftingQueue queue, QueueItem item, List<RecipeItem> resultItems)
      Call the QueueItemFinishedEvent.
      Parameters:
      player - The player that finishes the item in the queue.
      table - The crafting table (profession) the player is using.
      queue - The crafting queue the player is using.
      item - The queue item that is finished.
      resultItems - The result items of the queue item.