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
-
Method Summary
Modifier and TypeMethodDescriptionapply
(List<NPCShopAction> actions, Function<NPCShopAction, NPCShopAction.Transaction> func) void
changeCost
(Function<NPCShopAction, Boolean> filter, NPCShopAction cost) void
changeResult
(Function<NPCShopAction, Boolean> filter, NPCShopAction result) clone()
getDisplayItem
(Player player) void
void
onClick
(ShopTrait.NPCShop shop, Player player, InventoryMultiplexer inventory, boolean shiftClick, boolean secondClick) void
-
Constructor Details
-
NPCShopItem
public NPCShopItem()
-
-
Method Details
-
apply
public List<NPCShopAction.Transaction> apply(List<NPCShopAction> actions, Function<NPCShopAction, NPCShopAction.Transaction> func) -
changeCost
-
changeResult
-
clone
-
getDisplayItem
-
load
- Specified by:
load
in interfacePersistable
-
onClick
public void onClick(ShopTrait.NPCShop shop, Player player, InventoryMultiplexer inventory, boolean shiftClick, boolean secondClick) -
save
- Specified by:
save
in interfacePersistable
-