Uses of Interface
de.marcely.bedwars.api.game.shop.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
Modifier and TypeMethodDescription@Nullable ShopItem
GameAPI.getShopItemById
(String id) Tries to locate and return aShopItem
by its id.Modifier and TypeMethodDescriptionGameAPI.getShopItems()
Returns all existing items inside the shop -
Uses of ShopItem in de.marcely.bedwars.api.arena
Modifier 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
Modifier 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.Modifier and TypeMethodDescriptionPlayerOpenShopEvent.getItems()
Gets all the items that the player would theoretically see in the GUI.Modifier 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.ModifierConstructorDescriptionPlayerBuyInShopEvent
(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
Modifier 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.Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionShopLayoutHandler.OpenEvent.getPageItems()
All items that should be displayed to the playerModifier 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
-
Uses of ShopItem in de.marcely.bedwars.api.game.shop.product
-
Uses of ShopItem in de.marcely.bedwars.api.player
Modifier and TypeMethodDescriptionShopItem[]
PlayerProperties.getShopHypixelV2QuickBuyItems()
Parses the entryDefaultPlayerProperty.SHOPDESIGN_HYPIXELV2_QUICKBUY
and returns all the items stored in the quick buy.Modifier 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.