Uses of Interface
de.marcely.bedwars.api.game.shop.layout.ShopLayout
Package
Description
The root package of the MBedwars API
The events fired by MBedwars
Events related to
Player
actions, or changes to player properties.Classes relevant to implement different
ShopLayouts
for the in game shop.DO NOT USE: These classes are for internal use only, and may change at any time.
-
Uses of ShopLayout in de.marcely.bedwars.api
Modifier and TypeMethodDescriptionGameAPI.getDefaultShopLayout()
Returns the defaultShopLayout
that's being used whenever the player clicks on the dealer@Nullable ShopLayout
GameAPI.getShopLayout
(String layoutName) Tries to look up for a registered layout that has the given name.Modifier and TypeMethodDescriptionGameAPI.getShopLayouts()
Returns all existing layouts for the shopModifier and TypeMethodDescriptiondefault void
GameAPI.openShop
(Player player, ShopLayout layout) Opens the shop for a player.default void
GameAPI.openShop
(Player player, ShopLayout layout, ShopOpenCause cause) Opens the shop for a player.void
GameAPI.openShop
(Player player, ShopLayout layout, ShopOpenCause cause, @Nullable ShopPage shopPage) Opens the shop for a player.boolean
GameAPI.registerShopLayout
(ShopLayout layout) Create and register your own custom ShopLayout using this method.boolean
GameAPI.unregisterShopLayout
(ShopLayout layout) Unregister an already existing ShopLayout using this method. -
Uses of ShopLayout in de.marcely.bedwars.api.event
Modifier and TypeMethodDescriptionShopGUIPostProcessEvent.getLayout()
Returns the layout that was used for the shop GUIModifierConstructorDescriptionShopGUIPostProcessEvent
(Player player, ShopLayout design, ShopPage page, @Nullable GUI gui) -
Uses of ShopLayout in de.marcely.bedwars.api.event.player
Modifier and TypeMethodDescriptionPlayerOpenShopEvent.getLayout()
Returns the layout that will be used for the GUI.Modifier and TypeMethodDescriptionvoid
PlayerOpenShopEvent.setLayout
(ShopLayout layout) Set the layout of the shop GUI that shall be shown.ModifierConstructorDescriptionPlayerOpenShopEvent
(Player player, @Nullable Arena arena, ShopLayout layout, ShopOpenCause cause, @Nullable ShopPage page, @Nullable Object layoutData) -
Uses of ShopLayout in de.marcely.bedwars.api.game.shop.layout
Modifier and TypeMethodDescriptionShopLayoutHandler.OpenEvent.getLayout()
Returns the layout that has been opened@Nullable ShopLayout
ShopLayoutType.getLayout()
Returns the corresponding layout to this type.
Might return null if the type isShopLayoutType.PLUGIN
-
Uses of ShopLayout in de.marcely.bedwars.api.unsafe