-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDialogManager.java
More file actions
51 lines (30 loc) · 1.69 KB
/
DialogManager.java
File metadata and controls
51 lines (30 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package fr.maxlego08.menu.api;
import fr.maxlego08.menu.api.configuration.ConfigManagerInt;
import fr.maxlego08.menu.api.exceptions.DialogException;
import fr.maxlego08.menu.api.exceptions.InventoryException;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import java.io.File;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
public interface DialogManager {
DialogInventory loadDialog(Plugin plugin, String fileName) throws DialogException;
Optional<DialogInventory> getDialog(String name);
Optional<DialogInventory> getDialog(String pluginName, String fileName);
Optional<DialogInventory> getDialog(Plugin plugin, String fileName);
void deleteDialog(String name);
void deleteDialog(Plugin plugin);
void loadDialogs();
DialogInventory loadInventory(Plugin plugin, String fileName) throws DialogException, InventoryException;
DialogInventory loadInventory(Plugin plugin, File file) throws DialogException, InventoryException;
DialogInventory loadInventory(Plugin plugin, String fileName, Class<? extends DialogInventory> dialogClass) throws DialogException, InventoryException;
DialogInventory loadInventory(Plugin plugin, File file, Class<? extends DialogInventory> dialogClass) throws DialogException, InventoryException;
//void registerBuilder(DialogBuilder builder);
void openDialog(Player player, DialogInventory dialog);
//Optional<DialogBuilder> getDialogBuilder(DialogBodyType type);
void openDialog(Player player, DialogInventory dialogInventory, List<Inventory> oldInventories);
Collection<DialogInventory> getDialogs();
void reloadDialogs();
ConfigManagerInt getConfigManager();
}