Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.jha.modules;
- public class ModBase {
- public String ModName;
- public boolean ModVisible, ModState;
- public int ModColor, ModKeybind;
- public ModBase(String name, boolean visible, int keybind, int color) {
- this.ModName = name;
- this.ModVisible = visible;
- this.ModColor = color;
- this.ModKeybind = keybind;
- this.ModState = false;
- }
- public void onEnable() {
- }
- public void onDisable() {
- }
- public void toggleModState() {
- this.ModState = !this.ModState;
- if(this.ModState) {
- this.onEnable();
- } else {
- this.onDisable();
- }
- }
- public void onCommand(String s) {
- }
- public void onTick() {
- }
- public int getKey(){
- return ModKeybind;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement