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)
static 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
public boolean onClick(int index) -
openInventory
public void openInventory() -
close
public void close() -
setItem
-
getItem
-
getItems
-
getTitle
-
setTitle
-
isOpen
public boolean isOpen() -
getPlayer
-
getLines
public int getLines()
-