This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: JHA on Jan 28th, 2013  |  syntax: None  |  size: 0.67 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data