mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
Refactor GUI handling code
This commit is contained in:
1 parent
31231db459
commit
408a66bb40
97 files changed
+1053
-1729
No files matched your search
@@ -38,7 +38,6 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
import forestry.Forestry;
|
||||
import forestry.api.core.ForestryAPI;
|
||||
import forestry.core.GuiHandlerBase;
|
||||
import forestry.core.IPickupHandler;
|
||||
import forestry.core.IResupplyHandler;
|
||||
import forestry.core.ISaveEventHandler;
|
||||
@@ -67,7 +66,6 @@ public class PluginManager {
|
||||
private static final String MODULE_CONFIG_FILE_NAME = "modules.cfg";
|
||||
private static final String CATEGORY_MODULES = "modules";
|
||||
|
||||
public static final ArrayList<GuiHandlerBase> guiHandlers = Lists.newArrayList();
|
||||
public static final ArrayList<IPickupHandler> pickupHandlers = Lists.newArrayList();
|
||||
public static final ArrayList<ISaveEventHandler> saveEventHandlers = Lists.newArrayList();
|
||||
public static final ArrayList<IResupplyHandler> resupplyHandlers = Lists.newArrayList();
|
||||
@@ -167,11 +165,6 @@ public class PluginManager {
|
||||
private static void registerHandlers(ForestryPlugin plugin) {
|
||||
Log.fine("Registering Handlers for Plugin: {0}", plugin);
|
||||
|
||||
GuiHandlerBase guiHandler = plugin.getGuiHandler();
|
||||
if (guiHandler != null) {
|
||||
guiHandlers.add(guiHandler);
|
||||
}
|
||||
|
||||
plugin.getPacketRegistry().registerPackets();
|
||||
|
||||
IPickupHandler pickupHandler = plugin.getPickupHandler();
|
||||
|
||||
Reference in new issue
Block a user