while.js 205 B

12345678910
  1. export class While {
  2. constructor (expression, commandBlock) {
  3. this.expression = expression;
  4. this.commandBlock = commandBlock;
  5. }
  6. get commands () {
  7. return this.commandBlock.commands;
  8. }
  9. }