Interface SchematicConfig

All Superinterfaces:
ConfigurationSerializable

public interface SchematicConfig extends ConfigurationSerializable
  • Method Details

    • serialize

      @NotNull @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface ConfigurationSerializable
    • addSource

      void addSource(SchematicSource source)
      Adds a new schematic source.
      Parameters:
      source - source
    • sources

      List<? extends SchematicSource> sources()
      A list of registered sources.
      Returns:
      list of sources
    • pathSeparator

      String pathSeparator()
      The path separator which should be used when showing pathes.
      Returns:
      path separator
    • isPathSourceAsPrefix

      boolean isPathSourceAsPrefix()
      Defines wheather the path should be prefixed or not
      Returns:
      true if the prefix should used as a suffix for the source path
    • getSourceForPath

      Optional<? extends SchematicSource> getSourceForPath(Path path)
      Gets the source for a path if present
      Parameters:
      path - path
      Returns:
      optional holding a source