Package com.forgeessentials.util.selections

Examples of com.forgeessentials.util.selections.WorldArea


            return true;

        UserIdent ident = null;
        EntityPlayer player = contextGetPlayerOrCommandPlayer(context);
        WorldPoint loc = null;
        WorldArea area = null;
        int dim = 0;

        if (player != null)
        {
            ident = new UserIdent(player);
            // TODO: should be changed to context.getDimension()
            dim = player.dimension;
        }

        if (context.getTargetLocationStart() != null)
        {
            if (context.getTargetLocationEnd() != null)
            {
                area = new WorldArea(dim, new Point(context.getTargetLocationStart()), new Point(context.getTargetLocationEnd()));
            }
            else
            {
                loc = new WorldPoint(dim, context.getTargetLocationStart());
            }
        }
        else if (context.getSourceLocationStart() != null)
        {
            if (context.getSourceLocationEnd() != null)
            {
                area = new WorldArea(dim, new Point(context.getSourceLocationStart()), new Point(context.getSourceLocationEnd()));
            }
            else
            {
                loc = new WorldPoint(dim, context.getSourceLocationStart());
            }
View Full Code Here

TOP

Related Classes of com.forgeessentials.util.selections.WorldArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.