Package net.minheur.potoflux.settings
Class OptionalFeaturesManager
java.lang.Object
net.minheur.potoflux.settings.OptionalFeaturesManager
Manages the optional features
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BooleangetBoolean(String key) Gets a feature with aBooleanvaluestatic BooleangetBoolean(String key, Boolean defaultValue) Gets a feature with aBooleanvaluestatic Map<String,OptionalFeature> Getter for the featureMapstatic IntegerGets a feature with aIntegervaluestatic IntegerGets a feature with anIntegervaluestatic ObjectGets a raw featurestatic ObjectGets a raw featurestatic @Nullable StringGets a feature with aStringvaluestatic StringGets feature with aStringvaluestatic voidload()Called to load optional features from the file
-
Method Details
-
load
public static void load()Called to load optional features from the file -
getFeatureMap
Getter for the featureMap- Returns:
featureMap
-
getRaw
Gets a raw feature- Parameters:
key- used in the filedefaultValue- used if the feature is not set- Returns:
- the value of the feature
-
getRaw
Gets a raw feature- Parameters:
key- used in the file- Returns:
- the value of the feature,
nullif none set
-
getString
Gets feature with aStringvalue- Parameters:
key- used in the filedefaultValue- used if the feature is not set- Returns:
- the value of the feature
-
getString
Gets a feature with aStringvalue- Parameters:
key- used in the file- Returns:
- the value of the feature,
nullif none set
-
getBoolean
Gets a feature with aBooleanvalue- Parameters:
key- used in the filedefaultValue- used if the feature is not set- Returns:
- the value of the feature
-
getBoolean
Gets a feature with aBooleanvalue- Parameters:
key- used in the file- Returns:
- the value of the feature,
nullif none set
-
getInt
Gets a feature with anIntegervalue- Parameters:
key- used in the filedefaultValue- used if the feature is not set- Returns:
- the value of the feature
-
getInt
Gets a feature with aIntegervalue- Parameters:
key- used in the file- Returns:
- the value of the feature,
nullif none set
-