Guest User

Untitled

a guest
Oct 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. package net.minecraft.src;
  2. import java.awt.image.BufferedImage;
  3. import java.util.Random;
  4.  
  5. import org.lwjgl.opengl.GL11;
  6. import java.util.Random;
  7.  
  8. public class AC_GuiHusky extends GuiScreen {
  9.  
  10. private PathEntity pathToEntity;
  11. private EntityPlayer theplayer;
  12. private AC_EntityIceWolf husky;
  13.  
  14.  
  15. public AC_GuiHusky(AC_EntityIceWolf ac_entityicewolf, EntityPlayer entityplayer) {
  16.  
  17.  
  18. husky = ac_entityicewolf;
  19. theplayer = entityplayer;
  20.  
  21. }
  22.  
  23. public void initGui() {
  24. controlList.clear();
  25. controlList.add(new GuiButton(1, width / 9 + 9, height / 2 + -75, 98, 20, "Follow Me"));
  26. controlList.add(new GuiButton(2, width / 9 + 9, height / 2 + -50, 98, 20, "Wander"));
  27. controlList.add(new GuiButton(3, width / 9 + 9, height / 2 + -25, 98, 20, "Choose Name"));
  28. controlList.add(new GuiButton(4, width / 9 + 9, height / 2 + 0, 98, 20, "Saddle"));
  29. controlList.add(new GuiButton(5, width / 9 + 9, height / 2 + 25, 98, 20, "ATTACK!"));
  30. controlList.add(new GuiButton(6, width / 9 + 9, height / 2 + 50, 98, 20, "Change Apparel"));
  31.  
  32.  
  33. }
  34.  
  35. protected void actionPerformed(GuiButton guibutton)
  36. {
  37. if(guibutton.id == 6)
  38. {
  39. husky.texture = "/ArcticCraft/mobs/penguin.png";
  40. ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("Apparel Changed!");
  41.  
  42. }
  43.  
  44. if(guibutton.id == 5)
  45. {
  46.  
  47. }
  48.  
  49.  
  50.  
  51. }
  52.  
  53.  
  54. public boolean doesGuiPauseGame()
  55. {
  56. return true;
  57. }
  58.  
  59. public void onGuiClosed()
  60. {
  61.  
  62. }
  63.  
  64. public void drawScreen(int i, int j, float f)
  65. {
  66. drawDefaultBackground();
  67.  
  68. drawCenteredString(fontRenderer, "Husky Commmand Centre", width / 2, height / 4 - 40, 0x1100bb);
  69.  
  70.  
  71. super.drawScreen(i, j, f);
  72. }}
Add Comment
Please, Sign In to add comment