public final class InventoryUtil
extends Object
Utility methods about player inventory.
- Author:
- ybw0014
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
InventoryUtil
public InventoryUtil()
-
Method Details
-
push
@ParametersAreNonnullByDefault
public static void push(Player p,
ItemStack... itemStacks)
- Parameters:
p - the Player
itemStacks - all the ItemStacks to be pushed
-
push
This method push all
ItemStack to
Player's inventory.
if some items cannot be pushed, they will be dropped at the specified
Location.
- Parameters:
p - the Player
loc - the Location to drop items
itemStacks - all the ItemStacks to be pushed