Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. package de.flori;
  2.  
  3. import java.awt.Color;
  4.  
  5. import de.flori2007.eztools.EZ_Main;
  6. import de.flori2007.eztools.addon.EZ_Addon;
  7. import de.flori2007.eztools.button.EZ_Button;
  8. import de.flori2007.eztools.gui.ingamemenu.EZ_MainTheme_IngameMenu;
  9. import de.flori2007.eztools.gui.mainmenu.EZ_MainTheme_MainMenu;
  10. import de.flori2007.eztools.hud.EZ_HUD;
  11. import de.flori2007.eztools.theme.EZ_Theme;
  12. import net.minecraft.client.gui.Gui;
  13. import net.minecraft.client.gui.GuiButton;
  14.  
  15. public class Test extends EZ_Addon {
  16.  
  17. @Override
  18. public void onEnable(EZ_Main client) {
  19. client.getButtonManager().loadButton(new testButton());
  20. client.getHudManager().loadFormat(new testHudFormat());
  21. client.getThemeManager().loadTheme(new testTheme());
  22. }
  23.  
  24. private class testTheme extends EZ_Theme {
  25.  
  26. public testTheme() {
  27. super("test", "asdasd", new EZ_MainTheme_MainMenu(), new EZ_MainTheme_IngameMenu());
  28. }
  29.  
  30. @Override
  31. public void onRenderArrayList() {
  32. }
  33.  
  34. @Override
  35. public void onRenderHotbar() {
  36. }
  37.  
  38. @Override
  39. public void onRenderHud() {
  40. }
  41.  
  42. @Override
  43. public void onRenderTabGui() {
  44. }
  45.  
  46. @Override
  47. public void onRenderWaterMark() {
  48. }
  49.  
  50. }
  51.  
  52. private class testHudFormat extends EZ_HUD {
  53.  
  54. public testHudFormat() {
  55. super("test");
  56. }
  57.  
  58. @Override
  59. public String getKey() {
  60. return "test";
  61. }
  62.  
  63. @Override
  64. public String getValue() {
  65. return mc.getVersion();
  66. }
  67.  
  68. }
  69.  
  70. private class testButton extends EZ_Button {
  71.  
  72. public testButton() {
  73. super("tset", "Flori2007");
  74. }
  75.  
  76. @Override
  77. public void onDrawButton(int mouseX,
  78. int mouseY, GuiButton button) {
  79. Gui.drawRect(button.xPosition,
  80. button.yPosition, button.xPosition + button.width,
  81. button.yPosition + button.height, Color.BLUE.getRGB());
  82. }
  83.  
  84. }
  85.  
  86. @Override
  87. public boolean onCommand(String command, String[] args) {
  88. if (command.equalsIgnoreCase("test")) {
  89. getChat().sendChatMessageWithPrefix("abc");
  90. return true;
  91. }
  92. return false;
  93. }
  94.  
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement