Class DefaultVolatileSettings

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultVolatileSettings​(@NotNull java.io.File mapsDirectory)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.io.File getCurrentSaveMapDirectory()
      Returns the default directory for saving maps.
      @NotNull java.io.File getImageDirectory()
      Returns the directory to save images to.
      void setCurrentSaveMapDirectory​(@NotNull java.io.File currentSaveMapDirectory)
      Sets the default directory for saving maps.
      void setImageDirectory​(@NotNull java.io.File imageDirectory)
      Sets the directory to save created image to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultVolatileSettings

        public DefaultVolatileSettings​(@NotNull
                                       @NotNull java.io.File mapsDirectory)
        Creates a new instance.
        Parameters:
        mapsDirectory - the maps directory
    • Method Detail

      • getImageDirectory

        @NotNull
        public @NotNull java.io.File getImageDirectory()
        Description copied from interface: VolatileSettings
        Returns the directory to save images to.
        Specified by:
        getImageDirectory in interface VolatileSettings
        Returns:
        the image directory
      • setImageDirectory

        public void setImageDirectory​(@NotNull
                                      @NotNull java.io.File imageDirectory)
        Description copied from interface: VolatileSettings
        Sets the directory to save created image to. It defaults to the maps directory and is not retained across editor restarts.
        Specified by:
        setImageDirectory in interface VolatileSettings
        Parameters:
        imageDirectory - the image directory
      • getCurrentSaveMapDirectory

        @NotNull
        public @NotNull java.io.File getCurrentSaveMapDirectory()
        Description copied from interface: VolatileSettings
        Returns the default directory for saving maps.
        Specified by:
        getCurrentSaveMapDirectory in interface VolatileSettings
        Returns:
        the default directory for saving maps
      • setCurrentSaveMapDirectory

        public void setCurrentSaveMapDirectory​(@NotNull
                                               @NotNull java.io.File currentSaveMapDirectory)
        Description copied from interface: VolatileSettings
        Sets the default directory for saving maps.
        Specified by:
        setCurrentSaveMapDirectory in interface VolatileSettings
        Parameters:
        currentSaveMapDirectory - the default directory for saving maps