Interface SchematicSource

All Superinterfaces:
ConfigurationSerializable

public interface SchematicSource extends ConfigurationSerializable
Represents a source where schematics can be drawn from.

Provides excludions

  • Method Details

    • serialize

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

      String path()
      Path of the schematic source.
      Returns:
      path as string
    • isRelative

      boolean isRelative()
      An ideally unique prefix for this source
      Returns:
      prefix
    • prefix

      String prefix()
    • excludedPath

      List<String> excludedPath()
      A list of relative pathes to the source which should be excluded
      Returns:
      list of paths
    • isExcluded

      boolean isExcluded(Path path)
      Checks wheather the path is excluded or not
      Parameters:
      path - path
      Returns:
      true if excluded
    • isSource

      boolean isSource(Path path)
      Checks if the path is part of this source.
      Parameters:
      path - path
      Returns:
      true if path is in source
    • internalPath

      Path internalPath(Path path)
      Get the internal path by stripping the path of the source.
      Parameters:
      path - path to strip
      Returns:
      stripped path. Path may be empty.