Interface IItemListModuleView

All Superinterfaces:
IBuildingModuleView
All Known Implementing Classes:
FloristFlowerListModuleView, ItemListModuleView

public interface IItemListModuleView extends IBuildingModuleView
Client side version of the abstract class for all buildings which require a filterable list of allowed items.
  • Method Details

    • addItem

      void addItem(ItemStorage item)
      Add item to the view and notify the server side.
      Parameters:
      item - the item to add.
    • isAllowedItem

      boolean isAllowedItem(ItemStorage item)
      Check if an item is in the list of allowed items.
      Parameters:
      item - the item to check.
      Returns:
      true if so.
    • getSize

      int getSize()
      Get the size of allowed items.
      Returns:
      the size.
    • removeItem

      void removeItem(ItemStorage item)
      Remove an item from the view and notify the server side.
      Parameters:
      item - the item to remove.
    • getId

      String getId()
      Get the unique id of this group (used to sync with server side).
      Returns:
      the id.
    • getAllItems

      Get the supplier of the list of all items to display.
      Returns:
      the list.
    • isInverted

      boolean isInverted()
      Check if the list is enabling or disabling.
      Returns:
      true if enabling.
    • clearItems

      void clearItems()
      Clear the list of items