Uses of Class
fr.andross.banitem.items.BannedItem
Package
Description
-
Uses of BannedItem in fr.andross.banitem
Modifier and TypeMethodDescriptionBanItemAPI.getCustomItem
(String metaName) Get a BannedItem object for the meta item named metaName.Modifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(BannedItem item, Map<BanAction, BanActionData> actions, org.bukkit.World... worlds) Add a new banned item to blacklist and save the config file used.boolean
BanItemAPI.addToWhitelist
(WhitelistedWorld ww, BannedItem item, Map<BanAction, BanActionData> actions) Add an item on the whitelist of a world and save in the used configBanItemAPI.getMetaItemName
(BannedItem item) Try to get the meta item name of the given item.BanDatabase.getName
(BannedItem bannedItem) boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, BannedItem item, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.entity.Player player, org.bukkit.Location loc, BannedItem item, BanAction action, BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
BanItemAPI.isBlacklisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is blacklisted, sending a message or not to the player.boolean
BanItemAPI.isBlacklisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) Check if the item is blacklisted, not involving a playerboolean
BanItemAPI.isWhitelisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is whitelisted (allowed), sending a message or not to the player.boolean
BanItemAPI.isWhitelisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) Check if the item is whitelisted, not involving a playerboolean
BanItemAPI.removeFromBlacklist
(BannedItem item, org.bukkit.World... worlds) Remove the banned item from blacklisted worlds and save the config file used.boolean
BanItemAPI.removeFromWhitelist
(WhitelistedWorld ww, BannedItem item) Remove the item from the whitelist and save in config.yml (comments in file may be removed)Modifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(Collection<? extends BannedItem> items, Map<BanAction, BanActionData> actions, org.bukkit.World... worlds) Add the banned items to the blacklist and save the config file usedboolean
BanItemAPI.removeFromBlacklist
(Collection<? extends BannedItem> items, org.bukkit.World... worlds) -
Uses of BannedItem in fr.andross.banitem.database
Modifier and TypeMethodDescriptionvoid
Blacklist.addNewBan
(org.bukkit.World world, BannedItem item, Map<BanAction, BanActionData> map) This will add a new entry to the blacklist.void
WhitelistedWorld.addNewEntry
(BannedItem item, Map<BanAction, BanActionData> map) This will add a new entry to the whitelistvoid
Whitelist.addNewException
(WhitelistedWorld ww, BannedItem item, Map<BanAction, BanActionData> actions) This will add a new exception (allowed item) into the WhitelistedWorld object.Blacklist.getBanActions
(org.bukkit.World world, BannedItem item) Trying to get the ban actions with their respective ban actions data for this item in the said world.Blacklist.getBanData
(org.bukkit.World world, BannedItem item, BanAction action) Try to get the ban actions data for this item with this action.boolean
Blacklist.isBlacklisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the action with the item is blacklisted for the player.boolean
Blacklist.isBlacklisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is banned, not involving a player This method is mainly used to check dispensers dispense and hoppers transferboolean
Whitelist.isWhitelisted
(org.bukkit.entity.Player player, org.bukkit.Location location, BannedItem item, boolean sendMessage, BanAction action, BanData... data) Check if the item is whitelisted (allowed)boolean
Whitelist.isWhitelisted
(org.bukkit.World world, BannedItem item, BanAction action, BanData... data) This method is used to check if the item is whitelisted, not involving a player This method is mainly used to check dispensers dispense and hoppers transfer -
Uses of BannedItem in fr.andross.banitem.database.items
Modifier and TypeFieldDescriptionprotected final Map<BannedItem,
Map<BanAction, BanActionData>> Items.items
Modifier and TypeMethodDescriptionItems.getItems()
Get the items map (include normal and meta items)Modifier and TypeMethodDescriptionItems.get
(BannedItem bannedItem) Get a map of actions and their respective data for a banned item object, if present.Items.get
(BannedItem bannedItem, BanAction action) Get the BanActionData of the BannedItem for the said action, if present. -
Uses of BannedItem in fr.andross.banitem.events
Modifier and TypeMethodDescriptionDeleteBannedItemEvent.getBannedItem()
The banned item involvedPlayerBanItemEvent.getBannedItem()
The banned itemModifierConstructorDescriptionDeleteBannedItemEvent
(org.bukkit.entity.Player who, BannedItem bannedItem) PlayerBanItemEvent
(org.bukkit.entity.Player player, PlayerBanItemEvent.Type type, BannedItem bannedItem, BanAction action, BanActionData actionData, BanData... data) -
Uses of BannedItem in fr.andross.banitem.items
Modifier and TypeClassDescriptionfinal class
An item wrapper, which store custom item metafinal class
An item wrapper for meta items -
Uses of BannedItem in fr.andross.banitem.utils.list
Modifier and TypeMethodDescriptionstatic List<BannedItem>
Listable.getItems
(BanDatabase database, Object obj, Debug d) Trying to get a list of type If there is any error, this will be debugged