mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-27 06:03:19 +02:00
21 lines
567 B
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();
|
|
}
|
|
}
|