PlotSquared/Core/src/main/java/com/plotsquared/core/util/InventoryUtil.java

28 lines
863 B
Java
Raw Normal View History

2020-04-15 21:26:54 +02:00
package com.plotsquared.core.util;
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;
/**
* 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
/**
* 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);
}