Uses of Interface
de.marcely.bedwars.api.game.specialitem.SpecialItem
Packages that use SpecialItem
Package
Description
The root package of the MBedwars API
Events related to
Player
actions, or changes to player properties.Classes relevant to the in game shop.
Classes relevant to each
ShopProduct
in the in game shop.Classes dedicated to handling
SpecialItems
in MBedwars.-
Uses of SpecialItem in de.marcely.bedwars.api
Methods in de.marcely.bedwars.api that return SpecialItemModifier and TypeMethodDescription@Nullable SpecialItem
GameAPI.getSpecialItem
(String id) Tries to locate and return aSpecialItem
given by its id.@Nullable SpecialItem
GameAPI.getSpecialItem
(ItemStack itemStack) Tries to locate and return aSpecialItem
given by its usable item.@Nullable SpecialItem
GameAPI.registerSpecialItem
(String id, Plugin plugin, String name, ItemStack item) Registers a customSpecialItem
for the later ingame use.Methods in de.marcely.bedwars.api that return types with arguments of type SpecialItemModifier and TypeMethodDescriptionGameAPI.getSpecialItems()
Returns all registered (including the default ones) SpecialItems.Methods in de.marcely.bedwars.api with parameters of type SpecialItemModifier and TypeMethodDescriptionboolean
GameAPI.registerSpecialItem
(SpecialItem specialItem) Reregisters a SpecialItem that previously has been unregistered.boolean
GameAPI.unregisterSpecialItem
(SpecialItem specialItem) Tries to unregister an existing SpecialItem.void
GameAPI.useSpecialItem
(SpecialItem item, Player player, Arena arena, ItemStack is) Simulates the player using the special item. -
Uses of SpecialItem in de.marcely.bedwars.api.event.player
Methods in de.marcely.bedwars.api.event.player that return SpecialItemModifier and TypeMethodDescriptionPlayerUseSpecialItemEvent.getSpecialItem()
Returns the special item that the player has used.Constructors in de.marcely.bedwars.api.event.player with parameters of type SpecialItemModifierConstructorDescriptionPlayerUseSpecialItemEvent
(Player player, SpecialItem specialItem, Arena arena, ItemStack item, boolean isOffHand, @Nullable Block clickedBlock, @Nullable BlockFace clickedBlockFace, boolean takeItem) -
Uses of SpecialItem in de.marcely.bedwars.api.game.shop
Methods in de.marcely.bedwars.api.game.shop with parameters of type SpecialItemModifier and TypeMethodDescriptionShopItem.addProductSpecialItem
(SpecialItem specialItem, int amount) Adds a product that gives the player a SpecialItem when this item is being bought. -
Uses of SpecialItem in de.marcely.bedwars.api.game.shop.product
Methods in de.marcely.bedwars.api.game.shop.product that return SpecialItemModifier and TypeMethodDescription@Nullable SpecialItem
SpecialItemShopProduct.getSpecialItem()
Returns the special item that will be given on purchase.Methods in de.marcely.bedwars.api.game.shop.product with parameters of type SpecialItemModifier and TypeMethodDescriptionvoid
SpecialItemShopProduct.setSpecialItem
(SpecialItem item) Set theSpecialItem
that shall be given on purchase -
Uses of SpecialItem in de.marcely.bedwars.api.game.specialitem
Methods in de.marcely.bedwars.api.game.specialitem that return SpecialItemModifier and TypeMethodDescription@Nullable SpecialItem
SpecialItemType.getItem()
Returns the SpecialItem instance for the given type.