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

        @Deprecated
        public void buy​(ShopItem item,
                        int quantity)
        Deprecated.
        Legacy MAX_VALUE means All; negative quantities are rejected.
      • sell

        @Deprecated
        public void sell​(InventoryItem item,
                         int quantity)
        Deprecated.
        Legacy MAX_VALUE means All; negative quantities are rejected.