Package com.plotsquared.core.plot
Class PlotInventory
java.lang.Object
com.plotsquared.core.plot.PlotInventory
-
Constructor Summary
ConstructorDescriptionPlotInventory
(@NonNull InventoryUtil inventoryUtil, PlotPlayer<?> player, int lines, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getItem
(int index) getItems()
int
getLines()
static PlotInventory
getOpenPlotInventory
(@NonNull PlotPlayer<?> plotPlayer) PlotPlayer<?>
getTitle()
static boolean
hasPlotInventoryOpen
(@NonNull PlotPlayer<?> plotPlayer) boolean
isOpen()
boolean
onClick
(int index) void
static void
removePlotInventoryOpen
(@NonNull PlotPlayer<?> plotPlayer) void
setItem
(int index, PlotItemStack item) Put an item into this inventoryboolean
setItemChecked
(int index, PlotItemStack item) Put an item into this inventory, while also checking the existence of the material in the current versionstatic void
setPlotInventoryOpen
(@NonNull PlotPlayer<?> plotPlayer, @NonNull PlotInventory plotInventory) void
-
Constructor Details
-
PlotInventory
public PlotInventory(@NonNull InventoryUtil inventoryUtil, PlotPlayer<?> player, int lines, String name)
-
-
Method Details
-
hasPlotInventoryOpen
-
getOpenPlotInventory
-
setPlotInventoryOpen
public static void setPlotInventoryOpen(@NonNull PlotPlayer<?> plotPlayer, @NonNull PlotInventory plotInventory) -
removePlotInventoryOpen
-
onClick
-
openInventory
-
close
-
setItem
Put an item into this inventory- Parameters:
index
- the index (= slot) where to place the itemitem
- the item to place- See Also:
-
setItemChecked
Put an item into this inventory, while also checking the existence of the material in the current version- Parameters:
index
- the index (= slot) where to place the itemitem
- the item to place- Returns:
true
if the item could be placed, otherwisefalse
- Since:
- 6.5.0
- See Also:
-
getItem
-
getItems
-
getTitle
-
setTitle
-
isOpen
-
getPlayer
-
getLines
-