Class BancoItemManager

java.lang.Object
ovh.mythmc.banco.api.items.BancoItemManager

public final class BancoItemManager extends Object
  • Field Details

  • Constructor Details

    • BancoItemManager

      public BancoItemManager()
  • Method Details

    • registerItems

      public void registerItems(@NotNull @NotNull BancoItem... items)
      Registers a BancoItem
      Parameters:
      items - item to register
    • unregisterItems

      public void unregisterItems(@NotNull @NotNull BancoItem... items)
      Unregisters a BancoItem
      Parameters:
      items - item to unregister
    • clear

      @Internal public void clear()
    • get

      public List<BancoItem> get()
      Returns a list of registered items
      Returns:
      A list with every registered items
    • get

      public BancoItem get(@NotNull @NotNull String materialName, @NotNull @NotNull String displayName, Integer customModelData)
      Gets a specific BancoItem
      Parameters:
      materialName - material name of an item
      displayName - display name of an item
      customModelData - custom model data of an item
      Returns:
      A BancoItem matching parameters or null
    • value

      public BigDecimal value(@NotNull @NotNull BancoItem item, int amount)
      Gets the value of an item
      Parameters:
      item - a BancoItem
      amount - amount of items
      Returns:
      Value of BancoItem multiplied by the amount