Class CompatSnapshots
java.lang.Object
org.polyfrost.oneconfig.api.config.v1.CompatSnapshots
- All Implemented Interfaces:
ConfigManager.ProfileChangeListener
@Internal
public final class CompatSnapshots
extends Object
implements ConfigManager.ProfileChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final CompatSnapshotsstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanvoidonProfileChanged(String newProfile) voidonProfileCreated(String profile) voidonProfileDeleted(String profile) voidonProfileRenamed(String oldProfile, String newProfile) voidonProfileSaving(String profile) static org.polyfrost.oneconfig.api.config.v1.Treeregister(org.polyfrost.oneconfig.api.config.v1.Tree tree) static voidsetDispatcher(Consumer<Runnable> dispatcher) static org.polyfrost.oneconfig.api.config.v1.Treetrack(org.polyfrost.oneconfig.api.config.v1.Tree registered) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.polyfrost.oneconfig.api.config.v1.ConfigManager.ProfileChangeListener
onProfileSpecificControlsChanged
-
Field Details
-
INSTANCE
-
SNAPSHOT_METADATA
- See Also:
-
CUSTOM_RESET_METADATA
- See Also:
-
KEY_METADATA
- See Also:
-
NO_SNAPSHOT_META
- See Also:
-
-
Method Details
-
isApplying
public static boolean isApplying() -
setDispatcher
-
register
public static org.polyfrost.oneconfig.api.config.v1.Tree register(org.polyfrost.oneconfig.api.config.v1.Tree tree) -
track
public static org.polyfrost.oneconfig.api.config.v1.Tree track(org.polyfrost.oneconfig.api.config.v1.Tree registered) -
onProfileChanged
- Specified by:
onProfileChangedin interfaceConfigManager.ProfileChangeListener
-
onProfileSaving
- Specified by:
onProfileSavingin interfaceConfigManager.ProfileChangeListener
-
onProfileCreated
- Specified by:
onProfileCreatedin interfaceConfigManager.ProfileChangeListener
-
onProfileRenamed
- Specified by:
onProfileRenamedin interfaceConfigManager.ProfileChangeListener
-
onProfileDeleted
- Specified by:
onProfileDeletedin interfaceConfigManager.ProfileChangeListener
-