Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public Kingdom getOwner(Location loc) {
  2.         int x = loc.getBlockX();
  3.         int z = loc.getBlockZ();
  4.  
  5.         if(x > Util.width() && z > Util.width())
  6.             return Main.SE;
  7.         else if(x < Util.width() && z > Util.width())
  8.             return Main.SW;
  9.         else if(x > Util.width() && z < Util.width())
  10.             return Main.NE;    
  11.         else if(x < Util.width() && z < Util.width())
  12.             return Main.NW;
  13.         else
  14.             return null;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement