Java Code Examples for com.sk89q.worldguard.protection.regions.ProtectedRegion#getPoints()

The following examples show how to use com.sk89q.worldguard.protection.regions.ProtectedRegion#getPoints() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WorldGuardHandler5.java    From AreaShop with GNU General Public License v3.0 5 votes vote down vote up
@Override
public List<org.bukkit.util.Vector> getRegionPoints(ProtectedRegion region) {
	List<org.bukkit.util.Vector> result = new ArrayList<>();
	for (BlockVector2D point : region.getPoints()) {
		result.add(new org.bukkit.util.Vector(point.getX(), 0,point.getZ()));
	}
	return result;
}
 
Example 2
Source File: WorldGuardHandler7_beta_2.java    From AreaShop with GNU General Public License v3.0 5 votes vote down vote up
@Override
public List<Vector> getRegionPoints(ProtectedRegion region) {
	List<Vector> result = new ArrayList<>();
	for (BlockVector2 point : region.getPoints()) {
		result.add(new Vector(point.getX(), 0,point.getZ()));
	}
	return result;
}
 
Example 3
Source File: WorldGuardHandler6.java    From AreaShop with GNU General Public License v3.0 5 votes vote down vote up
@Override
public List<org.bukkit.util.Vector> getRegionPoints(ProtectedRegion region) {
	List<org.bukkit.util.Vector> result = new ArrayList<>();
	for (BlockVector2D point : region.getPoints()) {
		result.add(new org.bukkit.util.Vector(point.getX(), 0,point.getZ()));
	}
	return result;
}
 
Example 4
Source File: FastAsyncWorldEditWorldGuardHandler.java    From AreaShop with GNU General Public License v3.0 5 votes vote down vote up
@Override
public List<Vector> getRegionPoints(ProtectedRegion region) {
	List<Vector> result = new ArrayList<>();
	for (BlockVector2D point : region.getPoints()) {
		result.add(new Vector(point.getX(), 0,point.getZ()));
	}
	return result;
}
 
Example 5
Source File: WorldGuardHandler7_beta_1.java    From AreaShop with GNU General Public License v3.0 5 votes vote down vote up
@Override
public List<org.bukkit.util.Vector> getRegionPoints(ProtectedRegion region) {
	List<org.bukkit.util.Vector> result = new ArrayList<>();
	for (BlockVector2D point : region.getPoints()) {
		result.add(new org.bukkit.util.Vector(point.getX(), 0,point.getZ()));
	}
	return result;
}