ObjectFactory.java
1.66 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
/*
* 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.common.GameEngine;
import com.mumfrey.liteloader.core.ClientPluginChannels;
import com.mumfrey.liteloader.core.LiteLoaderEventBroker;
import com.mumfrey.liteloader.core.PacketEvents;
import com.mumfrey.liteloader.core.ServerPluginChannels;
import com.mumfrey.liteloader.permissions.PermissionsManagerClient;
import com.mumfrey.liteloader.permissions.PermissionsManagerServer;
import com.mumfrey.liteloader.util.Input;
import net.minecraft.server.MinecraftServer;
/**
* Factory for generating loader managament objects based on the environment
*
* @author Adam Mummery-Smith
*
* @param <TClient> Type of the client runtime, "Minecraft" on client and null
* on the server
* @param <TServer> Type of the server runtime, "IntegratedServer" on the client
* "MinecraftServer" on the server
*/
public interface ObjectFactory<TClient, TServer extends MinecraftServer>
{
public abstract LiteLoaderEventBroker<TClient, TServer> getEventBroker();
public abstract PacketEvents getPacketEventBroker();
public abstract Input getInput();
public abstract GameEngine<TClient, TServer> getGameEngine();
public abstract PanelManager<?> getPanelManager();
public abstract ClientPluginChannels getClientPluginChannels();
public abstract ServerPluginChannels getServerPluginChannels();
public abstract PermissionsManagerClient getClientPermissionManager();
public abstract PermissionsManagerServer getServerPermissionManager();
public abstract void preBeginGame();
}