org.legendofdragoon.modloader.registries.RegistryId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mod-loader Show documentation
Show all versions of mod-loader Show documentation
The mod loader used by various Severed Chains projects
package org.legendofdragoon.modloader.registries;
public record RegistryId(String modId, String entryId) {
public static RegistryId of(final String id) {
final String[] parts = id.split(":");
if(parts.length != 2) {
throw new IllegalArgumentException("Invalid registry ID " + id);
}
return new RegistryId(parts[0], parts[1]);
}
@Override
public String toString() {
return this.modId + ':' + this.entryId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy