public interface InventoryOpener
Inventorys from the given InventoryTypes.| Modifier and Type | Method and Description |
|---|---|
default void |
fill(@NotNull org.bukkit.inventory.Inventory inventory,
@NotNull InventoryContents contents)
fills the given contents to the given inventory.
|
@NotNull org.bukkit.inventory.Inventory |
open(@NotNull Page page,
@NotNull org.bukkit.entity.Player player)
opens the page for the given player.
|
boolean |
supports(@NotNull org.bukkit.event.inventory.InventoryType type)
checks if the inventory type is supporting for
this. |
@NotNull
@NotNull org.bukkit.inventory.Inventory open(@NotNull
@NotNull Page page,
@NotNull
@NotNull org.bukkit.entity.Player player)
page - the page to open.player - the player to open.boolean supports(@NotNull
@NotNull org.bukkit.event.inventory.InventoryType type)
this.type - the type to check.true if the type supports the type..default void fill(@NotNull
@NotNull org.bukkit.inventory.Inventory inventory,
@NotNull
@NotNull InventoryContents contents)
inventory - the inventory to fill.contents - the contents to fill.Copyright © 2021. All rights reserved.