Class KnowledgeView

  • All Implemented Interfaces:
    ItemView

    public class KnowledgeView
    extends AbstractItemView
    Displays knowledge items the player knows.
    • Constructor Detail

      • KnowledgeView

        public KnowledgeView​(@NotNull
                             @NotNull FacesManager facesManager,
                             @NotNull
                             @NotNull KnowledgeManager knowledgeManager)
    • Method Detail

      • getSize

        public int getSize()
        Description copied from interface: ItemView
        Returns the number of items.
        Returns:
        the number of items
      • getItem

        @Nullable
        public @Nullable CfItem getItem​(int index)
        Description copied from interface: ItemView
        Returns the CfItem in a given slot.
        Parameters:
        index - the slot index
        Returns:
        the item or null if the slot is empty