Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Prunoideae committed Apr 7, 2022
1 parent afcdcb2 commit bdeacc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public List<String> format(Integer indent, Integer stepIndent) {
for (RegistryObjectBuilderTypes.BuilderType<?> builder : types.types.values()) {
formatted.add(" ".repeat(stepped) + "create(id: string, type: %s): %s;".formatted(stringG.toJson(builder.type()), FormatterClass.formatTypeParameterized(new TypeInfoClass(builder.builderClass()))));
}
if (types.getDefaultType() != null) {
formatted.add(" ".repeat(stepped) + "create(id: string): %s;".formatted(FormatterClass.formatTypeParameterized(new TypeInfoClass(types.getDefaultType().builderClass()))));
}
formatted.add(" ".repeat(indent) + "}");
return formatted;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import com.prunoideae.probejs.info.type.TypeInfoVariable;
import dev.latvian.mods.kubejs.item.ingredient.IngredientJS;

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.TypeVariable;
import java.util.*;

public class SpecialTypes {
Expand Down

0 comments on commit bdeacc3

Please sign in to comment.