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;
}
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;
}
Aggregations