code: public synchronized PacketBuilder withInt(final int i)
      {
          checkBuilt();
          try
          {
              dataOutputStream.writeInt(i);
          }
          catch (final IOException e)
          {
              logger.error("Unable to add integer: {} : {}", e.getClass(), e.getMessage());
          }
          return this;
      }
docs: Adds an integer
  @param i Integer
  @throws IllegalStateException see {@link #checkBuilt()}