Package net.citizensnpcs.trait.shop
Class ConditionAction
java.lang.Object
net.citizensnpcs.trait.shop.NPCShopAction
net.citizensnpcs.trait.shop.ConditionAction
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.citizensnpcs.trait.shop.NPCShopAction
NPCShopAction.GUI, NPCShopAction.Transaction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()intgetMaxRepeats(Entity entity, InventoryMultiplexer inventory) grant(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) voidsetExpression(String expression) take(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats)
-
Constructor Details
-
ConditionAction
public ConditionAction() -
ConditionAction
-
-
Method Details
-
describe
- Specified by:
describein classNPCShopAction
-
getMaxRepeats
- Specified by:
getMaxRepeatsin classNPCShopAction
-
grant
public NPCShopAction.Transaction grant(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) - Specified by:
grantin classNPCShopAction
-
setExpression
-
take
public NPCShopAction.Transaction take(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer inventory, int repeats) - Specified by:
takein classNPCShopAction
-