Portl

Untitled

Oct 3rd, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. package me.fulpix.plastic.module;
  2.  
  3. import net.minecraft.client.Minecraft;
  4.  
  5. public class Module {
  6.  
  7. private String name;
  8. private String displayname;
  9. private Category category;
  10.  
  11. private int keyBind;
  12. public static boolean colormode = false;
  13. public static Minecraft mc = Minecraft.getMinecraft();
  14.  
  15. private boolean toggled;
  16.  
  17. /**Module**/
  18.  
  19. public Module(String name, String displayname, int keyBind,Category category ) {
  20. this.name = name;
  21. this.displayname = name;
  22. this.category = category;
  23. this.keyBind = keyBind;
  24. }
  25.  
  26. public String getName() {
  27. return name;
  28. }
  29.  
  30. public void setName(String name) {
  31. this.name = name;
  32. }
  33.  
  34. public String getDisplayname() {
  35. return displayname;
  36. }
  37.  
  38. public void setDisplayname(String displayname) {
  39. this.displayname = displayname;
  40. }
  41.  
  42. public Category getCategory() {
  43. return category;
  44. }
  45.  
  46. public void setCategory(Category category) {
  47. this.category = category;
  48. }
  49.  
  50. public int getKeyBind() {
  51. return keyBind;
  52. }
  53.  
  54. public void setKeyBind(int keyBind) {
  55. this.keyBind = keyBind;
  56. }
  57.  
  58. public boolean isEnabled() {
  59. return toggled;
  60. }
  61.  
  62. public void toggle() {
  63. if(toggled) {
  64. toggled = false;
  65. onDisable();
  66. }else{
  67. toggled = true;
  68. onEnable();
  69. }
  70. }
  71.  
  72. public void onEnable() {}
  73. public void onDisable() { // TODO Auto-generated method stub
  74.  
  75. }
  76.  
  77. }
Add Comment
Please, Sign In to add comment