Class PropertiesConfiguration

java.lang.Object
com.sk89q.worldedit.LocalConfiguration
com.sk89q.worldedit.util.PropertiesConfiguration

public class PropertiesConfiguration extends LocalConfiguration
Simple LocalConfiguration that loads settings using java.util.Properties.
  • Field Details

    • properties

      protected Properties properties
    • path

      protected File path
  • Constructor Details

    • PropertiesConfiguration

      public PropertiesConfiguration(Path path)
      Construct the object. The configuration isn't loaded yet.
      Parameters:
      path - the path to the configuration
    • PropertiesConfiguration

      @Deprecated public PropertiesConfiguration(File path)
      Construct the object. The configuration isn't loaded yet.
      Parameters:
      path - the path to the configuration
  • Method Details

    • load

      public void load()
      Description copied from class: LocalConfiguration
      Load the configuration.
      Specified by:
      load in class LocalConfiguration
    • loadExtra

      protected void loadExtra()
      Called to load extra configuration.
    • getString

      protected String getString(String key, String def)
      Get a string value.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value
    • getBool

      protected boolean getBool(String key, boolean def)
      Get a boolean value.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value
    • getInt

      protected int getInt(String key, int def)
      Get an integer value.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value
    • getDouble

      protected double getDouble(String key, double def)
      Get a double value.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value
    • getIntSet

      protected Set<Integer> getIntSet(String key, int[] def)
      Get a double value.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value
    • getStringSet

      protected Set<String> getStringSet(String key, String[] def)
      Get a String set.
      Parameters:
      key - the key
      def - the default value
      Returns:
      the value