Package com.sk89q.worldedit

Examples of com.sk89q.worldedit.LocalWorld


        this.cylRegion = region;
    }
   
    public CylinderSelection(World world, BlockVector2D center, BlockVector2D radius, int minY, int maxY) {
        super(world);
        LocalWorld lWorld = BukkitUtil.getLocalWorld(world);

        // Validate input
        minY = Math.min(Math.max(0, minY), world.getMaxHeight());
        maxY = Math.min(Math.max(0, maxY), world.getMaxHeight());
View Full Code Here


        this.poly2d = region;
    }

    public Polygonal2DSelection(World world, List<BlockVector2D> points, int minY, int maxY) {
        super(world);
        LocalWorld lWorld = BukkitUtil.getLocalWorld(world);

        // Validate input
        minY = Math.min(Math.max(0, minY), world.getMaxHeight());
        maxY = Math.min(Math.max(0, maxY), world.getMaxHeight());
View Full Code Here

    private static final Map<String, LocalWorld> wlw = new HashMap<String, LocalWorld>();

    public static LocalWorld getLocalWorld(World w) {

        LocalWorld lw = wlw.get(w.getName());
        if (lw == null) {
            lw = new BukkitWorld(w);
            wlw.put(w.getName(), lw);
        }
        return lw;
View Full Code Here

        // For efficiency reasons, we're only going to consider changes between
        // off and on state, and ignore simple current changes (i.e. 15->13)
        if (!wasChange) return;

        LocalWorld w = BukkitUtil.getLocalWorld(world);
        int x = v.getBlockX();
        int y = v.getBlockY();
        int z = v.getBlockZ();

        // When this hook has been called, the level in the world has not
View Full Code Here

    //Check if the WorldEdit selection is complete
    Region region = null;
    try {
      LocalPlayer lp = new BukkitPlayer(HawkEye.worldEdit, HawkEye.worldEdit.getWorldEdit().getServer(), player);
      LocalWorld lw = lp.getWorld();
      region = HawkEye.worldEdit.getWorldEdit().getSession(lp).getSelection(lw);
    } catch (IncompleteRegionException e) {
      Util.sendMessage(sender, "&cPlease complete your selection before doing a &7WorldEdit&c rollback!");
      return true;
    }
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.LocalWorld

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.