// Path: src/main/java/net/mcft/copy/backpacks/client/GuiTextureResource.java
// @SideOnly(Side.CLIENT)
// public class GuiTextureResource extends ResourceLocation {
// 	
// 	public final int defaultWidth;
// 	public final int defaultHeight;
// 	
// 	public GuiTextureResource(String location, int defaultWidth, int defaultHeight) {
// 		super(WearableBackpacks.MOD_ID, "textures/gui/" + location + ".png");
// 		this.defaultWidth = defaultWidth;
// 		this.defaultHeight = defaultHeight;
// 	}
// 	
// 	public void bind() {
// 		Minecraft.getMinecraft().getTextureManager().bindTexture(this);
// 	}
// 	
// 	/** Draws part of the texture to the screen. */
// 	public void drawQuad(int x, int y, int u, int v, int w, int h, float zLevel) {
// 		float scaleX = 1.0F / defaultWidth;
// 		float scaleY = 1.0F / defaultHeight;
// 		Tessellator tess = Tessellator.getInstance();
// 		BufferBuilder vb = tess.getBuffer();
// 		vb.begin(7, DefaultVertexFormats.POSITION_TEX);
// 		vb.pos(x + 0, y + h, zLevel).tex((u + 0) * scaleX, (v + h) * scaleY).endVertex();
// 		vb.pos(x + w, y + h, zLevel).tex((u + w) * scaleX, (v + h) * scaleY).endVertex();
// 		vb.pos(x + w, y + 0, zLevel).tex((u + w) * scaleX, (v + 0) * scaleY).endVertex();
// 		vb.pos(x + 0, y + 0, zLevel).tex((u + 0) * scaleX, (v + 0) * scaleY).endVertex();
// 		tess.draw();
// 	}
// 	
// 	/** Draws part of the texture to the screen. */
// 	public void drawQuad(int x, int y, int u, int v, int w, int h) {
// 		drawQuad(x, y, u, v, w, h, 0);
// 	}
// 	
// }


import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.mcft.copy.backpacks.client.GuiTextureResource;
package net.mcft.copy.backpacks.client.gui;



@SideOnly(Side.CLIENT)
public class GuiImage extends GuiElementBase {
	
// Path: src/main/java/net/mcft/copy/backpacks/client/GuiTextureResource.java
// @SideOnly(Side.CLIENT)
// public class GuiTextureResource extends ResourceLocation {
// 	
// 	public final int defaultWidth;
// 	public final int defaultHeight;
// 	
// 	public GuiTextureResource(String location, int defaultWidth, int defaultHeight) {
// 		super(WearableBackpacks.MOD_ID, "textures/gui/" + location + ".png");
// 		this.defaultWidth = defaultWidth;
// 		this.defaultHeight = defaultHeight;
// 	}
// 	
// 	public void bind() {
// 		Minecraft.getMinecraft().getTextureManager().bindTexture(this);
// 	}
// 	
// 	/** Draws part of the texture to the screen. */
// 	public void drawQuad(int x, int y, int u, int v, int w, int h, float zLevel) {
// 		float scaleX = 1.0F / defaultWidth;
// 		float scaleY = 1.0F / defaultHeight;
// 		Tessellator tess = Tessellator.getInstance();
// 		BufferBuilder vb = tess.getBuffer();
// 		vb.begin(7, DefaultVertexFormats.POSITION_TEX);
// 		vb.pos(x + 0, y + h, zLevel).tex((u + 0) * scaleX, (v + h) * scaleY).endVertex();
// 		vb.pos(x + w, y + h, zLevel).tex((u + w) * scaleX, (v + h) * scaleY).endVertex();
// 		vb.pos(x + w, y + 0, zLevel).tex((u + w) * scaleX, (v + 0) * scaleY).endVertex();
// 		vb.pos(x + 0, y + 0, zLevel).tex((u + 0) * scaleX, (v + 0) * scaleY).endVertex();
// 		tess.draw();
// 	}
// 	
// 	/** Draws part of the texture to the screen. */
// 	public void drawQuad(int x, int y, int u, int v, int w, int h) {
// 		drawQuad(x, y, u, v, w, h, 0);
// 	}
// 	
// }


// Path: src/main/java/net/mcft/copy/backpacks/client/gui/GuiImage.java
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.mcft.copy.backpacks.client.GuiTextureResource;

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



@SideOnly(Side.CLIENT)
public class GuiImage extends GuiElementBase {
	
	private GuiTextureResource _texture;