code: public synchronized PacketBuilder withBoolean(final boolean b)
      {
          checkBuilt();
          try
          {
              dataOutputStream.writeBoolean(b);
          }
          catch (final IOException e)
          {
              logger.error("Unable to add boolean: {} : {}", e.getClass(), e.getMessage());
          }
          return this;
      }
docs: Adds a boolean
  @param b Boolean
  @throws IllegalStateException see {@link #checkBuilt()}