Class FullInventoryHandler

java.lang.Object
com.bencodez.advancedcore.api.item.FullInventoryHandler

public class FullInventoryHandler extends Object
Handler for items when player inventories are full.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for FullInventoryHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(UUID uuid, ArrayList<org.bukkit.inventory.ItemStack> item)
    Adds multiple items for a player.
    void
    add(UUID uuid, org.bukkit.inventory.ItemStack item)
    Adds a single item for a player.
    void
    Checks all players for pending items.
    void
    check(org.bukkit.entity.Player p)
    Checks a specific player for pending items.
    void
    giveItem(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack... item)
    Gives items to a player.
    void
    Loads the timer for checking inventories.
    void
    Saves pending items to disk.
    void
    Loads pending items from disk on startup.

    Methods inherited from class java.lang.Object

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

    • FullInventoryHandler

      public FullInventoryHandler(AdvancedCorePlugin plugin)
      Constructor for FullInventoryHandler.
      Parameters:
      plugin - the plugin instance
  • Method Details

    • add

      public void add(UUID uuid, ArrayList<org.bukkit.inventory.ItemStack> item)
      Adds multiple items for a player.
      Parameters:
      uuid - the player UUID
      item - the items to add
    • add

      public void add(UUID uuid, org.bukkit.inventory.ItemStack item)
      Adds a single item for a player.
      Parameters:
      uuid - the player UUID
      item - the item to add
    • check

      public void check()
      Checks all players for pending items.
    • check

      public void check(org.bukkit.entity.Player p)
      Checks a specific player for pending items.
      Parameters:
      p - the player
    • giveItem

      public void giveItem(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack... item)
      Gives items to a player.
      Parameters:
      p - the player
      item - the items to give
    • loadTimer

      public void loadTimer()
      Loads the timer for checking inventories.
    • save

      public void save()
      Saves pending items to disk.
    • startup

      public void startup()
      Loads pending items from disk on startup.