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 Detail

      • setLocation

        default void setLocation​(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​(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.