/**
   * Gets the {@link CommandType}.
   *
   * @return The {@link CommandType} of this instance. If the command is not specified, {@link
   *     CommandType.UNKNOWN} is being returned.
   */
  public CommandType number() {
    final Leaf node = this.findType(GlowTags.Command.NUMBER);

    if (node != null) {
      final int value = node.value().toInt();
      return CommandType.valueOf(value);
    } else {
      return CommandType.UNKNOWN;
    }
  }
  /**
   * Gets the {@link DirFieldMask}
   *
   * @return The {@link DirFieldMask}. If the mask is not specified, this method returns {@link
   *     DirFieldMask.ALL}.
   */
  public DirFieldMask dirFieldMask() {
    final Leaf node = findType(GlowTags.Command.DIRFIELD_MASK);

    if (node != null) {
      final int value = node.value().toInt();

      return DirFieldMask.valueOf(value);
    } else {
      return DirFieldMask.ALL;
    }
  }