Class ItemDownloader

java.lang.Object
io.github.cobas91.util.RiotApiHttpClient
io.github.cobas91.lol.client.ItemDownloader

public class ItemDownloader extends RiotApiHttpClient
  • Method Details

    • getAllItems

      public List<Item> getAllItems()
      Retrieves all items from the League of Legends API.
      Returns:
      a List of Item objects representing the items in the game
    • downloadItemSplash

      public byte[] downloadItemSplash(Integer itemId)
      Downloads the splash image of a League of Legends item.
      Parameters:
      itemId - the ID of the item
      Returns:
      the byte array representing the downloaded image