Search in sources :

Example 1 with MalmoModServer

use of com.microsoft.Malmo.Server.MalmoModServer in project malmo by Microsoft.

the class MalmoMod method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    if (event.getSide().isClient()) {
        this.client = new MalmoModClient();
        this.client.init(event);
    }
    if (event.getSide().isServer()) {
        this.server = new MalmoModServer();
        this.server.init(event);
    }
}
Also used : MalmoModClient(com.microsoft.Malmo.Client.MalmoModClient) MalmoModServer(com.microsoft.Malmo.Server.MalmoModServer) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 2 with MalmoModServer

use of com.microsoft.Malmo.Server.MalmoModServer in project malmo by Microsoft.

the class MalmoMod method initIntegratedServer.

public void initIntegratedServer(MissionInit minit) {
    // Will replace any existing server objects.
    this.server = new MalmoModServer();
    this.server.init(minit);
}
Also used : MalmoModServer(com.microsoft.Malmo.Server.MalmoModServer)

Aggregations

MalmoModServer (com.microsoft.Malmo.Server.MalmoModServer)2 MalmoModClient (com.microsoft.Malmo.Client.MalmoModClient)1 EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1