for.js 373 B

1234567891011121314151617
  1. import { Command } from './command';
  2. export class For extends Command {
  3. constructor (for_id, for_from, for_to, for_pass, commandBlock) {
  4. super();
  5. this.for_id = for_id;
  6. this.for_from = for_from;
  7. this.for_to = for_to;
  8. this.for_pass = for_pass;
  9. this.commandBlock = commandBlock;
  10. }
  11. get commands () {
  12. return this.commandBlock.commands;
  13. }
  14. }