Class MetaItems

All Implemented Interfaces:
Serializable, Cloneable, Map<String,BannedItem>

public final class MetaItems extends DoubleMap<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:
  • Constructor Details Link icon

    • MetaItems Link icon

      public MetaItems(@NotNull @NotNull BanItem pl, @NotNull @NotNull org.bukkit.command.CommandSender sender)
      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 use BanItemAPI.load(CommandSender, File) instead.
      Parameters:
      pl - main instance
      sender - the sender who executed this command, for debug
  • Method Details Link icon

    • getConfig Link icon

      @NotNull public @NotNull org.bukkit.configuration.file.FileConfiguration getConfig()
      The file configuration used to create this instance
      Returns:
      the file configuration used to create this instance
    • getFile Link icon

      @NotNull public @NotNull File getFile()
      The "metaitems.yml" file of the BanItem plugin.
      Returns:
      the "metaitems.yml" file of the BanItem plugin