Search in sources :

Example 6 with BlockDrawingHelper

use of com.microsoft.Malmo.Utils.BlockDrawingHelper 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

BlockDrawingHelper (com.microsoft.Malmo.Utils.BlockDrawingHelper)6 BlockPos (net.minecraft.util.BlockPos)4 XMLBlockState (com.microsoft.Malmo.Utils.BlockDrawingHelper.XMLBlockState)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 World (net.minecraft.world.World)2 MalmoMod (com.microsoft.Malmo.MalmoMod)1 AgentSection (com.microsoft.Malmo.Schemas.AgentSection)1 Mission (com.microsoft.Malmo.Schemas.Mission)1 PosAndDirection (com.microsoft.Malmo.Schemas.PosAndDirection)1 BigDecimal (java.math.BigDecimal)1 IBlockState (net.minecraft.block.state.IBlockState)1