ModuleCommand.java 550 B

1234567891011121314151617181920212223242526272829
  1. package me.km.module;
  2. import java.util.Collections;
  3. import me.km.module.Module;
  4. import net.minecraft.command.ICommandSource;
  5. public abstract class ModuleCommand
  6. {
  7. private final Module m;
  8. public ModuleCommand(Module m)
  9. {
  10. this.m = m;
  11. }
  12. public final Module getModule()
  13. {
  14. return m;
  15. }
  16. public abstract String getName();
  17. public Iterable<String> getAliases()
  18. {
  19. return Collections.EMPTY_LIST;
  20. }
  21. public abstract void execute(ICommandSource cs, String[] arg);
  22. }