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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()abstract Stringdescribe()static Iterable<NPCShopAction.GUI> getGUIs()abstract intgetMaxRepeats(Entity entity, InventoryMultiplexer inventory) abstract NPCShopAction.Transactiongrant(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) static voidregister(Class<? extends NPCShopAction> clazz, String type, NPCShopAction.GUI gui) abstract NPCShopAction.Transactiontake(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats)
-
Constructor Details
-
NPCShopAction
public NPCShopAction()
-
-
Method Details
-
clone
-
describe
-
getMaxRepeats
-
grant
public abstract NPCShopAction.Transaction grant(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) -
grant
-
take
public abstract NPCShopAction.Transaction take(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) -
take
-
getGUIs
-
register
public static void register(Class<? extends NPCShopAction> clazz, String type, NPCShopAction.GUI gui)
-