Class InventoryData
java.lang.Object
studio.magemonkey.fabled.gui.tool.InventoryData
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
ConstructorsConstructorDescriptionInventoryData
(org.bukkit.entity.Player player) Creates a backup of the player's inventory contents -
Method Summary
Modifier and TypeMethodDescriptionvoid
restore
(org.bukkit.entity.Player player) Restores the player's inventory contents
-
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
-