2020-04-15 21:26:54 +02:00
|
|
|
package com.plotsquared.core.util;
|
2015-07-03 04:11:41 +02:00
|
|
|
|
2020-04-15 21:26:54 +02:00
|
|
|
import com.plotsquared.core.plot.PlotInventory;
|
|
|
|
import com.plotsquared.core.plot.PlotItemStack;
|
|
|
|
import com.plotsquared.core.player.PlotPlayer;
|
2015-07-03 04:11:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This class is only used by internal functions, for most cases use the PlotInventory class
|
|
|
|
*/
|
2015-09-13 06:04:31 +02:00
|
|
|
public abstract class InventoryUtil {
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2015-07-03 04:11:41 +02:00
|
|
|
/**
|
|
|
|
* This class is only used by internal functions, for most cases use the PlotInventory class
|
|
|
|
*/
|
|
|
|
public static InventoryUtil manager = null;
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
public abstract void open(final PlotInventory inv);
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
public abstract void close(final PlotInventory inv);
|
2018-08-10 17:01:10 +02:00
|
|
|
|
|
|
|
public abstract void setItem(final PlotInventory plotInventory, final int index,
|
|
|
|
final PlotItemStack item);
|
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
public abstract PlotItemStack[] getItems(final PlotPlayer player);
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
public abstract boolean isOpen(final PlotInventory plotInventory);
|
2015-07-03 04:11:41 +02:00
|
|
|
}
|