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 BannedItemBanItemAPI.getCustomItem(@NotNull String customItemName) Get the configured custom item by its name.@Nullable BannedItemBanItemAPI.getMetaItem(@NotNull String metaItemName) Get the configured meta item by its name.Methods in fr.andross.banitem with parameters of type BannedItemModifier and TypeMethodDescriptionbooleanBanItemAPI.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.booleanBanItemAPI.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 StringBanItemAPI.getMetaItemName(@NotNull BannedItem item) Try to get the meta item name of the given item.@NotNull StringBanDatabase.getName(@NotNull BannedItem bannedItem) Try to get the custom or meta item name of the item.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.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.booleanBanItemAPI.removeFromBlacklist(@NotNull BannedItem item, @Nullable org.bukkit.World... worlds) Remove the banned item from blacklisted worlds and save the config file used.booleanBanItemAPI.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 TypeMethodDescriptionbooleanBanItemAPI.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.booleanBanItemAPI.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 TypeMethodDescriptionvoidBlacklist.addNewBan(@NotNull org.bukkit.World world, @NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the blacklist.voidWhitelistedWorld.addNewEntry(@NotNull BannedItem item, @NotNull Map<BanAction, BanActionData> map) This will add a new entry to the whitelist.voidWhitelist.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 BanActionDataBlacklist.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.booleanBlacklist.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.booleanBlacklist.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.booleanWhitelist.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.booleanWhitelist.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.itemsItems 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 BanActionDataItems.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 BannedItemDeleteBannedItemEvent.getBannedItem()The banned item involved.@NotNull BannedItemPlayerBanItemEvent.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 classAn item wrapper, which store custom item meta.final classAn item wrapper for meta items.Methods in fr.andross.banitem.items with parameters of type BannedItemModifier and TypeMethodDescriptionbooleanCustomBannedItem.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 TypeMethodDescriptionbooleanAdvancedEnchantments.matches(@NotNull BannedItem bannedItem) booleanAttributeContains.matches(@NotNull BannedItem bannedItem) booleanDisplayNameContains.matches(@NotNull BannedItem bannedItem) booleanDisplayNameEquals.matches(@NotNull BannedItem bannedItem) booleanDisplayNameEqualsRegex.matches(@NotNull BannedItem bannedItem) booleanDurability.matches(@NotNull BannedItem bannedItem) booleanEnchantmentContains.matches(@NotNull BannedItem bannedItem) booleanEnchantmentEquals.matches(@NotNull BannedItem bannedItem) booleanItemsAdder.matches(@NotNull BannedItem bannedItem) booleanLoreContains.matches(@NotNull BannedItem bannedItem) booleanLoreContainsRegex.matches(@NotNull BannedItem bannedItem) booleanLoreEquals.matches(@NotNull BannedItem bannedItem) booleanLoreLineContains.matches(@NotNull BannedItem bannedItem) abstract booleanMetaTypeComparator.matches(@NotNull BannedItem bannedItem) Check if the meta type configured matches on the item involved.booleanModeldataEquals.matches(@NotNull BannedItem bannedItem) booleanNBTAPI.matches(@NotNull BannedItem bannedItem) booleanPotion.matches(@NotNull BannedItem bannedItem) booleanUnbreakable.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.