Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package RUMatter.GUIs;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.util.StatCollector;
- import RUMatter.containers.ContainerRUMad;
- import RUMatter.tileEntities.TileEntityRUMad;
- public class GUIRUMad extends GuiContainer {
- ResourceLocation texture = new ResourceLocation("chronoscraft", "textures/gui/RUMadGUI.png");
- public GUIRUMad(InventoryPlayer inv, TileEntityRUMad tile) {
- super(new ContainerRUMad(inv, tile));
- }
- @Override
- protected void drawGuiContainerForegroundLayer(int par1, int par2) {
- fontRenderer.drawString("RUMad", 8, 5 + 24, 4210752);
- fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, 24 + 34, 4210752);
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float f, int i, int j) {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.renderEngine.bindTexture(texture);
- int x = (width - xSize) / 2;
- int y = (height - ySize) / 2 + 24;
- this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment