Advertisement
JHA

Untitled

JHA
Jan 28th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. package me.jha.modules;
  2.  
  3. public class ModBase {
  4. public String ModName;
  5. public boolean ModVisible, ModState;
  6. public int ModColor, ModKeybind;
  7.  
  8. public ModBase(String name, boolean visible, int keybind, int color) {
  9. this.ModName = name;
  10. this.ModVisible = visible;
  11. this.ModColor = color;
  12. this.ModKeybind = keybind;
  13. this.ModState = false;
  14. }
  15.  
  16. public void onEnable() {
  17.  
  18. }
  19.  
  20. public void onDisable() {
  21.  
  22. }
  23.  
  24. public void toggleModState() {
  25. this.ModState = !this.ModState;
  26. if(this.ModState) {
  27. this.onEnable();
  28. } else {
  29. this.onDisable();
  30. }
  31. }
  32.  
  33. public void onCommand(String s) {
  34.  
  35. }
  36.  
  37. public void onTick() {
  38.  
  39. }
  40.  
  41. public int getKey(){
  42. return ModKeybind;
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement