Class ItemManager

java.lang.Object
net.athonedevs.krork.items.ItemManager

public class ItemManager
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ItemManager()  
  • Method Summary

    Modifier and Type Method Description
    void addItem​(Item item)
    Register items
    void addItems​(Item... items)
    Register items
    Item getItemByID​(int id)
    Gets the Item by its ID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addItems

      public void addItems​(Item... items)
      Register items
      Parameters:
      items - The items to be added
    • addItem

      public void addItem​(Item item)
      Register items
      Parameters:
      item - The item to be added
    • getItemByID

      public Item getItemByID​(int id)
      Gets the Item by its ID
      Parameters:
      id - The ID of the item
      Returns:
      The Item or null