Uses of Class
fr.andross.banitem.items.BannedItem
Packages that use BannedItem
Package
Description
-
Uses of BannedItem in fr.andross.banitem
Methods in fr.andross.banitem that return BannedItemModifier and TypeMethodDescription@Nullable BannedItem
BanItemAPI.getCustomItem
(@NotNull String customItemName) Get the configured custom item by its name.@Nullable BannedItem
BanItemAPI.getMetaItem
(@NotNull String metaItemName) Get the configured meta item by its name.Methods in fr.andross.banitem with parameters of type BannedItemModifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(@NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> actions, @Nullable org.bukkit.World... worlds) Add a new banned item to blacklist and save the config file used.boolean
BanItemAPI.addToWhitelist
(@NotNull WhitelistedWorld whitelistedWorld, @NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> actions) Add an item on the whitelist of a world and save in the used config.@Nullable String
BanItemAPI.getMetaItemName
(@NotNull BannedItem item) Try to get the meta item name of the given item.@NotNull String
BanDatabase.getName
(@NotNull BannedItem bannedItem) Try to get the custom or meta item name of the item.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, in both blacklist and whitelist, not involving a player.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBanned
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location loc, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the BannedItem object is banned, in both blacklist and whitelist.boolean
BanItemAPI.isBlacklisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the item is blacklisted, not involving a player.boolean
BanItemAPI.isBlacklisted
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is blacklisted.boolean
BanItemAPI.isWhitelisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted, not involving a player.boolean
BanItemAPI.isWhitelisted
(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted (allowed), sending a message or not to the player.boolean
BanItemAPI.removeFromBlacklist
(@NotNull BannedItem item, @Nullable org.bukkit.World... worlds) Remove the banned item from blacklisted worlds and save the config file used.boolean
BanItemAPI.removeFromWhitelist
(@NotNull WhitelistedWorld whitelistedWorld, @NotNull BannedItem item) Remove the item from the whitelist and save in config.yml (comments in file may be removed).Method parameters in fr.andross.banitem with type arguments of type BannedItemModifier and TypeMethodDescriptionboolean
BanItemAPI.addToBlacklist
(@NotNull Collection<? extends BannedItem> items, @NotNull Map<BanAction, BanActionData> actions, @Nullable org.bukkit.World... worlds) Add the banned items to the blacklist and save the config file used.boolean
BanItemAPI.removeFromBlacklist
(@NotNull Collection<? extends BannedItem> items, @Nullable org.bukkit.World... worlds) Remove the banned items from blacklisted worlds and save the config file used. -
Uses of BannedItem in fr.andross.banitem.database
Methods in fr.andross.banitem.database with parameters of type BannedItemModifier and TypeMethodDescriptionvoid
Blacklist.addNewBan
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the blacklist.void
WhitelistedWorld.addNewEntry
(@NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the whitelist.void
Whitelist.addNewException
(@NotNull WhitelistedWorld ww, @NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> actions) This will add a new exception (allowed item) into the WhitelistedWorld object.@Nullable Map
<BanAction, BanActionData> Blacklist.getBanActions
(@NotNull org.bukkit.World world, @NotNull BannedItem item) Trying to get the ban actions with their respective ban actions data for this item in the said world.@Nullable BanActionData
Blacklist.getBanData
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action) Try to get the ban actions data for this item with this action.boolean
Blacklist.isBlacklisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is banned, not involving a player.boolean
Blacklist.isBlacklisted
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the action with the item is blacklisted for the player.boolean
Whitelist.isWhitelisted
(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull BanAction action, @Nullable BanData... data) This method is used to check if the item is whitelisted, not involving a player.boolean
Whitelist.isWhitelisted
(@NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.Location location, @NotNull BannedItem item, boolean sendMessage, @NotNull BanAction action, @Nullable BanData... data) Check if the item is whitelisted (allowed). -
Uses of BannedItem in fr.andross.banitem.database.items
Fields in fr.andross.banitem.database.items with type parameters of type BannedItemModifier and TypeFieldDescriptionprotected final Map
<BannedItem, Map<BanAction, BanActionData>> Items.items
Items map, containing all items.Methods in fr.andross.banitem.database.items that return types with arguments of type BannedItemModifier and TypeMethodDescription@NotNull Map
<BannedItem, Map<BanAction, BanActionData>> Items.getItems()
Get the items map (include normal and meta items).Methods in fr.andross.banitem.database.items with parameters of type BannedItemModifier and TypeMethodDescription@Nullable Map
<BanAction, BanActionData> Items.get
(@NotNull BannedItem bannedItem) Get a map of actions and their respective data for a banned item object, if present.@Nullable BanActionData
Items.get
(@NotNull BannedItem bannedItem, @NotNull BanAction action) Get the BanActionData of the BannedItem for the said action, if present. -
Uses of BannedItem in fr.andross.banitem.events
Methods in fr.andross.banitem.events that return BannedItemModifier and TypeMethodDescription@NotNull BannedItem
DeleteBannedItemEvent.getBannedItem()
The banned item involved.@NotNull BannedItem
PlayerBanItemEvent.getBannedItem()
The banned item.Constructors in fr.andross.banitem.events with parameters of type BannedItemModifierConstructorDescriptionDeleteBannedItemEvent
(@NotNull org.bukkit.entity.Player who, @NotNull BannedItem bannedItem) Event triggered when an item will be deleted by BanItem because it is banned.PlayerBanItemEvent
(@NotNull org.bukkit.entity.Player player, @NotNull PlayerBanItemEvent.Type type, @NotNull BannedItem bannedItem, @NotNull BanAction action, @NotNull BanActionData actionData, @Nullable BanData... data) Construct the event with all information about the occurring banning process. -
Uses of BannedItem in fr.andross.banitem.items
Subclasses of BannedItem in fr.andross.banitem.itemsModifier and TypeClassDescriptionfinal class
An item wrapper, which store custom item meta.final class
An item wrapper for meta items.Methods in fr.andross.banitem.items with parameters of type BannedItemModifier and TypeMethodDescriptionboolean
CustomBannedItem.matches
(@NotNull BannedItem bannedItem) Comparing the ItemMeta of the item with the item meta stored. -
Uses of BannedItem in fr.andross.banitem.items.meta
Methods in fr.andross.banitem.items.meta with parameters of type BannedItemModifier and TypeMethodDescriptionboolean
AdvancedEnchantments.matches
(@NotNull BannedItem bannedItem) boolean
AttributeContains.matches
(@NotNull BannedItem bannedItem) boolean
DisplayNameContains.matches
(@NotNull BannedItem bannedItem) boolean
DisplayNameEquals.matches
(@NotNull BannedItem bannedItem) boolean
DisplayNameEqualsRegex.matches
(@NotNull BannedItem bannedItem) boolean
Durability.matches
(@NotNull BannedItem bannedItem) boolean
EnchantmentContains.matches
(@NotNull BannedItem bannedItem) boolean
EnchantmentEquals.matches
(@NotNull BannedItem bannedItem) boolean
ItemsAdder.matches
(@NotNull BannedItem bannedItem) boolean
LoreContains.matches
(@NotNull BannedItem bannedItem) boolean
LoreContainsRegex.matches
(@NotNull BannedItem bannedItem) boolean
LoreEquals.matches
(@NotNull BannedItem bannedItem) boolean
LoreLineContains.matches
(@NotNull BannedItem bannedItem) abstract boolean
MetaTypeComparator.matches
(@NotNull BannedItem bannedItem) Check if the meta type configured matches on the item involved.boolean
ModeldataEquals.matches
(@NotNull BannedItem bannedItem) boolean
NBTAPI.matches
(@NotNull BannedItem bannedItem) boolean
Potion.matches
(@NotNull BannedItem bannedItem) boolean
Unbreakable.matches
(@NotNull BannedItem bannedItem) -
Uses of BannedItem in fr.andross.banitem.utils.list
Methods in fr.andross.banitem.utils.list that return types with arguments of type BannedItemModifier and TypeMethodDescriptionstatic @NotNull List
<BannedItem> Listable.getItems
(@NotNull BanDatabase database, @NotNull Object obj, @Nullable Debug d) Trying to get a list of type.