Sounds
This commit is contained in:
parent
74992a7f68
commit
62698e8bf5
24 changed files with 64 additions and 30 deletions
|
@ -28,7 +28,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
|
|||
public final static String GROUP = "alloying";
|
||||
public final static RecipeType<AlloyingRecipe> TYPE = EndRecipeManager.registerType(GROUP);
|
||||
public final static Serializer SERIALIZER = EndRecipeManager.registerSerializer(GROUP, new Serializer());
|
||||
public final static Identifier ID = BetterEnd.getIdentifier("alloying");
|
||||
public final static Identifier ID = BetterEnd.makeID("alloying");
|
||||
|
||||
protected final RecipeType<?> type;
|
||||
protected final Identifier id;
|
||||
|
@ -119,7 +119,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
|
|||
private final static Builder INSTANCE = new Builder();
|
||||
|
||||
public static Builder create(String id) {
|
||||
INSTANCE.id = BetterEnd.getIdentifier(id);
|
||||
INSTANCE.id = BetterEnd.makeID(id);
|
||||
INSTANCE.group = String.format("%s_%s", GROUP, id);
|
||||
INSTANCE.primaryInput = null;
|
||||
INSTANCE.secondaryInput = null;
|
||||
|
|
|
@ -65,7 +65,7 @@ public class EndRecipeManager {
|
|||
}
|
||||
|
||||
public static <T extends Recipe<?>> RecipeType<T> registerType(String type) {
|
||||
Identifier recipeTypeId = BetterEnd.getIdentifier(type);
|
||||
Identifier recipeTypeId = BetterEnd.makeID(type);
|
||||
return Registry.register(Registry.RECIPE_TYPE, recipeTypeId, new RecipeType<T>() {
|
||||
public String toString() {
|
||||
return type;
|
||||
|
|
|
@ -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.getIdentifier(name);
|
||||
Identifier id = BetterEnd.makeID(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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue