Class Items
java.lang.Object
fr.andross.banitem.database.items.Items
- Direct Known Subclasses:
WhitelistedWorld
Map that store all the banned items, with their actions and actions datas.
- Version:
- 3.1.1
- Author:
- Andross
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<CustomBannedItem,
Map<BanAction, BanActionData>> protected final Map<BannedItem,
Map<BanAction, BanActionData>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(BannedItem bannedItem) Get a map of actions and their respective data for a banned item object, if present.get
(BannedItem bannedItem, BanAction action) Get the BanActionData of the BannedItem for the said action, if present.Get all actions saved for the items, unmodifiableGet the custom items mapgetItems()
Get the items map (include normal and meta items)int
getTotal()
Get the total amount of items added
-
Field Details
-
items
-
customItems
-
-
Constructor Details
-
Items
public Items()
-
-
Method Details
-
get
Get a map of actions and their respective data for a banned item object, if present.- Parameters:
bannedItem
- the banned item- Returns:
- a map of actions and data if found, otherwise null.
-
get
Get the BanActionData of the BannedItem for the said action, if present.- Parameters:
bannedItem
- the banned itemaction
- the action- Returns:
- the BanActionData if found, otherwise null.
-
getItems
Get the items map (include normal and meta items)- Returns:
- the items map
-
getCustomItems
Get the custom items map- Returns:
- the custom items map
-
getTotal
public int getTotal()Get the total amount of items added- Returns:
- the total amount of items added
-
getAllActions
Get all actions saved for the items, unmodifiable- Returns:
- all actions saved for the items
-