Class ItemFactory

java.lang.Object
dev.mikita.darkforest.core.factory.ItemFactory

public class ItemFactory extends Object
The type Item factory.

Factory class for getting items by their id.

  • Constructor Details

    • ItemFactory

      public ItemFactory()
  • Method Details

    • getItem

      public static AItem getItem(int id)
      Gets item.
      Parameters:
      id - The item id.
      Returns:
      The item.