Package com.plotsquared.core.util
Class InventoryUtil
java.lang.Object
com.plotsquared.core.util.InventoryUtil
This class is only used by internal functions, for most cases use the PlotInventory class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose(PlotInventory inv) abstract PlotItemStack[]getItems(PlotPlayer<?> player) abstract booleanisOpen(PlotInventory plotInventory) abstract voidopen(PlotInventory inv) voidsetItem(PlotInventory plotInventory, int index, PlotItemStack item) Attempts to set an item into aPlotInventoryabstract booleansetItemChecked(PlotInventory plotInventory, int index, PlotItemStack item) Attempts to set an item into aPlotInventorywhile also checking the existence of the material
-
Constructor Details
-
InventoryUtil
public InventoryUtil()
-
-
Method Details
-
open
-
close
-
setItemChecked
Attempts to set an item into aPlotInventorywhile also checking the existence of the material- Parameters:
plotInventory- The inventory where the item should be placedindex- The index where to place the itemitem- The item to place into the inventory- Returns:
trueif the item could be placed,falseotherwise (e.g. item not available in current version)- Since:
- 6.5.0
-
setItem
Attempts to set an item into aPlotInventory- Parameters:
plotInventory- The inventory where the item should be placedindex- The index where to place the itemitem- The item to place into the inventory- See Also:
-
getItems
-
isOpen
-