code: private static void renderX(Graphic g, CollisionFunction function, CollisionRange range, int th, int y)
      {
          if (UtilMath.isBetween(y, range.getMinY(), range.getMaxY()))
          {
              g.drawRect(function.getRenderX(y), th - y - 1, 0, 0, false);
          }
      }
docs: Render horizontal collision from current vector.
  
  @param g The graphic buffer.
  @param function The collision function.
  @param range The collision range.
  @param th The tile height.
  @param y The current vertical location.