// Path: src/main/java/net/mcft/copy/backpacks/client/gui/GuiElementBase.java
// public static final class MouseButton {
// 	private MouseButton() {  }
// 		
// 	public static int LEFT   = 0;
// 	public static int RIGHT  = 1;
// 	public static int MIDDLE = 2;
// }


import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.mcft.copy.backpacks.client.gui.GuiElementBase.MouseButton;
package net.mcft.copy.backpacks.client.gui;





@SideOnly(Side.CLIENT)
public class GuiContainerScreen extends GuiScreen {
	
	private int _lastMouseX = -1;
	private int _lastMouseY = -1;
	
	public final GuiContext context;
	public final GuiContainer container;
	
	private GuiElementBase _tooltipElement = null;
	private long _tooltipTime = 0;
	
	public GuiContainerScreen() {
		context   = new GuiContext();
		container = new GuiContainer(context);
		container.setFill();
	}
	
	@Override
	public void setWorldAndResolution(Minecraft mc, int width, int height) {
		context.setScreen(this);
		super.setWorldAndResolution(mc, width, height);
		container.setSize(width, height);
	}
	
	@Override
	public void onGuiClosed() { context.setScreen(null); }
	
	
	@Override
	protected void mouseClicked(int mouseX, int mouseY, int mouseButton) {
		if (mouseButton == MouseButton.LEFT)
			context.setFocused(null); // TODO: Handle this more nicely.
		container.onMouseDown(mouseButton, mouseX, mouseY);
	}
	
// Path: src/main/java/net/mcft/copy/backpacks/client/gui/GuiElementBase.java
// public static final class MouseButton {
// 	private MouseButton() {  }
// 		
// 	public static int LEFT   = 0;
// 	public static int RIGHT  = 1;
// 	public static int MIDDLE = 2;
// }


// Path: src/main/java/net/mcft/copy/backpacks/client/gui/GuiContainerScreen.java
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.mcft.copy.backpacks.client.gui.GuiElementBase.MouseButton;

package net.mcft.copy.backpacks.client.gui;





@SideOnly(Side.CLIENT)
public class GuiContainerScreen extends GuiScreen {
	
	private int _lastMouseX = -1;
	private int _lastMouseY = -1;
	
	public final GuiContext context;
	public final GuiContainer container;
	
	private GuiElementBase _tooltipElement = null;
	private long _tooltipTime = 0;
	
	public GuiContainerScreen() {
		context   = new GuiContext();
		container = new GuiContainer(context);
		container.setFill();
	}
	
	@Override
	public void setWorldAndResolution(Minecraft mc, int width, int height) {
		context.setScreen(this);
		super.setWorldAndResolution(mc, width, height);
		container.setSize(width, height);
	}
	
	@Override
	public void onGuiClosed() { context.setScreen(null); }
	
	
	@Override
	protected void mouseClicked(int mouseX, int mouseY, int mouseButton) {
		if (mouseButton == MouseButton.LEFT)
			context.setFocused(null); // TODO: Handle this more nicely.
		container.onMouseDown(mouseButton, mouseX, mouseY);
	}
	
	@Override