mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
implement Namespaced in BaseAddon
This commit is contained in:
parent
c07d5052b2
commit
bb87bfa1de
@ -13,13 +13,14 @@ import ca.solostudios.strata.version.VersionRange;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import com.dfsek.terra.api.registry.key.Namespaced;
|
||||
import com.dfsek.terra.api.registry.key.StringIdentifiable;
|
||||
|
||||
|
||||
/**
|
||||
* Base interface which all Terra addons extend
|
||||
*/
|
||||
public interface BaseAddon extends StringIdentifiable {
|
||||
public interface BaseAddon extends StringIdentifiable, Namespaced {
|
||||
/**
|
||||
* Initializes the addon. To be implemented by addons, but never manually invoked.
|
||||
*/
|
||||
@ -38,4 +39,8 @@ public interface BaseAddon extends StringIdentifiable {
|
||||
* @return Version of addon
|
||||
*/
|
||||
Version getVersion();
|
||||
|
||||
default String getNamespace() {
|
||||
return getID();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user