Uses of Class
fr.andross.banitem.actions.BanActionData
Packages that use BanActionData
Package
Description
-
Uses of BanActionData in fr.andross.banitem
Methods in fr.andross.banitem that return BanActionDataModifier and TypeMethodDescription@NotNull BanActionData
BanUtils.getBanActionsForItem
(@NotNull List<org.bukkit.World> worlds, @NotNull org.bukkit.configuration.ConfigurationSection itemSection, @NotNull String key, @NotNull Debug debug) Get ban actions data for a section.Methods in fr.andross.banitem that return types with arguments of type BanActionDataModifier and TypeMethodDescription@NotNull Map
<BanAction, BanActionData> BanUtils.getBanActionsFromItemSection
(@NotNull List<org.bukkit.World> worlds, @Nullable org.bukkit.configuration.ConfigurationSection section, @NotNull Debug debug) Get a map of actions and actions data from a section.Methods in fr.andross.banitem with parameters of type BanActionDataModifier and TypeMethodDescriptionvoid
BanUtils.sendMessage
(@NotNull org.bukkit.entity.Player player, @NotNull String itemName, @NotNull BanAction action, @Nullable BanActionData data) This method is used to send a ban message to player, if configured.Method parameters in fr.andross.banitem with type arguments of type BanActionDataModifier 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.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.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. -
Uses of BanActionData in fr.andross.banitem.database
Methods in fr.andross.banitem.database that return BanActionDataModifier and TypeMethodDescription@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.Methods in fr.andross.banitem.database that return types with arguments of type BanActionDataModifier and TypeMethodDescription@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.Method parameters in fr.andross.banitem.database with type arguments of type BanActionDataModifier 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. -
Uses of BanActionData in fr.andross.banitem.database.items
Fields in fr.andross.banitem.database.items with type parameters of type BanActionDataModifier and TypeFieldDescriptionprotected final Map
<CustomBannedItem, Map<BanAction, BanActionData>> Items.customItems
Items map, containing all custom items.protected final Map
<BannedItem, Map<BanAction, BanActionData>> Items.items
Items map, containing all items.Methods in fr.andross.banitem.database.items that return BanActionDataModifier and TypeMethodDescription@Nullable BanActionData
Items.get
(@NotNull BannedItem bannedItem, @NotNull BanAction action) Get the BanActionData of the BannedItem for the said action, if present.Methods in fr.andross.banitem.database.items that return types with arguments of type BanActionDataModifier 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.@NotNull Map
<CustomBannedItem, Map<BanAction, BanActionData>> Items.getCustomItems()
Get the custom items map.@NotNull Map
<BannedItem, Map<BanAction, BanActionData>> Items.getItems()
Get the items map (include normal and meta items). -
Uses of BanActionData in fr.andross.banitem.events
Methods in fr.andross.banitem.events that return BanActionDataModifier and TypeMethodDescription@NotNull BanActionData
PlayerBanItemEvent.getActionData()
The ban action data.Constructors in fr.andross.banitem.events with parameters of type BanActionDataModifierConstructorDescriptionPlayerBanItemEvent
(@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.