Package ovh.mythmc.banco.api.items
Class BancoItemManager
java.lang.Object
ovh.mythmc.banco.api.items.BancoItemManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
get()
Returns a list of registered itemsGets a specific BancoItemvoid
registerItems
(@NotNull BancoItem... items) Registers a BancoItemvoid
unregisterItems
(@NotNull BancoItem... items) Unregisters a BancoItemGets the value of an item
-
Field Details
-
instance
-
-
Constructor Details
-
BancoItemManager
public BancoItemManager()
-
-
Method Details
-
registerItems
Registers a BancoItem- Parameters:
items
- item to register
-
unregisterItems
Unregisters a BancoItem- Parameters:
items
- item to unregister
-
clear
@Internal public void clear() -
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 itemdisplayName
- display name of an itemcustomModelData
- custom model data of an item- Returns:
- A BancoItem matching parameters or null
-
value
Gets the value of an item- Parameters:
item
- a BancoItemamount
- amount of items- Returns:
- Value of BancoItem multiplied by the amount
-