1package com.dreamfirestudios.dreamcore.DreamSmartInvs.opener;
3import com.dreamfirestudios.dreamcore.DreamSmartInvs.InventoryManager;
4import com.dreamfirestudios.dreamcore.DreamSmartInvs.SmartInventory;
5import com.google.common.collect.ImmutableList;
6import org.bukkit.Bukkit;
7import org.bukkit.entity.Player;
8import org.bukkit.event.inventory.InventoryType;
9import org.bukkit.inventory.Inventory;
15 private static final List<InventoryType> SUPPORTED = ImmutableList.of(
16 InventoryType.FURNACE,
17 InventoryType.WORKBENCH,
18 InventoryType.DISPENSER,
19 InventoryType.DROPPER,
20 InventoryType.ENCHANTING,
21 InventoryType.BREWING,
28 @SuppressWarnings(
"deprecation")
31 Inventory handle = Bukkit.createInventory(player, inv.getType(), inv.getTitle());
35 player.openInventory(handle);
41 return SUPPORTED.contains(type);
Optional< InventoryContents > getContents(Player p)
boolean supports(InventoryType type)
Inventory open(SmartInventory inv, Player player)
default void fill(Inventory handle, InventoryContents contents)