diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-08 00:14:44 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-08 00:14:44 +0800 |
| commit | 3a158fb836655cbf44a5a1982222bf50d4e0c42a (patch) | |
| tree | 58f7bfe86b85b41a3e8bec34954303bbcb0f58eb /src/main/java/me/shedaniel/rei/api/PluginDisabler.java | |
| parent | dbfcb95826fb5d4ac2e213634d5d154b1feae8de (diff) | |
| download | RoughlyEnoughItems-3a158fb836655cbf44a5a1982222bf50d4e0c42a.tar.gz RoughlyEnoughItems-3a158fb836655cbf44a5a1982222bf50d4e0c42a.tar.bz2 RoughlyEnoughItems-3a158fb836655cbf44a5a1982222bf50d4e0c42a.zip | |
Random Updates
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/PluginDisabler.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/PluginDisabler.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/PluginDisabler.java b/src/main/java/me/shedaniel/rei/api/PluginDisabler.java deleted file mode 100644 index e58a0cfd7..000000000 --- a/src/main/java/me/shedaniel/rei/api/PluginDisabler.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Roughly Enough Items by Danielshe. - * Licensed under the MIT License. - */ - -package me.shedaniel.rei.api; - -import net.minecraft.util.Identifier; - -public interface PluginDisabler { - - /** - * Disables multiple functions from a plugin - * - * @param plugin the identifier of the plugin - * @param functions the array of functions to be disabled - */ - default void disablePluginFunctions(Identifier plugin, PluginFunction... functions) { - for (PluginFunction function : functions) - disablePluginFunction(plugin, function); - } - - /** - * Enables multiple functions from a plugin - * - * @param plugin the identifier of the plugin - * @param functions the array of functions to be enabled - */ - default void enablePluginFunctions(Identifier plugin, PluginFunction... functions) { - for (PluginFunction function : functions) - enablePluginFunction(plugin, function); - } - - /** - * Disables a function from a plugin - * - * @param plugin the identifier of the plugin - * @param function the function to be disabled - */ - void disablePluginFunction(Identifier plugin, PluginFunction function); - - /** - * Enables a function from a plugin - * - * @param plugin the identifier of the plugin - * @param function the function to be enabled - */ - void enablePluginFunction(Identifier plugin, PluginFunction function); - - /** - * Checks if a plugin function has been disabled - * - * @param plugin the identifier of the plugin - * @param function the function to check - * @return whether if it has been disabled - */ - boolean isFunctionEnabled(Identifier plugin, PluginFunction function); - -} |
