This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
forked from RedRelay/ForgeCreeperHeal-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all unused or verbose code in config
- Loading branch information
Showing
14 changed files
with
31 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package fr.eyzox.bsc.config; | ||
|
||
public interface IConfigListener { | ||
public void onChange(final Config config); | ||
void onChange(final Config config); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package fr.eyzox.bsc.config; | ||
|
||
public interface IConfigProvider { | ||
public Config getConfig(); | ||
Config getConfig(); | ||
|
||
public void addConfigListener(final IConfigListener listener); | ||
void addConfigListener(final IConfigListener listener); | ||
|
||
public void removeConfigListener(final IConfigListener listener); | ||
void fireConfigChanged(); | ||
|
||
public void fireConfigChanged(); | ||
void loadConfig(); | ||
|
||
public void loadConfig(); | ||
|
||
public void unloadConfig(); | ||
void unloadConfig(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/main/java/fr/eyzox/bsc/config/loader/IConfigLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package fr.eyzox.bsc.config.loader; | ||
|
||
import fr.eyzox.bsc.config.Config; | ||
import fr.eyzox.bsc.exception.InvalidValueException; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.AccessDeniedException; | ||
|
||
public interface IConfigLoader { | ||
public void load(final Config config) throws Exception; | ||
void load(Config config) throws AccessDeniedException, IOException, InvalidValueException; | ||
|
||
public void save(final Config config) throws Exception; | ||
void save(final Config config) throws Exception; | ||
|
||
public IErrorManager getErrorManager(); | ||
IErrorManager getErrorManager(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters