@Implements(@Interface(iface = PluginContainer.class, prefix = "plugin$"))
public interface MixinModContainer extends ModContainer {
default String getId() {
return checkNotNull(emptyToNull(getModId()), "modid");
}
<BUG>default Optional<String> plugin$getVersion() {
return Optional.ofNullable(emptyToNull(getVersion()));
</BUG>
}
default Optional<String> getDescription() {

@Implements(@Interface(iface = PluginContainer.class, prefix = "plugin$"))
public interface MixinModContainer extends ModContainer {
default String getId() {
return checkNotNull(emptyToNull(getModId()), "modid");
}
default Optional<String> plugin$getVersion() {
String version = emptyToNull(getVersion());
if (version != null && (version.equalsIgnoreCase("unknown") || version.equalsIgnoreCase("dev"))) {
version = null;
}
return Optional.ofNullable(version);
}
default Optional<String> getDescription() {
