Class InventoryUtils

java.lang.Object
xyz.xenondevs.invui.util.InventoryUtils

public class InventoryUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    addItemCorrectly(@NotNull org.bukkit.inventory.Inventory inventory, @NotNull org.bukkit.inventory.ItemStack itemStack)
     
    static int
    addItemCorrectly(@NotNull org.bukkit.inventory.Inventory inventory, @NotNull org.bukkit.inventory.ItemStack itemStack, boolean @NotNull [] blockedSlots)
     
    static boolean
    containsSimilar(@NotNull org.bukkit.inventory.Inventory inventory, @Nullable org.bukkit.inventory.ItemStack itemStack)
     
    static org.bukkit.inventory.Inventory
    createMatchingInventory(@NotNull Gui gui, @NotNull String title)
     
    static void
    dropItemLikePlayer(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack itemStack)
     
    static int
    getFirstEmptySlot(@NotNull org.bukkit.inventory.Inventory inventory)
     
    static int
    getFirstEmptySlot(@NotNull org.bukkit.inventory.Inventory inventory, boolean @NotNull [] blockedSlots)
     
    static @Nullable org.bukkit.inventory.ItemStack
    getFirstPartialStack(@NotNull org.bukkit.inventory.Inventory inventory, @NotNull org.bukkit.inventory.ItemStack type)
     
    static @Nullable org.bukkit.inventory.ItemStack
    getFirstPartialStack(@NotNull org.bukkit.inventory.Inventory inventory, @NotNull org.bukkit.inventory.ItemStack type, boolean @NotNull [] blockedSlots)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • InventoryUtils

      public InventoryUtils()
  • Method Details

    • addItemCorrectly

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

      public static int addItemCorrectly(@NotNull @NotNull org.bukkit.inventory.Inventory inventory, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, boolean @NotNull [] blockedSlots)
    • getFirstPartialStack

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

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

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

      public static int getFirstEmptySlot(@NotNull @NotNull org.bukkit.inventory.Inventory inventory, boolean @NotNull [] blockedSlots)
    • createMatchingInventory

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

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

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