Package net.citizensnpcs.trait.shop
Class NPCShopAction
java.lang.Object
net.citizensnpcs.trait.shop.NPCShopAction
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CommandAction
,ExperienceAction
,ItemAction
,MoneyAction
,OpenShopAction
,PermissionAction
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
abstract String
describe()
static Iterable
<NPCShopAction.GUI> getGUIs()
abstract int
getMaxRepeats
(Entity entity, InventoryMultiplexer inventory) abstract NPCShopAction.Transaction
grant
(Entity entity, InventoryMultiplexer inventory, int repeats) static void
register
(Class<? extends NPCShopAction> clazz, String type, NPCShopAction.GUI gui) abstract NPCShopAction.Transaction
take
(Entity entity, InventoryMultiplexer inventory, int repeats)
-
Constructor Details
-
NPCShopAction
public NPCShopAction()
-
-
Method Details
-
clone
-
describe
-
getMaxRepeats
-
grant
public abstract NPCShopAction.Transaction grant(Entity entity, InventoryMultiplexer inventory, int repeats) -
grant
-
take
public abstract NPCShopAction.Transaction take(Entity entity, InventoryMultiplexer inventory, int repeats) -
take
-
getGUIs
-
register
public static void register(Class<? extends NPCShopAction> clazz, String type, NPCShopAction.GUI gui)
-