Uses of Interface
de.marcely.bedwars.api.game.shop.ShopItem
Packages that use ShopItem
Package
Description
The root package of the MBedwars API
Contains classes that are related to the
Arena
.Events related to
Player
actions, or changes to player properties.Classes relevant to the in game shop.
Classes relevant to implement different
ShopLayouts
for the in game shop.Classes relevant to each
ShopPrice
in the in game shop.Classes relevant to each
ShopProduct
in the in game shop.Classes dedicated to fetching, updating, and saving player data/properties/stats in MBedwars.
-
Uses of ShopItem in de.marcely.bedwars.api
Methods in de.marcely.bedwars.api that return ShopItemModifier and TypeMethodDescription@Nullable ShopItem
GameAPI.getShopItemById
(String id) Tries to locate and return aShopItem
by its id.Methods in de.marcely.bedwars.api that return types with arguments of type ShopItemModifier and TypeMethodDescriptionGameAPI.getShopItems()
Returns all existing items inside the shop -
Uses of ShopItem in de.marcely.bedwars.api.arena
Methods in de.marcely.bedwars.api.arena that return types with arguments of type ShopItemModifier and TypeMethodDescriptionQuitPlayerMemory.getOneTimePurchaseBoughtItems()
Returns all ShopItems the player has bought which haveisOneTimePurchase()
set to true. -
Uses of ShopItem in de.marcely.bedwars.api.event.player
Methods in de.marcely.bedwars.api.event.player that return ShopItemModifier and TypeMethodDescription@Nullable ShopItem
PlayerBuyInShopEvent.getClonedItem()
Get the cloned item that was used withinPlayerOpenShopEvent.getClonedPage()
.PlayerBuyInShopEvent.getItem()
Returns the item that the player wants to buy.Methods in de.marcely.bedwars.api.event.player that return types with arguments of type ShopItemModifier and TypeMethodDescriptionPlayerOpenShopEvent.getItems()
Gets all the items that the player would theoretically see in the GUI.Methods in de.marcely.bedwars.api.event.player with parameters of type ShopItemModifier and TypeMethodDescriptionboolean
PlayerOpenShopEvent.addShopItem
(ShopItem shopItem) Tries to add a shopItem.boolean
PlayerOpenShopEvent.removeShopItem
(ShopItem shopItem) Tries to remove a shop item and causes it to not be seen.Constructors in de.marcely.bedwars.api.event.player with parameters of type ShopItemModifierConstructorDescriptionPlayerBuyInShopEvent
(Player player, Arena arena, ShopItem item, @Nullable ShopItem clonedItem, ShopOpenCause openCause, boolean shiftClick, @Nullable Integer targetInvSlot, int multiplier, List<PlayerBuyInShopEvent.Problem> problems, boolean giveProducts, boolean takePayments) -
Uses of ShopItem in de.marcely.bedwars.api.game.shop
Methods in de.marcely.bedwars.api.game.shop that return ShopItemModifier and TypeMethodDescriptionConstructs a new ShopItem, and adds it to the ShopPage.ShopItem.clone()
Returns a clone of this instance.ShopItem.getOriginal()
Returns the original "non-cloned" instance.Methods in de.marcely.bedwars.api.game.shop that return types with arguments of type ShopItemModifier and TypeMethodDescription@Nullable Collection
<? extends ShopItem> BuyGroup.getItems
(int level) Returns a map with all items at that level.ShopPage.getItems()
Returns all the possible items that are inside the page.ShopPage.getVisiblePageItems
(@Nullable Arena arena, @Nullable Player player) Returns the items that are inside the page for a specific player.Methods in de.marcely.bedwars.api.game.shop with parameters of type ShopItemModifier and TypeMethodDescriptionboolean
Adds an item to a shop page.int
ShopPage.removeConnectedItems
(ShopItem shopItem) Removes all ShopItems that share the original instance.boolean
ShopPage.removeItem
(ShopItem shopItem) Removes an item from this shop page. -
Uses of ShopItem in de.marcely.bedwars.api.game.shop.layout
Methods in de.marcely.bedwars.api.game.shop.layout that return types with arguments of type ShopItemModifier and TypeMethodDescriptionShopLayoutHandler.OpenEvent.getPageItems()
All items that should be displayed to the playerMethods in de.marcely.bedwars.api.game.shop.layout with parameters of type ShopItemModifier and TypeMethodDescriptionBuilds a GUIItem that can be used to set the item inside the GUIShopLayoutHandler.OpenEvent.buildOffer
(ShopItem item) Builds a GUIItem that can be used to set the page inside the villager GUI -
Uses of ShopItem in de.marcely.bedwars.api.game.shop.price
Methods in de.marcely.bedwars.api.game.shop.price that return ShopItem -
Uses of ShopItem in de.marcely.bedwars.api.game.shop.product
Methods in de.marcely.bedwars.api.game.shop.product that return ShopItem -
Uses of ShopItem in de.marcely.bedwars.api.player
Methods in de.marcely.bedwars.api.player that return ShopItemModifier and TypeMethodDescriptionShopItem[]
PlayerProperties.getShopHypixelV2QuickBuyItems()
Parses the entryDefaultPlayerProperty.SHOPDESIGN_HYPIXELV2_QUICKBUY
and returns all the items stored in the quick buy.Methods in de.marcely.bedwars.api.player with parameters of type ShopItemModifier and TypeMethodDescriptionvoid
PlayerProperties.setShopHypixelV2QuickBuyItems
(ShopItem[] items) Serializes and sets the entryDefaultPlayerProperty.SHOPDESIGN_HYPIXELV2_QUICKBUY
for all the items that are stored in the quick buy.