Default implement SmeltingRecipe getId and getName to prevent API breakage.
@@ -54,6 +54,16 @@ static Builder builder() {
return Sponge.getRegistry().createBuilder(Builder.class);
}
+ @Override
+ default String getId() {
+ return "sponge:" + getClass().getName().toLowerCase().replaceAll("[.$]", "_");
+ }
+
+ @Override
+ default String getName() {
+ return getId();
+ }
+
/**
* An exemplary {@link ItemStackSnapshot}, which will always make
* {@link #isValid(ItemStackSnapshot)} return {@code true}.
