Class InventoryUtil

java.lang.Object
net.guizhanss.guizhanlib.minecraft.utils.InventoryUtil

public final class InventoryUtil extends Object
Utility methods about player inventory.
Author:
ybw0014
  • Constructor Details

    • InventoryUtil

      public InventoryUtil()
  • Method Details

    • push

      @ParametersAreNonnullByDefault public static void push(Player p, ItemStack... itemStacks)
      This method push all ItemStack to Player's inventory. if some items cannot be pushed, they will be dropped at Player's Location.
      Parameters:
      p - the Player
      itemStacks - all the ItemStacks to be pushed