Class InventoryData

java.lang.Object
studio.magemonkey.fabled.gui.tool.InventoryData

public class InventoryData extends Object
Handles keeping track of player inventory data when overwriting it for tool GUIs, allowing the plugin to restore it as they close the menu.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InventoryData(org.bukkit.entity.Player player)
    Creates a backup of the player's inventory contents
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    restore(org.bukkit.entity.Player player)
    Restores the player's inventory contents

    Methods inherited from class java.lang.Object

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

    • InventoryData

      public InventoryData(org.bukkit.entity.Player player)
      Creates a backup of the player's inventory contents
      Parameters:
      player - player to make a backup for
  • Method Details

    • restore

      public void restore(org.bukkit.entity.Player player)
      Restores the player's inventory contents
      Parameters:
      player - player to restore for