Search in sources :

Example 1 with Mission

use of com.microsoft.Malmo.Schemas.Mission in project malmo by Microsoft.

the class DrawingDecoratorImplementation method buildOnWorld.

@Override
public void buildOnWorld(MissionInit missionInit) {
    Mission mission = missionInit.getMission();
    if (mission != null) {
        try {
            BlockDrawingHelper drawContext = new BlockDrawingHelper();
            drawContext.Draw(this.drawing, MinecraftServer.getServer().getEntityWorld());
        } catch (Exception e) {
            System.out.println("Error drawing into the world: " + e.getMessage());
        }
    }
}
Also used : BlockDrawingHelper(com.microsoft.Malmo.Utils.BlockDrawingHelper) Mission(com.microsoft.Malmo.Schemas.Mission)

Aggregations

Mission (com.microsoft.Malmo.Schemas.Mission)1 BlockDrawingHelper (com.microsoft.Malmo.Utils.BlockDrawingHelper)1