Package xyz.xenondevs.invui.util
Class InventoryUtils
java.lang.Object
xyz.xenondevs.invui.util.InventoryUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Field Details
-
stackSizeProvider
-
-
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
-
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)
-