RyanHub – file viewer
filename: common/src/main/java/rearth/oritech/api/recipe/SteamGeneratorRecipeBuilder.java
branch: 1.21
back to repo
package rearth.oritech.api.recipe;

import net.minecraft.util.Identifier;
import rearth.oritech.init.recipes.RecipeContent;

public class SteamGeneratorRecipeBuilder extends OritechRecipeBuilder {

    protected SteamGeneratorRecipeBuilder() {
        super(RecipeContent.STEAM_ENGINE, "steamgen");
    }

    public static OritechRecipeBuilder build() {
        return new SteamGeneratorRecipeBuilder();
    }

    @Override
    public void validate(Identifier id) throws IllegalStateException {
        if (fluidInput == null || fluidInput.isEmpty())
            throw new IllegalStateException("fluid input required for recipe " + id + " (type " + type + ")");
    }
}