-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Major/API] Introduces basic API implementation
- Loading branch information
1 parent
b753d24
commit fdc9413
Showing
20 changed files
with
530 additions
and
268 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
7 changes: 7 additions & 0 deletions
7
...revive-spigot/src/main/java/engineer/skyouo/plugins/naturerevive/spigot/api/IAPIMain.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package engineer.skyouo.plugins.naturerevive.spigot.api; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface IAPIMain { | ||
@NotNull IIntegrationManager getIntegrationManager(); | ||
} |
19 changes: 19 additions & 0 deletions
19
...ot/src/main/java/engineer/skyouo/plugins/naturerevive/spigot/api/IIntegrationManager.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package engineer.skyouo.plugins.naturerevive.spigot.api; | ||
|
||
import engineer.skyouo.plugins.naturerevive.spigot.integration.IDependency; | ||
import org.bukkit.plugin.Plugin; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public interface IIntegrationManager { | ||
boolean init(Plugin plugin); | ||
|
||
@Nullable IDependency getAvailableDependency(String name); | ||
@Nullable IDependency getAvailableDependency(IDependency.Type type); | ||
|
||
List<IDependency> getAvailableDependencies(IDependency.Type type); | ||
|
||
boolean registerIntegration(Plugin plugin, IDependency dependency); | ||
boolean unregisterIntegration(Plugin plugin, IDependency dependency); | ||
} |
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
Oops, something went wrong.