Class InventoryAccess
java.lang.Object
de.studiocode.inventoryaccess.version.InventoryAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnvilInventorycreateAnvilInventory(@NotNull org.bukkit.entity.Player player, @NotNull net.md_5.bungee.api.chat.BaseComponent[] title, Consumer<String> renameHandler) Creates a newAnvilInventory.static CartographyInventorycreateCartographyInventory(@NotNull org.bukkit.entity.Player player, @NotNull net.md_5.bungee.api.chat.BaseComponent[] title) Creates a newCartographyInventory.static InventoryUtilsGets theInventoryUtilsstatic ItemUtilsGets theItemUtilsstatic PlayerUtilsGets thePlayerUtils
-
Constructor Details
-
InventoryAccess
public InventoryAccess()
-
-
Method Details
-
getInventoryUtils
Gets theInventoryUtils- Returns:
- The
InventoryUtils
-
getItemUtils
Gets theItemUtils- Returns:
- The
ItemUtils
-
getPlayerUtils
Gets thePlayerUtils- Returns:
- The
PlayerUtils
-
createAnvilInventory
public static AnvilInventory createAnvilInventory(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent[] title, Consumer<String> renameHandler) Creates a newAnvilInventory.- Parameters:
player- ThePlayerthat should see thisAnvilInventorytitle- The inventory title as aBaseComponent[]renameHandler- AConsumerthat is called whenever thePlayertypes something in the renaming section of the anvil- Returns:
- The
AnvilInventory
-
createCartographyInventory
public static CartographyInventory createCartographyInventory(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent[] title) Creates a newCartographyInventory.- Parameters:
player- ThePlayerthat should see thisCartographyInventorytitle- The inventory title as aBaseComponent[]- Returns:
- The
CartographyInventory
-