ChestShop-3/src/main/java/com/Acrobot/Breeze/Utils/LocationUtil.java

21 lines
567 B
Java

package com.Acrobot.Breeze.Utils;
import org.bukkit.Location;
/**
* An utility class providing various methods to deal with locations
*
* @author Acrobot
*/
public class LocationUtil {
/**
* Returns a string representing the location
*
* @param location Location represented
* @return Representation of the location
*/
public static String locationToString(Location location) {
return '[' + location.getWorld().getName() + "] " + location.getBlockX() + ", " + location.getBlockY() + ", " + location.getBlockZ();
}
}