Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 904 Bytes

InventoryHelper.md

File metadata and controls

31 lines (19 loc) · 904 Bytes

Documentation

public class InventoryHelper

  • Author: rellu

public static int inventorySize(int amount)

  • Parameters: amount — of items in the Inventory
  • Returns: int The Size needed for the amount of items.

public static Inventory createInventory(int size, String name)

  • Parameters:
    • size — real size of the Inventory
    • name — of the Inventory
  • Returns: Inventory

public static void updateInventory(CommandSender sender)

  • Parameters: sender — Updates Inventory for CommandSender / Player

public static void closeInventory(CommandSender sender)

  • Parameters: sender — Closes Inventory for CommandSender / Player

public static void openInventory(CommandSender sender, Inventory inv)

  • Parameters:
    • sender — Opens Inventory for CommandSender / Player
    • inv — Inventory to Open