Some REI compat fix
This commit is contained in:
parent
228be812e3
commit
50f93efbf9
3 changed files with 7 additions and 8 deletions
|
@ -23,14 +23,13 @@ import net.minecraft.client.gui.DrawableHelper;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import ru.betterend.recipe.AnvilSmithingRecipe;
|
|
||||||
import ru.betterend.util.LangUtil;
|
import ru.betterend.util.LangUtil;
|
||||||
|
|
||||||
public class REIAnvilCategory implements TransferRecipeCategory<REIAnvilDisplay> {
|
public class REIAnvilCategory implements TransferRecipeCategory<REIAnvilDisplay> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Identifier getIdentifier() {
|
public @NotNull Identifier getIdentifier() {
|
||||||
return AnvilSmithingRecipe.ID;
|
return REIPlugin.SMITHING;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class REIAnvilDisplay implements TransferRecipeDisplay {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Identifier getRecipeCategory() {
|
public @NotNull Identifier getRecipeCategory() {
|
||||||
return AnvilSmithingRecipe.ID;
|
return REIPlugin.SMITHING;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -20,8 +20,8 @@ import ru.betterend.registry.BlockRegistry;
|
||||||
public class REIPlugin implements REIPluginV0 {
|
public class REIPlugin implements REIPluginV0 {
|
||||||
|
|
||||||
public final static Identifier PLUGIN_ID = BetterEnd.makeID("rei_plugin");
|
public final static Identifier PLUGIN_ID = BetterEnd.makeID("rei_plugin");
|
||||||
public final static Identifier ALLOING = AlloyingRecipe.ID;
|
public final static Identifier ALLOYING = AlloyingRecipe.ID;
|
||||||
public final static Identifier SMITHING = AlloyingRecipe.ID;
|
public final static Identifier SMITHING = AnvilSmithingRecipe.ID;
|
||||||
|
|
||||||
public final static EntryStack END_STONE_SMELTER = EntryStack.create(BlockRegistry.END_STONE_SMELTER);
|
public final static EntryStack END_STONE_SMELTER = EntryStack.create(BlockRegistry.END_STONE_SMELTER);
|
||||||
public final static EntryStack ANVIL = EntryStack.create(Blocks.ANVIL);
|
public final static EntryStack ANVIL = EntryStack.create(Blocks.ANVIL);
|
||||||
|
@ -33,14 +33,14 @@ public class REIPlugin implements REIPluginV0 {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerRecipeDisplays(RecipeHelper recipeHelper) {
|
public void registerRecipeDisplays(RecipeHelper recipeHelper) {
|
||||||
recipeHelper.registerRecipes(ALLOING, AlloyingRecipe.class, REIAlloyingDisplay::new);
|
recipeHelper.registerRecipes(ALLOYING, AlloyingRecipe.class, REIAlloyingDisplay::new);
|
||||||
recipeHelper.registerRecipes(ALLOING, BlastingRecipe.class, REIAlloyingDisplay::new);
|
recipeHelper.registerRecipes(ALLOYING, BlastingRecipe.class, REIAlloyingDisplay::new);
|
||||||
recipeHelper.registerRecipes(SMITHING, AnvilSmithingRecipe.class, REIAnvilDisplay::new);
|
recipeHelper.registerRecipes(SMITHING, AnvilSmithingRecipe.class, REIAnvilDisplay::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerOthers(RecipeHelper recipeHelper) {
|
public void registerOthers(RecipeHelper recipeHelper) {
|
||||||
recipeHelper.registerWorkingStations(ALLOING, END_STONE_SMELTER);
|
recipeHelper.registerWorkingStations(ALLOYING, END_STONE_SMELTER);
|
||||||
recipeHelper.registerWorkingStations(SMITHING, ANVIL);
|
recipeHelper.registerWorkingStations(SMITHING, ANVIL);
|
||||||
recipeHelper.removeAutoCraftButton(SMITHING);
|
recipeHelper.removeAutoCraftButton(SMITHING);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue