Uses of Interface
de.marcely.bedwars.api.game.specialitem.SpecialItem
Package
Description
-
Uses of SpecialItem in de.marcely.bedwars.api
Modifier 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.Modifier and TypeMethodDescriptionGameAPI.getSpecialItems()
Returns all registered (including the default ones) SpecialItems.Modifier 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
Modifier and TypeMethodDescriptionPlayerUseSpecialItemEvent.getSpecialItem()
Returns the special item that the player has used.ModifierConstructorDescriptionPlayerUseSpecialItemEvent
(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
Modifier 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
Modifier and TypeMethodDescription@Nullable SpecialItem
SpecialItemShopProduct.getSpecialItem()
Returns the special item that will be given on purchase.Modifier and TypeMethodDescriptionvoid
SpecialItemShopProduct.setSpecialItem
(SpecialItem item) Set theSpecialItem
that shall be given on purchase -
Uses of SpecialItem in de.marcely.bedwars.api.game.specialitem
Modifier and TypeMethodDescription@Nullable SpecialItem
SpecialItemType.getItem()
Returns the SpecialItem instance for the given type.