File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/main/java/org/spongepowered/api/registry Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 3030import java .util .Objects ;
3131import 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 *
You can’t perform that action at this time.
0 commit comments