Class MetaItems
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
BannedItem>
Map that contains all the meta items
This is a double map (include a reversed map), for easier access of
meta items names and their respective banned item.
- Version:
- 3.1.1
- Author:
- Andross
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Methods inherited from class fr.andross.banitem.utils.DoubleMap
clear, getKey, getReversed, put, remove
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
MetaItems
This will create a new instance of meta items map, with the items from metaitems.yml file. This should not be used externally, as it could create two different instance of this object. You should useBanItemAPI.load(CommandSender, File)
instead.- Parameters:
pl
- main instancesender
- the sender who executed this command, for debug
-
-
Method Details
-
getConfig
@NotNull public org.bukkit.configuration.file.FileConfiguration getConfig()- Returns:
- the file configuration used to create this instance
-
getFile
- Returns:
- the "items.yml" file of the BanItem plugin
-