Class ShopService


  • @Singleton
    public class ShopService
    extends java.lang.Object
    Open-shop reads and buy/sell commands.
    • Method Detail

      • isOpen

        public boolean isOpen()
      • open

        public void open​(NpcRef shopkeeper)
      • stock

        public java.util.List<ShopItem> stock()
      • first

        public ShopItem first​(java.lang.String name)
      • buy

        public void buy​(ShopItem item,
                        int quantity)