Skip to content

Commit be3e80f

Browse files
committed
Update Starloade
1 parent 1f7367b commit be3e80f

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ plugins {
88
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
99

1010
repositories {
11-
mavenLocal()
11+
maven {
12+
name 'geolykt'
13+
url 'https://geolykt.de/maven'
14+
}
1215
maven {
1316
name 'sponge'
1417
url 'https://repo.spongepowered.org/maven'
@@ -17,15 +20,15 @@ repositories {
1720

1821
dependencies {
1922
compileOnly files("galimulator-desktop.jar") // Galimulator proper
20-
api "de.geolykt:starloader:0.0.1-SNAPSHOT" // The minimalistic starloader base "api" as well all of it's depends
23+
api "de.geolykt:starloader:1.0.0-SNAPSHOT" // The minimalistic starloader base "api" as well all of it's depends
2124
}
2225

2326
publishing {
2427
publications {
2528
maven(MavenPublication) {
2629
groupId 'de.geolykt'
2730
artifactId 'starloader-api'
28-
version '0.0.1-SNAPSHOT'
31+
version '1.0.0-SNAPSHOT'
2932

3033
from components.java
3134
}
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
package de.geolykt.starloader;
22

3-
import net.minestom.server.extensions.Extension;
3+
import de.geolykt.starloader.mod.Extension;
44

5-
public class StarloaderAPIExtension extends Extension {
6-
7-
@Override
8-
public void initialize() {
9-
// Not needed. Most of the API is static or should be initialised by other code
10-
}
11-
12-
@Override
13-
public void terminate() {
14-
// Not needed. Most of the API is static
15-
}
16-
17-
}
5+
public class StarloaderAPIExtension extends Extension {} // Most of the API is static and therefore it doesn't need any initalization

src/main/java/de/geolykt/starloader/api/NamespacedKey.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.jetbrains.annotations.NotNull;
44

5-
import net.minestom.server.extensions.Extension;
5+
import de.geolykt.starloader.mod.Extension;
66

77
public class NamespacedKey {
88

@@ -26,4 +26,14 @@ public boolean matches(@NotNull String namespace, @NotNull String key) {
2626
public String toString() {
2727
return namespaceString + ":" + keyString;
2828
}
29+
30+
@Override
31+
public boolean equals(Object obj) {
32+
if (obj instanceof NamespacedKey) {
33+
return keyString.equals(((NamespacedKey) obj).keyString)
34+
&& namespaceString.equals(((NamespacedKey) obj).namespaceString);
35+
} else {
36+
return false;
37+
}
38+
}
2939
}

0 commit comments

Comments
 (0)