PanelManager.java
2.55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.interfaces;
import com.mumfrey.liteloader.api.PostRenderObserver;
import com.mumfrey.liteloader.api.TickObserver;
import com.mumfrey.liteloader.core.LiteLoaderMods;
import com.mumfrey.liteloader.modconfig.ConfigManager;
/**
* Interface for the liteloader panel manager, abstracted because we don't have
* the class GuiScreen on the server.
*
* @author Adam Mummery-Smith
*
* @param <TParentScreen> GuiScreen class, must be generic because we don't have
* GuiScreen on the server side
*/
public interface PanelManager<TParentScreen> extends TickObserver, PostRenderObserver
{
/**
* @param mods
* @param configManager
*/
public abstract void init(LiteLoaderMods mods, ConfigManager configManager);
/**
*
*/
public abstract void onStartupComplete();
/**
* Hide the LiteLoader tab
*/
public abstract void hideTab();
/**
* Set the LiteLoader tab's visibility
*/
public abstract void setTabVisible(boolean show);
/**
* Get whether the LiteLoader tab is visible
*/
public abstract boolean isTabVisible();
/**
* Set whether the LiteLoader tab should remain expanded
*/
public abstract void setTabAlwaysExpanded(boolean expand);
/**
* Get whether the LiteLoader tab should remain expanded
*/
public abstract boolean isTabAlwaysExpanded();
/**
* Display the LiteLoader panel
*
* @param parentScreen Parent screen to display the panel on top of
*/
public abstract void displayLiteLoaderPanel(TParentScreen parentScreen);
/**
* Get the number of startup errors
*/
public abstract int getStartupErrorCount();
/**
* Get the number of critical startup errors
*/
public abstract int getCriticalErrorCount();
/**
* Set the current notification text
*/
public abstract void setNotification(String notification);
/**
* Set whether "force update" is enabled
*/
public abstract void setForceUpdateEnabled(boolean forceUpdate);
/**
* Get whether "force update" is enabled
*/
public abstract boolean isForceUpdateEnabled();
/**
* Set whether "check for new snapshots" is enabled
*/
public abstract void setCheckForSnapshotsEnabled(boolean checkForSnapshots);
/**
* Get whether "check for new snapshots" is enabled
*/
public abstract boolean isCheckForSnapshotsEnabled();
}