Interface LocationConfigParser
-
- All Superinterfaces:
GrechConfigFile
- All Known Implementing Classes:
GrechConfig
public interface LocationConfigParser extends GrechConfigFile
Parses bukkit locations to a YAML path or loads one from it.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.bukkit.LocationgetLocation(java.lang.String path)Obtain location from config.default voidsetLocation(java.lang.String path, org.bukkit.Location location)Save Location to YAML.-
Methods inherited from interface me.nurio.bukkit.configuration.files.GrechConfigFile
existsDefaultConfig, fileExists, getConfig, getConfigFile, getPlugin, save, saveDefaultConfig, set
-
-
-
-
Method Detail
-
setLocation
default void setLocation(java.lang.String path, org.bukkit.Location location)Save Location to YAML. Include: World, x, y, z, yaw and pitch- Parameters:
path- YAML location root path.location- Location to save to YAML.
-
getLocation
default org.bukkit.Location getLocation(java.lang.String path)
Obtain location from config. Include: World, x, y, z, yaw and pitch- Parameters:
path- YAML location root path.- Returns:
- Location at provided YAML path.
-
-