Package net.citizensnpcs.trait
Class ShopTrait.NPCShopItem
java.lang.Object
net.citizensnpcs.trait.ShopTrait.NPCShopItem
- All Implemented Interfaces:
Cloneable
,Persistable
- Enclosing class:
- ShopTrait
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeCost
(Function<NPCShopAction, Boolean> filter, NPCShopAction cost) void
changeResult
(Function<NPCShopAction, Boolean> filter, NPCShopAction result) clone()
execute
(List<NPCShopAction> actions, Function<NPCShopAction, NPCShopAction.Transaction> func) getDisplayItem
(Player player) void
void
onClick
(ShopTrait.NPCShop shop, CitizensInventoryClickEvent event, boolean secondClick) void
-
Constructor Details
-
NPCShopItem
public NPCShopItem()
-
-
Method Details
-
changeCost
-
changeResult
-
clone
-
execute
public List<NPCShopAction.Transaction> execute(List<NPCShopAction> actions, Function<NPCShopAction, NPCShopAction.Transaction> func) -
getDisplayItem
-
load
- Specified by:
load
in interfacePersistable
-
onClick
-
save
- Specified by:
save
in interfacePersistable
-