// Path: src/main/java/com/cazsius/solcarrot/lib/Localization.java
// @OnlyIn(Dist.CLIENT)
// public static String localized(String domain, IForgeRegistryEntry entry, String path, Object... args) {
// 	return I18n.format(keyString(domain, entry, path), args);
// }


import com.cazsius.solcarrot.client.gui.elements.*;
import java.awt.*;
import static com.cazsius.solcarrot.lib.Localization.localized;
package com.cazsius.solcarrot.client.gui;




abstract class Page extends UIElement {
	final UIStack mainStack;
	final int spacing = 6;
	
	Page(Rectangle frame, String header) {
		super(frame);
		
		mainStack = new UIStack();
		mainStack.axis = UIStack.Axis.VERTICAL;
		mainStack.spacing = spacing;
		
		UILabel headerLabel = new UILabel(header);
		mainStack.addChild(headerLabel);
		
		mainStack.addChild(makeSeparatorLine());
		
		children.add(mainStack);
		updateMainStack();
	}
	
	void updateMainStack() {
		mainStack.setCenterX(getCenterX());
		mainStack.setMinY(getMinY() + 17);
		mainStack.updateFrames();
	}
	
	String fraction(int numerator, int denominator) {
// Path: src/main/java/com/cazsius/solcarrot/lib/Localization.java
// @OnlyIn(Dist.CLIENT)
// public static String localized(String domain, IForgeRegistryEntry entry, String path, Object... args) {
// 	return I18n.format(keyString(domain, entry, path), args);
// }


// Path: src/main/java/com/cazsius/solcarrot/client/gui/Page.java
import com.cazsius.solcarrot.client.gui.elements.*;
import java.awt.*;
import static com.cazsius.solcarrot.lib.Localization.localized;

package com.cazsius.solcarrot.client.gui;




abstract class Page extends UIElement {
	final UIStack mainStack;
	final int spacing = 6;
	
	Page(Rectangle frame, String header) {
		super(frame);
		
		mainStack = new UIStack();
		mainStack.axis = UIStack.Axis.VERTICAL;
		mainStack.spacing = spacing;
		
		UILabel headerLabel = new UILabel(header);
		mainStack.addChild(headerLabel);
		
		mainStack.addChild(makeSeparatorLine());
		
		children.add(mainStack);
		updateMainStack();
	}
	
	void updateMainStack() {
		mainStack.setCenterX(getCenterX());
		mainStack.setMinY(getMinY() + 17);
		mainStack.updateFrames();
	}
	
	String fraction(int numerator, int denominator) {
		return localized("gui", "food_book.fraction",