Package net.citizensnpcs.trait.shop
Class ItemAction
java.lang.Object
net.citizensnpcs.trait.shop.NPCShopAction
net.citizensnpcs.trait.shop.ItemAction
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.citizensnpcs.trait.shop.NPCShopAction
NPCShopAction.GUI, NPCShopAction.Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
int
getMaxRepeats
(Entity entity, InventoryMultiplexer im) grant
(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer im, int repeats) take
(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer im, int repeats)
-
Field Details
-
items
-
metaFilter
-
requireUndamaged
public boolean requireUndamaged
-
-
Constructor Details
-
ItemAction
public ItemAction() -
ItemAction
-
ItemAction
-
-
Method Details
-
describe
- Specified by:
describe
in classNPCShopAction
-
getMaxRepeats
- Specified by:
getMaxRepeats
in classNPCShopAction
-
grant
public NPCShopAction.Transaction grant(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer im, int repeats) - Specified by:
grant
in classNPCShopAction
-
take
public NPCShopAction.Transaction take(ShopTrait.NPCShopStorage storage, Entity entity, InventoryMultiplexer im, int repeats) - Specified by:
take
in classNPCShopAction
-