for.js 289 B

123456789101112
  1. export class For {
  2. constructor (assignment, condition, increment, commandBlock) {
  3. this.assignment = assignment;
  4. this.condition = condition;
  5. this.increment = increment;
  6. this.commandBlock = commandBlock;
  7. }
  8. get commands () {
  9. return this.commandBlock.commands;
  10. }
  11. }