REI integration

This commit is contained in:
Aleksey 2020-10-02 15:12:53 +03:00
parent 74c6c14b2a
commit e0cf41db63
24 changed files with 272 additions and 38 deletions

View file

@ -118,7 +118,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
private final static Builder INSTANCE = new Builder();
public static Builder create(String id) {
INSTANCE.id = BetterEnd.getResId(id);
INSTANCE.id = BetterEnd.getIdentifier(id);
INSTANCE.group = String.format("%s_%s", GROUP, id);
INSTANCE.primaryInput = null;
INSTANCE.secondaryInput = null;

View file

@ -65,7 +65,7 @@ public class EndRecipeManager {
}
public static <T extends Recipe<?>> RecipeType<T> registerType(String type) {
Identifier recipeTypeId = BetterEnd.getResId(type);
Identifier recipeTypeId = BetterEnd.getIdentifier(type);
return Registry.register(Registry.RECIPE_TYPE, recipeTypeId, new RecipeType<T>() {
public String toString() {
return type;

View file

@ -97,7 +97,7 @@ public class RecipeBuilder {
int height = shape.length;
int width = shape[0].length();
ItemStack result = new ItemStack(output, count);
Identifier id = BetterEnd.getResId(name);
Identifier id = BetterEnd.getIdentifier(name);
DefaultedList<Ingredient> materials = this.getMaterials(width, height);
CraftingRecipe recipe = shaped ? new ShapedRecipe(id, group, width, height, materials, result) : new ShapelessRecipe(id, group, result, materials);