Search in sources :

Example 1 with RecipeLogicEnergy

use of gregtech.api.capability.impl.RecipeLogicEnergy in project GregTech by GregTechCE.

the class SimpleMachineMetaTileEntity method createWorkable.

@Override
protected RecipeLogicEnergy createWorkable(RecipeMap<?> recipeMap) {
    final RecipeLogicEnergy result = super.createWorkable(recipeMap);
    result.enableOverclockVoltage();
    return result;
}
Also used : RecipeLogicEnergy(gregtech.api.capability.impl.RecipeLogicEnergy)

Example 2 with RecipeLogicEnergy

use of gregtech.api.capability.impl.RecipeLogicEnergy in project GregTech by GregTechCE.

the class MetaTileEntityMacerator method createWorkable.

@Override
protected RecipeLogicEnergy createWorkable(RecipeMap<?> recipeMap) {
    final RecipeLogicEnergy result = new RecipeLogicEnergy(this, recipeMap, () -> energyContainer) {

        @Override
        protected int getMachineTierForRecipe(Recipe recipe) {
            int tier = GTUtility.getTierByVoltage(getMaxVoltage());
            if (tier > GTValues.MV) {
                return tier - GTValues.MV;
            }
            return 0;
        }
    };
    result.enableOverclockVoltage();
    return result;
}
Also used : Recipe(gregtech.api.recipes.Recipe) RecipeLogicEnergy(gregtech.api.capability.impl.RecipeLogicEnergy)

Aggregations

RecipeLogicEnergy (gregtech.api.capability.impl.RecipeLogicEnergy)2 Recipe (gregtech.api.recipes.Recipe)1