Class InventoryUtils

java.lang.Object
de.studiocode.invui.util.InventoryUtils

public class InventoryUtils extends Object
  • Field Details

  • Constructor Details

    • InventoryUtils

      public InventoryUtils()
  • Method Details

    • addItemCorrectly

      public static int addItemCorrectly(org.bukkit.inventory.Inventory inventory, org.bukkit.inventory.ItemStack itemStack)
    • getFirstPartialStack

      @Nullable public static @Nullable org.bukkit.inventory.ItemStack getFirstPartialStack(org.bukkit.inventory.Inventory inventory, @NotNull @NotNull org.bukkit.inventory.ItemStack type)
    • getFirstEmptySlot

      public static int getFirstEmptySlot(org.bukkit.inventory.Inventory inventory)
    • createMatchingInventory

      public static org.bukkit.inventory.Inventory createMatchingInventory(GUI gui, String title)
    • containsSimilar

      public static boolean containsSimilar(org.bukkit.inventory.Inventory inventory, org.bukkit.inventory.ItemStack itemStack)
    • dropItemLikePlayer

      public static void dropItemLikePlayer(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemStack)