Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.walkingdead.walkingdeadmod.items.backpack;
- import org.lwjgl.input.Keyboard;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.gui.GuiButton;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.ItemStack;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.nbt.NBTTagList;
- import net.minecraft.server.MinecraftServer;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.world.World;
- import net.minecraftforge.fml.common.FMLCommonHandler;
- public class GuiWindow extends GuiContainer{
- private final InventoryItem inventory;
- public GuiWindow(ContainerModTileEntity containerItem) {
- super(containerItem);
- this.inventory = containerItem.inventory;
- this.xSize = 176;
- this.ySize = 166;
- }
- private static final ResourceLocation texture = new ResourceLocation("textures/gui/container/dispenser.png");
- protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
- int posX = (this.width) / 2;
- int posY = (this.height) / 2;
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.renderEngine.bindTexture(texture);
- int k = (this.width - this.xSize) / 2;
- int l = (this.height - this.ySize) / 2;
- this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
- zLevel = 100.0F;
- }
- public void updateScreen() {
- super.updateScreen();
- int posX = (this.width) / 2;
- int posY = (this.height) / 2;
- }
- @Override
- protected void keyTyped(char par1, int par2) throws java.io.IOException {
- super.keyTyped(par1, par2);
- }
- protected void drawGuiContainerForegroundLayer(int par1, int par2) {
- int posX = (this.width) / 2;
- int posY = (this.height) / 2;
- }
- public void onGuiClosed() {
- super.onGuiClosed();
- Keyboard.enableRepeatEvents(false);
- }
- public void initGui() {
- super.initGui();
- this.guiLeft = (this.width - 176) / 2;
- this.guiTop = (this.height - 166) / 2;
- Keyboard.enableRepeatEvents(true);
- this.buttonList.clear();
- int posX = (this.width) / 2;
- int posY = (this.height) / 2;
- }
- protected void actionPerformed(GuiButton button) {
- MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();
- World world = server.worlds[0];
- }
- public boolean doesGuiPauseGame() {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment