Skip to content

Commit b68770c

Browse files
committed
Remove Comparable from RegistryType for now
1 parent a8e46d7 commit b68770c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/main/java/org/spongepowered/api/registry/RegistryType.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.Objects;
3131
import java.util.function.Supplier;
3232

33-
public interface RegistryType<T> extends Comparable<RegistryType<?>> {
33+
public interface RegistryType<T> {
3434

3535
static <T> RegistryType<T> of(final ResourceKey root, final ResourceKey location) {
3636
return Sponge.game().factoryProvider().provide(Factory.class).create(Objects.requireNonNull(root, "root"),
@@ -49,16 +49,6 @@ default RegistryReference<T> referenced(final ResourceKey key) {
4949
return RegistryKey.of(this, Objects.requireNonNull(key, "key")).asReference();
5050
}
5151

52-
@Override
53-
default int compareTo(final RegistryType<?> registryType) {
54-
final int root = this.root().compareTo(registryType.root());
55-
if (root != 0) {
56-
return root;
57-
}
58-
59-
return this.location().compareTo(registryType.location());
60-
}
61-
6252
/**
6353
* Gets a utility {@link DefaultedRegistryType defaulted type} for easier querying of the intention of where the registry is contained.
6454
*

0 commit comments

Comments
 (0)