Done. End Stone Smelter.

This commit is contained in:
Aleksey 2020-09-29 22:36:47 +03:00
parent 9a1dc34927
commit 7f8f3fbda5
4 changed files with 107 additions and 21 deletions

View file

@ -28,6 +28,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
protected final Ingredient primaryInput;
protected final Ingredient secondaryInput;
protected final ItemStack output;
protected final String group;
protected final float experience;
protected final int smeltTime;
@ -35,6 +36,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
public AlloyingRecipe(Identifier id, Ingredient primaryInput, Ingredient secondaryInput,
ItemStack output, float experience, int smeltTime) {
this.group = String.format("%s:%s", GROUP, id.getPath());
this.id = id;
this.primaryInput = primaryInput;
this.secondaryInput = secondaryInput;
@ -98,7 +100,7 @@ public class AlloyingRecipe implements Recipe<Inventory> {
@Environment(EnvType.CLIENT)
public String getGroup() {
return GROUP;
return this.group;
}
@Environment(EnvType.CLIENT)