Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.awt.image.BufferedImage;
- import java.util.Random;
- import org.lwjgl.opengl.GL11;
- import java.util.Random;
- public class AC_GuiHusky extends GuiScreen {
- private PathEntity pathToEntity;
- private EntityPlayer theplayer;
- private AC_EntityIceWolf husky;
- public AC_GuiHusky(AC_EntityIceWolf ac_entityicewolf, EntityPlayer entityplayer) {
- husky = ac_entityicewolf;
- theplayer = entityplayer;
- }
- public void initGui() {
- controlList.clear();
- controlList.add(new GuiButton(1, width / 9 + 9, height / 2 + -75, 98, 20, "Follow Me"));
- controlList.add(new GuiButton(2, width / 9 + 9, height / 2 + -50, 98, 20, "Wander"));
- controlList.add(new GuiButton(3, width / 9 + 9, height / 2 + -25, 98, 20, "Choose Name"));
- controlList.add(new GuiButton(4, width / 9 + 9, height / 2 + 0, 98, 20, "Saddle"));
- controlList.add(new GuiButton(5, width / 9 + 9, height / 2 + 25, 98, 20, "ATTACK!"));
- controlList.add(new GuiButton(6, width / 9 + 9, height / 2 + 50, 98, 20, "Change Apparel"));
- }
- protected void actionPerformed(GuiButton guibutton)
- {
- if(guibutton.id == 6)
- {
- husky.texture = "/ArcticCraft/mobs/penguin.png";
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("Apparel Changed!");
- }
- if(guibutton.id == 5)
- {
- }
- }
- public boolean doesGuiPauseGame()
- {
- return true;
- }
- public void onGuiClosed()
- {
- }
- public void drawScreen(int i, int j, float f)
- {
- drawDefaultBackground();
- drawCenteredString(fontRenderer, "Husky Commmand Centre", width / 2, height / 4 - 40, 0x1100bb);
- super.drawScreen(i, j, f);
- }}
Add Comment
Please, Sign In to add comment